mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-16 04:09:39 +00:00
We were previously excluding this folder from Android builds because it didn't contain any files that were used on Android. However, we now have an OSD font file that we do want to use on Android, and there's also a few PNG files that will be needed by the RetroAchievements integration. In terms of file size, this is what gets added: OSD font: 48.1 KiB RetroAchievements graphics: 3.5 KiB Unused graphics: 116.8 KiB We're still excluding Sys/Themes/, which is 1.1 MiB and entirely unused.
74 lines
1.7 KiB
CMake
74 lines
1.7 KiB
CMake
add_library(main SHARED
|
|
ActivityTracker.cpp
|
|
Cheats/ARCheat.cpp
|
|
Cheats/Cheats.h
|
|
Cheats/GeckoCheat.cpp
|
|
Cheats/GraphicsMod.cpp
|
|
Cheats/GraphicsModGroup.cpp
|
|
Cheats/PatchCheat.cpp
|
|
Config/ConfigChangedCallback.cpp
|
|
Config/NativeConfig.cpp
|
|
Config/PostProcessing.cpp
|
|
GameList/GameFile.cpp
|
|
GameList/GameFile.h
|
|
GameList/GameFileCache.cpp
|
|
GpuDriver.cpp
|
|
Host.cpp
|
|
Host.h
|
|
InfinityConfig.cpp
|
|
Input/Control.cpp
|
|
Input/Control.h
|
|
Input/ControlGroup.cpp
|
|
Input/ControlGroup.h
|
|
Input/ControlReference.cpp
|
|
Input/ControlReference.h
|
|
Input/CoreDevice.cpp
|
|
Input/CoreDevice.h
|
|
Input/EmulatedController.cpp
|
|
Input/EmulatedController.h
|
|
Input/InputDetector.cpp
|
|
Input/InputOverrider.cpp
|
|
Input/MappingCommon.cpp
|
|
Input/NumericSetting.cpp
|
|
Input/NumericSetting.h
|
|
MainAndroid.cpp
|
|
RiivolutionPatches.cpp
|
|
SkylanderConfig.cpp
|
|
WiiUtils.cpp
|
|
)
|
|
|
|
target_link_libraries(main
|
|
PRIVATE
|
|
androidcommon
|
|
common
|
|
core
|
|
inputcommon
|
|
uicommon
|
|
)
|
|
|
|
target_link_libraries(main
|
|
PRIVATE
|
|
android
|
|
log
|
|
"-Wl,--no-warn-mismatch"
|
|
"-Wl,--whole-archive"
|
|
"-Wl,--no-whole-archive"
|
|
)
|
|
|
|
target_include_directories(main
|
|
PRIVATE
|
|
${CMAKE_SOURCE_DIR}/Externals/libadrenotools/include
|
|
${CMAKE_SOURCE_DIR}/Externals/VulkanMemoryAllocator/include
|
|
)
|
|
|
|
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/Themes/)
|
|
|
|
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} main)
|
|
|
|
add_subdirectory(AndroidCommon)
|