2018-04-02 18:47:26 +02:00
|
|
|
add_library(main SHARED
|
2024-06-15 18:15:45 +02:00
|
|
|
ActivityTracker.cpp
|
2021-07-17 19:47:11 +02:00
|
|
|
Cheats/ARCheat.cpp
|
2021-08-07 16:08:07 +02:00
|
|
|
Cheats/Cheats.h
|
2021-07-17 19:47:11 +02:00
|
|
|
Cheats/GeckoCheat.cpp
|
2022-07-23 17:14:26 +02:00
|
|
|
Cheats/GraphicsMod.cpp
|
|
|
|
Cheats/GraphicsModGroup.cpp
|
2021-07-17 19:47:11 +02:00
|
|
|
Cheats/PatchCheat.cpp
|
2023-03-15 21:53:29 +01:00
|
|
|
Config/ConfigChangedCallback.cpp
|
2021-05-20 16:34:30 +02:00
|
|
|
Config/NativeConfig.cpp
|
|
|
|
Config/PostProcessing.cpp
|
2018-06-01 09:36:29 +02:00
|
|
|
GameList/GameFile.cpp
|
2020-06-26 17:52:31 +02:00
|
|
|
GameList/GameFile.h
|
2018-06-01 09:36:29 +02:00
|
|
|
GameList/GameFileCache.cpp
|
2024-06-15 18:15:45 +02:00
|
|
|
GpuDriver.cpp
|
2023-06-11 12:06:23 +02:00
|
|
|
Host.cpp
|
|
|
|
Host.h
|
2023-05-01 12:30:31 +02:00
|
|
|
InfinityConfig.cpp
|
2022-01-23 21:47:57 +01:00
|
|
|
Input/Control.cpp
|
|
|
|
Input/Control.h
|
|
|
|
Input/ControlGroup.cpp
|
|
|
|
Input/ControlGroup.h
|
|
|
|
Input/ControlReference.cpp
|
|
|
|
Input/ControlReference.h
|
2022-12-27 16:29:01 +01:00
|
|
|
Input/CoreDevice.cpp
|
|
|
|
Input/CoreDevice.h
|
2022-01-23 21:47:57 +01:00
|
|
|
Input/EmulatedController.cpp
|
2022-08-14 11:32:22 +02:00
|
|
|
Input/EmulatedController.h
|
2021-04-03 13:49:26 +02:00
|
|
|
Input/InputOverrider.cpp
|
2022-01-23 21:47:57 +01:00
|
|
|
Input/MappingCommon.cpp
|
2022-04-18 16:11:14 +02:00
|
|
|
Input/NumericSetting.cpp
|
|
|
|
Input/NumericSetting.h
|
2018-04-02 18:47:26 +02:00
|
|
|
MainAndroid.cpp
|
2021-10-24 21:06:59 +02:00
|
|
|
RiivolutionPatches.cpp
|
2023-01-26 01:10:58 +01:00
|
|
|
SkylanderConfig.cpp
|
2021-01-17 22:15:13 +01:00
|
|
|
WiiUtils.cpp
|
2018-04-02 18:47:26 +02:00
|
|
|
)
|
2016-01-06 22:35:15 +01:00
|
|
|
|
2018-04-02 18:47:26 +02:00
|
|
|
target_link_libraries(main
|
|
|
|
PRIVATE
|
2020-06-26 17:52:31 +02:00
|
|
|
androidcommon
|
2020-10-14 20:50:38 +02:00
|
|
|
common
|
2018-04-02 18:47:26 +02:00
|
|
|
core
|
2022-01-23 21:47:57 +01:00
|
|
|
inputcommon
|
2018-04-02 18:47:26 +02:00
|
|
|
uicommon
|
|
|
|
)
|
2016-01-06 22:35:15 +01:00
|
|
|
|
2018-04-02 18:47:26 +02:00
|
|
|
target_link_libraries(main
|
|
|
|
PRIVATE
|
|
|
|
android
|
|
|
|
log
|
|
|
|
"-Wl,--no-warn-mismatch"
|
|
|
|
"-Wl,--whole-archive"
|
|
|
|
"-Wl,--no-whole-archive"
|
2016-01-20 17:32:53 +01:00
|
|
|
)
|
2016-06-08 19:49:46 +02:00
|
|
|
|
2023-06-01 00:05:06 +02:00
|
|
|
target_include_directories(main
|
|
|
|
PRIVATE
|
|
|
|
${CMAKE_SOURCE_DIR}/Externals/libadrenotools/include
|
|
|
|
${CMAKE_SOURCE_DIR}/Externals/VulkanMemoryAllocator/include
|
|
|
|
)
|
|
|
|
|
2016-06-08 19:49:46 +02:00
|
|
|
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/Source/Android/app/src/main/assets/)
|
2017-09-09 11:27:24 +02: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 11:11:24 +02: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 22:35:15 +01:00
|
|
|
|
2018-04-02 18:47:26 +02:00
|
|
|
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} main)
|
2020-06-26 17:52:31 +02:00
|
|
|
|
|
|
|
add_subdirectory(AndroidCommon)
|