summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattijs Korpershoek <mkorpershoek@baylibre.com>2023-10-13 10:33:29 +0200
committerMattijs Korpershoek <mkorpershoek@baylibre.com>2023-10-13 16:31:13 +0200
commitd8236944c31c5e48aa7a2cf18cdd702d3ae234f6 (patch)
tree93819c379e6283ad53b39851be90efd033c7ee26
parent5de271fe6c0f909006141ea26a7b94c1102be31d (diff)
DO NOT MERGE: add cross file
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
-rw-r--r--x86_64-linux-android.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/x86_64-linux-android.txt b/x86_64-linux-android.txt
new file mode 100644
index 00000000..a05c970f
--- /dev/null
+++ b/x86_64-linux-android.txt
@@ -0,0 +1,31 @@
+# SPDX-License-Identifier: CC0-1.0
+
+[constants]
+# TODO: edit these paths for your own locations
+ndk = '/mnt/work/aosp/android-ndk-r26b'
+
+# see: https://android.googlesource.com/platform/ndk/+/master/docs/BuildSystemMaintainers.md#target-selection
+triple = 'x86_64-linux-android'
+android_api_level = '33'
+target = triple + android_api_level
+
+toolchain = ndk / 'toolchains/llvm/prebuilt/linux-x86_64/bin'
+
+[properties]
+cpp_stdlib = 'vndk'
+
+[built-in options]
+cpp_args = ['-target', target]
+
+[binaries]
+c = toolchain / target + '-clang'
+cpp = toolchain / target + '-clang++'
+ar = toolchain / 'llvm-ar'
+strip = toolchain / 'llvm-strip'
+config = toolchain / 'llvm-config'
+
+[host_machine]
+system = 'linux'
+cpu_family ='x86_64'
+cpu = 'amd64'
+endian = 'little'