forked from dolphin-emu/dolphin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Android JNI bits from DolphinWX to the Android folder.
- Loading branch information
1 parent
0a42a0a
commit 74478ad
Showing
8 changed files
with
43 additions
and
39 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
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
File renamed without changes.
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,34 @@ | ||
list(APPEND LIBS core uicommon) | ||
|
||
set(SRCS ButtonManager.cpp | ||
MainAndroid.cpp) | ||
|
||
if(ANDROID) | ||
set(DOLPHIN_EXE main) | ||
add_library(${DOLPHIN_EXE} SHARED ${SRCS}) | ||
target_link_libraries(${DOLPHIN_EXE} | ||
log | ||
android | ||
"-Wl,--no-warn-mismatch" | ||
"-Wl,--whole-archive" | ||
${LIBS} | ||
"-Wl,--no-whole-archive" | ||
) | ||
add_custom_command(TARGET ${DOLPHIN_EXE} POST_BUILD | ||
COMMAND mkdir ARGS -p ${CMAKE_SOURCE_DIR}/Source/Android/app/src/main/jniLibs/${ANDROID_NDK_ABI_NAME} | ||
) | ||
add_custom_command(TARGET ${DOLPHIN_EXE} POST_BUILD | ||
COMMAND mkdir ARGS -p ${CMAKE_SOURCE_DIR}/Source/Android/app/src/main/assets/ | ||
) | ||
add_custom_command(TARGET ${DOLPHIN_EXE} POST_BUILD | ||
COMMAND cp ARGS ${LIBRARY_OUTPUT_PATH_ROOT}/libs/${ANDROID_NDK_ABI_NAME}/lib${DOLPHIN_EXE}.so ${CMAKE_SOURCE_DIR}/Source/Android/app/src/main/jniLibs/${ANDROID_NDK_ABI_NAME}/ | ||
) | ||
add_custom_command(TARGET ${DOLPHIN_EXE} POST_BUILD | ||
COMMAND cp ARGS ${CMAKE_SOURCE_DIR}/Data/Sys/GC/* ${CMAKE_SOURCE_DIR}/Source/Android/app/src/main/assets/ | ||
) | ||
add_custom_command(TARGET ${DOLPHIN_EXE} POST_BUILD | ||
COMMAND cp ARGS -r ${CMAKE_SOURCE_DIR}/Data/Sys/Shaders ${CMAKE_SOURCE_DIR}/Source/Android/app/src/main/assets/ | ||
) | ||
|
||
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} ${DOLPHIN_EXE}) | ||
endif() |
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