2016-01-06 21:35:15 +00:00
|
|
|
list(APPEND LIBS core uicommon)
|
|
|
|
|
|
|
|
set(SRCS ButtonManager.cpp
|
|
|
|
MainAndroid.cpp)
|
|
|
|
|
2016-01-20 16:32:53 +00:00
|
|
|
set(SHARED_LIB main)
|
|
|
|
add_library(${SHARED_LIB} SHARED ${SRCS})
|
|
|
|
target_link_libraries(${SHARED_LIB}
|
|
|
|
log
|
|
|
|
android
|
|
|
|
"-Wl,--no-warn-mismatch"
|
|
|
|
"-Wl,--whole-archive"
|
|
|
|
${LIBS}
|
|
|
|
"-Wl,--no-whole-archive"
|
|
|
|
)
|
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/)
|
|
|
|
file(REMOVE_RECURSE ${CMAKE_SOURCE_DIR}/Source/Android/app/src/main/assets/Sys/Resources/) # not used on Android
|
2016-01-06 21:35:15 +00:00
|
|
|
|
2016-01-20 16:32:53 +00:00
|
|
|
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} ${SHARED_LIB})
|