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

pull/9/head
Lephenixnoir 11 months ago
parent cdeefa1de6
commit afc6d51217
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
  1. 8
      fxsdk/cmake/GenerateG1A.cmake
  2. 6
      fxsdk/cmake/GenerateG3A.cmake

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

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

Loading…
Cancel
Save