mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 14:43:34 +00:00
debugging CI
This commit is contained in:
5
.github/workflows/macos_x86.yml
vendored
5
.github/workflows/macos_x86.yml
vendored
@@ -39,11 +39,6 @@ jobs:
|
||||
run: |
|
||||
brew install SDL2
|
||||
|
||||
- name: Setup SDL2 frameworks
|
||||
uses: BrettDong/setup-sdl2-frameworks@main
|
||||
with:
|
||||
sdl2: latest
|
||||
|
||||
# Build the lib
|
||||
- name: Build MacroLibX
|
||||
run: make -j
|
||||
|
||||
11
Makefile
11
Makefile
@@ -6,7 +6,7 @@
|
||||
# By: vvaas <vvaas@student.42.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# 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)
|
||||
|
||||
OS = $(shell uname -s)
|
||||
DEBUG ?= false
|
||||
TOOLCHAIN ?= clang
|
||||
IMAGES_OPTIMIZED ?= true
|
||||
@@ -32,6 +33,12 @@ endif
|
||||
CXXFLAGS = -std=c++17 -O3 -fPIC
|
||||
INCLUDES = -I./includes -I./src -I./third_party
|
||||
|
||||
LDLIBS =
|
||||
|
||||
ifeq ($(OS), Darwin)
|
||||
LDLIBS += -framework SDL2
|
||||
endif
|
||||
|
||||
ifeq ($(DEBUG), true)
|
||||
CXXFLAGS += -g -D DEBUG
|
||||
endif
|
||||
@@ -50,7 +57,7 @@ all: $(NAME)
|
||||
|
||||
$(NAME): $(OBJS)
|
||||
@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"
|
||||
|
||||
clean:
|
||||
|
||||
Reference in New Issue
Block a user