debugging CI

This commit is contained in:
Kbz-8
2023-10-19 23:31:36 +02:00
parent 08cbbfa836
commit 3dd055b406
2 changed files with 9 additions and 7 deletions

View File

@@ -39,11 +39,6 @@ jobs:
run: | run: |
brew install SDL2 brew install SDL2
- name: Setup SDL2 frameworks
uses: BrettDong/setup-sdl2-frameworks@main
with:
sdl2: latest
# Build the lib # Build the lib
- name: Build MacroLibX - name: Build MacroLibX
run: make -j run: make -j

View File

@@ -6,7 +6,7 @@
# By: vvaas <vvaas@student.42.fr> +#+ +:+ +#+ # # By: vvaas <vvaas@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2022/10/04 16:43:41 by maldavid #+# #+# # # Created: 2022/10/04 16:43:41 by maldavid #+# #+# #
# Updated: 2023/08/09 13:51:08 by maldavid ### ########.fr # # Updated: 2023/10/19 23:31:27 by maldavid ### ########.fr #
# # # #
# **************************************************************************** # # **************************************************************************** #
@@ -19,6 +19,7 @@ SRCS += $(wildcard $(addsuffix /*.cpp, ./src/renderer/**))
OBJS = $(SRCS:.cpp=.o) OBJS = $(SRCS:.cpp=.o)
OS = $(shell uname -s)
DEBUG ?= false DEBUG ?= false
TOOLCHAIN ?= clang TOOLCHAIN ?= clang
IMAGES_OPTIMIZED ?= true IMAGES_OPTIMIZED ?= true
@@ -32,6 +33,12 @@ endif
CXXFLAGS = -std=c++17 -O3 -fPIC CXXFLAGS = -std=c++17 -O3 -fPIC
INCLUDES = -I./includes -I./src -I./third_party INCLUDES = -I./includes -I./src -I./third_party
LDLIBS =
ifeq ($(OS), Darwin)
LDLIBS += -framework SDL2
endif
ifeq ($(DEBUG), true) ifeq ($(DEBUG), true)
CXXFLAGS += -g -D DEBUG CXXFLAGS += -g -D DEBUG
endif endif
@@ -50,7 +57,7 @@ all: $(NAME)
$(NAME): $(OBJS) $(NAME): $(OBJS)
@echo "\e[1;32m[linking ...]\e[1;00m "$@ @echo "\e[1;32m[linking ...]\e[1;00m "$@
@$(CXX) -shared -o $(NAME) $(OBJS) @$(CXX) -shared -o $(NAME) $(OBJS) $(LDLIBS)
@echo "\e[1;32m[build finished]\e[1;00m" @echo "\e[1;32m[build finished]\e[1;00m"
clean: clean: