mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-29 13:03:37 +01:00
fxsdk: add more fxg1a/mkg3a flags in generate_{g1a,g3a}()
This commit is contained in:
parent
cdeefa1de6
commit
afc6d51217
2 changed files with 13 additions and 1 deletions
|
@ -35,6 +35,14 @@ function(generate_g1a)
|
||||||
list(APPEND FXG1A_ARGS "-i" "${G1A_ICON}")
|
list(APPEND FXG1A_ARGS "-i" "${G1A_ICON}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(DEFINED G1A_INTERNAL)
|
||||||
|
list(APPEND FXG1A_ARGS "--internal=${G1A_INTERNAL}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(DEFINED G1A_VERSION)
|
||||||
|
list(APPEND FXG1A_ARGS "--version=${G1A_VERSION}")
|
||||||
|
endif()
|
||||||
|
|
||||||
string(REGEX REPLACE "sh-elf-gcc$" "sh-elf-objcopy" OBJCOPY "${CMAKE_C_COMPILER}")
|
string(REGEX REPLACE "sh-elf-gcc$" "sh-elf-objcopy" OBJCOPY "${CMAKE_C_COMPILER}")
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
function(generate_g3a)
|
function(generate_g3a)
|
||||||
cmake_parse_arguments(G3A "" "TARGET;OUTPUT;NAME" "ICONS" ${ARGN})
|
cmake_parse_arguments(G3A "" "TARGET;OUTPUT;NAME;VERSION" "ICONS" ${ARGN})
|
||||||
|
|
||||||
# Check arguments
|
# Check arguments
|
||||||
|
|
||||||
|
@ -36,6 +36,10 @@ function(generate_g3a)
|
||||||
list(APPEND MKG3A_ARGS "-n" "basic:${G3A_NAME}")
|
list(APPEND MKG3A_ARGS "-n" "basic:${G3A_NAME}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(DEFINED G3A_VERSION)
|
||||||
|
list(APPEND MKG3A_ARGS "-V" "${G3A_VERSION}")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(DEFINED G3A_ICONS)
|
if(DEFINED G3A_ICONS)
|
||||||
list(GET G3A_ICONS 0 G3A_ICON1)
|
list(GET G3A_ICONS 0 G3A_ICON1)
|
||||||
list(GET G3A_ICONS 1 G3A_ICON2)
|
list(GET G3A_ICONS 1 G3A_ICON2)
|
||||||
|
|
Loading…
Reference in a new issue