build(mk): added compiler and builder checks
This commit is contained in:
20
mk
20
mk
@@ -105,6 +105,16 @@ if [[ -f "$LOGFILE" ]]; then
|
||||
fi
|
||||
touch "$LOGFILE"
|
||||
|
||||
# --- Check if Clang or GCC is installed ---
|
||||
log "${BLUE}[Info] Checking if Clang or GCC is installed...${NC}"
|
||||
if ! command -v clang &> /dev/null && ! command -v gcc &> /dev/null; then
|
||||
log "${RED}[Error] Clang or GCC is not installed. Exiting...${NC}"
|
||||
log "${YELLOW}[Info] Please install Clang or GCC and try again.${NC}"
|
||||
exit 1
|
||||
else
|
||||
log "${MAGENTA}[Success] Clang or GCC is installed. Continuing...${NC}"
|
||||
fi
|
||||
|
||||
# --- Check if MESON is installed ---
|
||||
log "${BLUE}[Info] Checking if Meson is installed...${NC}"
|
||||
if ! command -v meson &> /dev/null; then
|
||||
@@ -115,6 +125,16 @@ else
|
||||
log "${MAGENTA}[Success] Meson is installed. Continuing...${NC}"
|
||||
fi
|
||||
|
||||
# --- Check if NINJA is installed ---
|
||||
log "${BLUE}[Info] Checking if Ninja is installed...${NC}"
|
||||
if ! command -v ninja &> /dev/null; then
|
||||
log "${RED}[Error] Ninja is not installed. Exiting...${NC}"
|
||||
log "${YELLOW}[Info] Please install Ninja and try again.${NC}"
|
||||
exit 1
|
||||
else
|
||||
log "${MAGENTA}[Success] Ninja is installed. Continuing...${NC}"
|
||||
fi
|
||||
|
||||
# --- Build 4DSSE ---
|
||||
log "${BLUE}[Info] Building 4DSSE...${NC}"
|
||||
if [[ $userFlag -eq 1 ]]; then
|
||||
|
||||
Reference in New Issue
Block a user