Support building multiple JabyEngines
This commit is contained in:
parent
47d773699c
commit
c5dd7d6fa6
|
@ -31,7 +31,7 @@
|
||||||
"label": "make_all",
|
"label": "make_all",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"windows": {
|
"windows": {
|
||||||
"command": "wsl make -f MakeAll.mk ${input:target} BUILD_PROFILE=${input:build cfg}",
|
"command": "wsl make -f MakeAll.mk ${input:target prefix}_${input:target} BUILD_PROFILE=${input:build cfg} CUSTOM_CONFIG=${input:config options}",
|
||||||
},
|
},
|
||||||
"linux": {
|
"linux": {
|
||||||
"command": "make -f MakeAll.mk ${input:target} BUILD_PROFILE=${input:build cfg}",
|
"command": "make -f MakeAll.mk ${input:target} BUILD_PROFILE=${input:build cfg}",
|
||||||
|
@ -64,6 +64,13 @@
|
||||||
"fieldSeparator": "|"
|
"fieldSeparator": "|"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "target prefix",
|
||||||
|
"type": "pickString",
|
||||||
|
"options": ["jabyengine", "all_jabyengine"],
|
||||||
|
"default": "jabyengine",
|
||||||
|
"description": "To build JabyEngine or JabyEngine with all configs"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "target",
|
"id": "target",
|
||||||
"type": "pickString",
|
"type": "pickString",
|
||||||
|
|
|
@ -1,20 +1,26 @@
|
||||||
define run_make
|
define make_one
|
||||||
$(MAKE) $1 TV_FORMAT=PAL CUSTOM_CONFIG=$2
|
$(MAKE) $1 TV_FORMAT=PAL CUSTOM_CONFIG=$2
|
||||||
$(MAKE) $1 TV_FORMAT=NTSC CUSTOM_CONFIG=$2
|
$(MAKE) $1 TV_FORMAT=NTSC CUSTOM_CONFIG=$2
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define do_target
|
define make_all
|
||||||
$(call run_make,$1,)
|
$(call make_one,$1,)
|
||||||
$(foreach config,$2,$(call run_make,$1,$(config)))
|
$(foreach config,$2,$(call make_one,$1,$(config)))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
config_files = $(shell cd ../../config && ls -d */)
|
config_files = $(shell cd ../../config && ls -d */)
|
||||||
|
|
||||||
|
jabyengine_%:
|
||||||
|
$(call make_one,$*,$(CUSTOM_CONFIG))
|
||||||
|
|
||||||
|
all_jabyengine_%:
|
||||||
|
$(call make_all,$*,$(config_files))
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(call do_target,all,$(config_files))
|
$(call make_all,all,$(config_files))
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(call do_target,clean,$(config_files))
|
$(call make_all,clean,$(config_files))
|
||||||
|
|
||||||
rebuild:
|
rebuild:
|
||||||
$(call do_target,rebuild,$(config_files))
|
$(call make_all,rebuild,$(config_files))
|
Loading…
Reference in New Issue