Improve custom configuration support

This commit is contained in:
Jaby
2024-02-09 15:35:25 -05:00
committed by Jaby
parent 0fc19a4f9b
commit 87efca91e0
5 changed files with 18 additions and 37 deletions

View File

@@ -0,0 +1,5 @@
JABY_ENGINE_CONFIG_DIR = $(JABY_ENGINE_DIR)config
ifdef CUSTOM_CONFIG
# TODO: Use same header for -I and -imacros?
CCFLAGS += -I$(JABY_ENGINE_CONFIG_DIR)/$(CUSTOM_CONFIG) -imacros $(JABY_ENGINE_CONFIG_DIR)/$(CUSTOM_CONFIG)/jabyengine_custom_defines.hpp
endif