mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
1c027bc148
Deduplicates code, and gets rid of some problems the old code had (such as: bad performance when calling native functions, only one disc showing up for multi-disc games, Wii banners being low-res, unnecessarily much effort being needed for adding more metadata).
34 lines
948 B
CMake
34 lines
948 B
CMake
add_library(main SHARED
|
|
AndroidCommon/AndroidCommon.cpp
|
|
AndroidCommon/IDCache.cpp
|
|
GameList/GameFile.cpp
|
|
GameList/GameFileCache.cpp
|
|
ButtonManager.cpp
|
|
MainAndroid.cpp
|
|
)
|
|
|
|
target_link_libraries(main
|
|
PRIVATE
|
|
core
|
|
uicommon
|
|
)
|
|
|
|
target_link_libraries(main
|
|
PRIVATE
|
|
android
|
|
log
|
|
"-Wl,--no-warn-mismatch"
|
|
"-Wl,--whole-archive"
|
|
"-Wl,--no-whole-archive"
|
|
)
|
|
|
|
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/Source/Android/app/src/main/assets/)
|
|
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/)
|
|
|
|
# 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/)
|
|
|
|
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} main)
|