First configuratable JabyEngine prototype

This commit is contained in:
Björn Gaier
2024-02-09 11:30:55 -05:00
parent 8a927010ba
commit efe28a9718
7 changed files with 84 additions and 17 deletions

View File

@@ -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",

View File

@@ -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)