forked from Vera-Firefly/android-mesa-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathandroid-aarch64
More file actions
42 lines (33 loc) · 1.38 KB
/
android-aarch64
File metadata and controls
42 lines (33 loc) · 1.38 KB
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
42
[constants]
# Path to your Android NDK root
#ndk_root = '/usr/android-ndk-r27d'
# Convenience variables
#NDK = ndk_root / 'toolchains/llvm/prebuilt/linux-x86_64/bin'
SDK_VER = '34' # Android API level
# Override with github var
NDK = '${WORK_DIR}/${NDK_VER}' / 'toolchains/llvm/prebuilt/linux-x86_64/bin'
ndk_root = '${WORK_DIR}/${NDK_VER}'
[binaries]
c = NDK / ('aarch64-linux-android' + SDK_VER + '-clang')
cpp = NDK / ('aarch64-linux-android' + SDK_VER + '-clang++')
ar = NDK / 'llvm-ar'
strip = NDK / 'aarch64-linux-android-strip'
pkgconfig = '/usr/bin/pkg-config'
[host_machine]
system = 'android'
cpu_family = 'aarch64'
cpu = 'aarch64'
endian = 'little'
[properties]
# Sysroot for the NDK toolchain
sys_root = '${WORK_DIR}/${NDK_VER}' / 'toolchains/llvm/prebuilt/linux-x86_64/sysroot'
# Point pkg-config to your cross-built libdrm .pc file
# Adjust path if libdrm.pc is in a different directory
pkg_config_libdir = ['/tmp/mesa/lib/pkgconfig']
# Compiler flags for C
c_args = ['-O3', '-fPIC', '-DVK_USE_PLATFORM_ANDROID_KHR', '-U_FORTIFY_SOURCE']
# Compiler flags for C++
cpp_args = ['-O3', '-fPIC', '-DVK_USE_PLATFORM_ANDROID_KHR', '-U_FORTIFY_SOURCE', '-fno-exceptions', '-fno-unwind-tables', '-fno-asynchronous-unwind-tables', '-Wno-c++11-narrowing', '-Wno-array-bounds']
# Linker flags
c_link_args = []
cpp_link_args = ['-static-libstdc++']