fxsdk: add more fxg1a/mkg3a flags in generate_{g1a,g3a}()

This commit is contained in:
Lephenixnoir 2021-11-18 23:16:17 +01:00
parent cdeefa1de6
commit afc6d51217
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
2 changed files with 13 additions and 1 deletions

View file

@ -35,6 +35,14 @@ function(generate_g1a)
list(APPEND FXG1A_ARGS "-i" "${G1A_ICON}")
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}")
add_custom_command(

View file

@ -1,5 +1,5 @@
function(generate_g3a)
cmake_parse_arguments(G3A "" "TARGET;OUTPUT;NAME" "ICONS" ${ARGN})
cmake_parse_arguments(G3A "" "TARGET;OUTPUT;NAME;VERSION" "ICONS" ${ARGN})
# Check arguments
@ -36,6 +36,10 @@ function(generate_g3a)
list(APPEND MKG3A_ARGS "-n" "basic:${G3A_NAME}")
endif()
if(DEFINED G3A_VERSION)
list(APPEND MKG3A_ARGS "-V" "${G3A_VERSION}")
endif()
if(DEFINED G3A_ICONS)
list(GET G3A_ICONS 0 G3A_ICON1)
list(GET G3A_ICONS 1 G3A_ICON2)