First configuratable JabyEngine prototype
This commit is contained in:
@@ -27,6 +27,17 @@
|
||||
},
|
||||
"group": "build"
|
||||
},
|
||||
{
|
||||
"label": "make custom config",
|
||||
"type": "shell",
|
||||
"windows": {
|
||||
"command": "wsl make ${input:target} BUILD_PROFILE=${input:build cfg} TV_FORMAT=${input:tv format} CUSTOM_CONFIG=${input:custom config}",
|
||||
},
|
||||
"linux": {
|
||||
"command": "make ${input:target} BUILD_PROFILE=${input:build cfg} TV_FORMAT=${input:tv format} CUSTOM_CONFIG=${input:custom config}",
|
||||
},
|
||||
"group": "build"
|
||||
},
|
||||
{
|
||||
"label": "combi make",
|
||||
"type": "shell",
|
||||
@@ -54,6 +65,13 @@
|
||||
"default": "PAL",
|
||||
"description": "TV format to use"
|
||||
},
|
||||
{
|
||||
"id": "custom config",
|
||||
"type": "pickString",
|
||||
"options": ["MyConfig"],
|
||||
"default": "MyConfig",
|
||||
"description": "The custom configuration to use for this build"
|
||||
},
|
||||
{
|
||||
"id": "target",
|
||||
"type": "pickString",
|
||||
|
@@ -6,9 +6,19 @@ ARTIFACT = libJabyEngine_$(TV_FORMAT)
|
||||
SPLASH_IMAGE = src/BootLoader/splash_image_pal_boot.hpp
|
||||
SPLASH_IMAGE_NTSC = src/BootLoader/splash_image_ntsc_boot.hpp
|
||||
|
||||
#TODO: v Check if we need this include still
|
||||
CCFLAGS += -Iinclude -I../../include -D__friends=public
|
||||
CCFLAGS += -save-temps=obj
|
||||
|
||||
ifdef CUSTOM_CONFIG
|
||||
#TODO: Custom config build var
|
||||
CCFLAGS += -I../../config/$(CUSTOM_CONFIG) -imacros ../../config/$(CUSTOM_CONFIG)/jabyengine_custom_defines.hpp
|
||||
#TODO: v Or here? v Do we want this here?
|
||||
CONFIG_NAME = $(PLATFORM)-$(BUILD_PROFILE)/$(CUSTOM_CONFIG)
|
||||
else
|
||||
CONFIG_NAME = $(PLATFORM)-$(BUILD_PROFILE)
|
||||
endif
|
||||
|
||||
include ../../mkfile/Wildcard.mk
|
||||
SRCS = $(call rwildcard, src, c cpp s)
|
||||
|
||||
|
Reference in New Issue
Block a user