mirror of https://github.com/mgba-emu/mgba.git
Wii: Generate HBC bundle
This commit is contained in:
parent
a7fce06280
commit
509f34f34d
|
@ -199,9 +199,6 @@ endif()
|
||||||
if(WII)
|
if(WII)
|
||||||
add_definitions(-U__STRICT_ANSI__)
|
add_definitions(-U__STRICT_ANSI__)
|
||||||
execute_process(COMMAND ${RAW2C} ${CMAKE_SOURCE_DIR}/src/platform/wii/font.tpl OUTPUT_QUIET ERROR_QUIET)
|
execute_process(COMMAND ${RAW2C} ${CMAKE_SOURCE_DIR}/src/platform/wii/font.tpl OUTPUT_QUIET ERROR_QUIET)
|
||||||
add_executable(${BINARY_NAME}.elf ${GUI_SRC} ${CMAKE_BINARY_DIR}/font.c)
|
|
||||||
target_link_libraries(${BINARY_NAME}.elf ${BINARY_NAME} ${OS_LIB})
|
|
||||||
add_custom_command(TARGET ${BINARY_NAME}.elf POST_BUILD COMMAND ${ELF2DOL} ${BINARY_NAME}.elf ${BINARY_NAME}.dol)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(BUILD_RASPI)
|
if(BUILD_RASPI)
|
||||||
|
@ -450,6 +447,10 @@ if(BUILD_QT)
|
||||||
add_subdirectory(${CMAKE_SOURCE_DIR}/src/platform/qt ${CMAKE_BINARY_DIR}/qt)
|
add_subdirectory(${CMAKE_SOURCE_DIR}/src/platform/qt ${CMAKE_BINARY_DIR}/qt)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(WII)
|
||||||
|
add_subdirectory(${CMAKE_SOURCE_DIR}/src/platform/wii ${CMAKE_BINARY_DIR})
|
||||||
|
endif()
|
||||||
|
|
||||||
if(BUILD_PERF)
|
if(BUILD_PERF)
|
||||||
set(PERF_SRC ${CMAKE_SOURCE_DIR}/src/platform/perf-main.c)
|
set(PERF_SRC ${CMAKE_SOURCE_DIR}/src/platform/perf-main.c)
|
||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
add_executable(${BINARY_NAME}.elf ${GUI_SRC} ${CMAKE_BINARY_DIR}/font.c)
|
||||||
|
target_link_libraries(${BINARY_NAME}.elf ${BINARY_NAME} ${OS_LIB})
|
||||||
|
add_custom_command(TARGET ${BINARY_NAME}.elf POST_BUILD COMMAND ${ELF2DOL} ${BINARY_NAME}.elf ${BINARY_NAME}.dol)
|
||||||
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/meta.xml.in ${CMAKE_CURRENT_BINARY_DIR}/meta.xml)
|
||||||
|
add_custom_target(${BINARY_NAME}-wii.zip ALL
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E remove ${BINARY_NAME}-wii.zip
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${BINARY_NAME}-wii
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/meta.xml ${BINARY_NAME}-wii/
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy ${BINARY_NAME}.dol ${BINARY_NAME}-wii/boot.dol
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/icon.png ${BINARY_NAME}-wii/
|
||||||
|
COMMAND zip -r ${BINARY_NAME}-wii.zip ${BINARY_NAME}-wii
|
||||||
|
DEPENDS ${BINARY_NAME}.elf
|
||||||
|
SOURCES
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/meta.xml.in
|
||||||
|
${BINARY_NAME}.dol
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/icon.png)
|
Binary file not shown.
After Width: | Height: | Size: 6.9 KiB |
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
<app version="1">
|
||||||
|
<name>mGBA</name>
|
||||||
|
<coder>Jeffrey Pfau (endrift)</coder>
|
||||||
|
<version>${VERSION_STRING}</version>
|
||||||
|
<short_description>mGBA Game Boy Advance emulator</short_description>
|
||||||
|
</app>
|
Loading…
Reference in New Issue