-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch PR & remove X11 part from CMakeLists
- Loading branch information
Showing
37 changed files
with
470 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: re3 cmake devkitA64 (Nintendo Switch) | ||
on: | ||
pull_request: | ||
push: | ||
release: | ||
types: published | ||
jobs: | ||
build-nintendo-switch: | ||
runs-on: ubuntu-latest | ||
container: devkitpro/devkita64:latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: 'true' | ||
- name: "Build files" | ||
run: | | ||
/opt/devkitpro/portlibs/switch/bin/aarch64-none-elf-cmake -S. -Bbuild -DRE3_AUDIO=OAL -DLIBRW_PLATFORM=GL3 -DLIBRW_GL3_GFXLIB=GLFW -DRE3_WITH_OPUS=False -DRE3_VENDORED_LIBRW=True -DRE3_INSTALL=True | ||
cmake --build build --parallel | ||
- name: "Create binary package (cpack)" | ||
working-directory: ./build | ||
run: | | ||
cpack | ||
- name: "Archive binary package (github artifacts)" | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: "switch-gl3" | ||
path: build/*.zip | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
if(NOT COMMAND nx_generate_nacp) | ||
message(FATAL_ERROR "The `nx_generate_nacp` cmake command is not available. Please use an appropriate Nintendo Switch toolchain.") | ||
endif() | ||
|
||
if(NOT COMMAND nx_create_nro) | ||
message(FATAL_ERROR "The `nx_create_nro` cmake command is not available. Please use an appropriate Nintendo Switch toolchain.") | ||
endif() | ||
|
||
set(CMAKE_EXECUTABLE_SUFFIX ".elf") | ||
|
||
function(re3_platform_target TARGET) | ||
cmake_parse_arguments(RPT "INSTALL" "" "" ${ARGN}) | ||
|
||
get_target_property(TARGET_TYPE "${TARGET}" TYPE) | ||
if(TARGET_TYPE STREQUAL "EXECUTABLE") | ||
nx_generate_nacp(${TARGET}.nacp | ||
NAME "${TARGET}" | ||
AUTHOR "${${PROJECT}_AUTHOR}" | ||
VERSION "1.0.0-${GIT_SHA1}" | ||
) | ||
|
||
nx_create_nro(${TARGET} | ||
NACP ${TARGET}.nacp | ||
ICON "${PROJECT_SOURCE_DIR}/res/images/logo_256.jpg" | ||
) | ||
|
||
if(${PROJECT}_INSTALL AND RPT_INSTALL) | ||
get_target_property(TARGET_OUTPUT_NAME ${TARGET} OUTPUT_NAME) | ||
if(NOT TARGET_OUTPUT_NAME) | ||
set(TARGET_OUTPUT_NAME "${TARGET}") | ||
endif() | ||
|
||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${TARGET_OUTPUT_NAME}.nro" | ||
DESTINATION "." | ||
) | ||
endif() | ||
endif() | ||
endfunction() |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.