2018-04-02 16:47:26 +00:00
|
|
|
add_library(main SHARED
|
2018-06-01 07:36:29 +00:00
|
|
|
GameList/GameFile.cpp
|
2020-06-26 15:52:31 +00:00
|
|
|
GameList/GameFile.h
|
2018-06-01 07:36:29 +00:00
|
|
|
GameList/GameFileCache.cpp
|
2020-07-06 14:57:49 +00:00
|
|
|
IniFile.cpp
|
2018-04-02 16:47:26 +00:00
|
|
|
MainAndroid.cpp
|
2020-07-22 13:28:26 +00:00
|
|
|
NativeConfig.cpp
|
2018-04-02 16:47:26 +00:00
|
|
|
)
|
2016-01-06 21:35:15 +00:00
|
|
|
|
2018-04-02 16:47:26 +00:00
|
|
|
target_link_libraries(main
|
|
|
|
PRIVATE
|
2020-06-26 15:52:31 +00:00
|
|
|
androidcommon
|
2018-04-02 16:47:26 +00:00
|
|
|
core
|
|
|
|
uicommon
|
|
|
|
)
|
2016-01-06 21:35:15 +00:00
|
|
|
|
2018-04-02 16:47:26 +00:00
|
|
|
target_link_libraries(main
|
|
|
|
PRIVATE
|
|
|
|
android
|
|
|
|
log
|
|
|
|
"-Wl,--no-warn-mismatch"
|
|
|
|
"-Wl,--whole-archive"
|
|
|
|
"-Wl,--no-whole-archive"
|
2016-01-20 16:32:53 +00:00
|
|
|
)
|
2016-06-08 17:49:46 +00:00
|
|
|
|
|
|
|
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/Source/Android/app/src/main/assets/)
|
2017-09-09 09:27:24 +00:00
|
|
|
file(REMOVE_RECURSE ${CMAKE_SOURCE_DIR}/Source/Android/app/src/main/assets/Sys/)
|
|
|
|
file(COPY ${CMAKE_SOURCE_DIR}/Data/Sys DESTINATION ${CMAKE_SOURCE_DIR}/Source/Android/app/src/main/assets/)
|
2018-06-03 09:11:24 +00:00
|
|
|
|
|
|
|
# Delete folders that aren't used by the Android version of Dolphin
|
|
|
|
file(REMOVE_RECURSE ${CMAKE_SOURCE_DIR}/Source/Android/app/src/main/assets/Sys/Resources/)
|
|
|
|
file(REMOVE_RECURSE ${CMAKE_SOURCE_DIR}/Source/Android/app/src/main/assets/Sys/Themes/)
|
2016-01-06 21:35:15 +00:00
|
|
|
|
2018-04-02 16:47:26 +00:00
|
|
|
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} main)
|
2020-06-26 15:52:31 +00:00
|
|
|
|
|
|
|
add_subdirectory(AndroidCommon)
|