Improve ConfigLibs more

This commit is contained in:
Björn Gaier 2024-02-20 21:55:56 -05:00
parent 9858eff1f1
commit f47bd60003
3 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,5 @@
//#pragma once #include "../dummy_default_config.hpp"
//TODO: Why is pragma once not working?!
//TODO: Fix IntelliSense
struct CustomConfiguration : public DefaultConfiguration { struct CustomConfiguration : public DefaultConfiguration {
struct Test { struct Test {
static constexpr const char* string() { static constexpr const char* string() {

View File

@ -0,0 +1,7 @@
#pragma once
#ifdef __INTELLISENSE__
// This provides a dummy struct so IntelliSense is happy
struct DefaultConfiguration {
};
#endif //! __INTELLISENSE__

View File

@ -1,5 +1,4 @@
JABY_ENGINE_CONFIG_DIR = $(JABY_ENGINE_DIR)config JABY_ENGINE_CONFIG_DIR = $(JABY_ENGINE_DIR)config
ifdef CUSTOM_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_config.hpp CCFLAGS += -I$(JABY_ENGINE_CONFIG_DIR)/$(CUSTOM_CONFIG) -imacros $(JABY_ENGINE_CONFIG_DIR)/$(CUSTOM_CONFIG)/jabyengine_custom_config.hpp
endif endif