blob: d76ce93a169fa2a7f83fda382873cc542d3b0d56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
if(NOT CMAKE_TOOLCHAIN_FILE)
message(FATAL_ERROR "CMAKE_TOOLCHAIN_FILE required for android. See ${CMAKE_SOURCE_DIR}/cmake/README.md")
endif()
set(ARCH_DEFINES -DTARGET_POSIX -DTARGET_LINUX -DTARGET_ANDROID)
set(SYSTEM_DEFINES -D__STDC_CONSTANT_MACROS -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64=1)
# Main cpp
set(CORE_MAIN_SOURCE ${CMAKE_SOURCE_DIR}/xbmc/platform/android/activity/XBMCApp.cpp)
set(PLATFORM_DIR platform/linux)
set(PLATFORMDEFS_DIR platform/posix)
if(WITH_ARCH)
set(ARCH ${WITH_ARCH})
else()
if(CPU STREQUAL armeabi-v7a)
set(ARCH arm)
set(NEON True)
elseif(CPU STREQUAL arm64-v8a)
set(ARCH aarch64)
set(NEON True)
elseif(CPU STREQUAL i686)
set(ARCH i486-linux)
set(NEON False)
elseif(CPU STREQUAL x86_64)
set(ARCH x86_64)
set(NEON False)
else()
message(SEND_ERROR "Unknown CPU: ${CPU}")
endif()
endif()
# Additional SYSTEM_DEFINES
list(APPEND SYSTEM_DEFINES -DHAS_ZEROCONF)
set(ENABLE_X11 OFF CACHE BOOL "" FORCE)
set(ENABLE_OPTICAL OFF CACHE BOOL "" FORCE)
set(ENABLE_MDNS OFF CACHE BOOL "" FORCE)
list(APPEND DEPLIBS android log jnigraphics mediandk)
|