diff options
author | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2023-10-17 07:53:02 +0000 |
---|---|---|
committer | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2023-10-18 12:24:14 +0000 |
commit | beaffa59a04ebabf17dee7b329ab570da14651b8 (patch) | |
tree | 3a2b0a1f5f9bf9bd02e4791a976ab583b57528b1 | |
parent | cca55c1cf8d599fcc3097cc0b37b3da3b0bd2eca (diff) |
cross-file: Add a cross file for Android aarch64
From: https://github.com/makohoek/aosp-vndk-meson
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
-rw-r--r-- | aarch64-linux-android-ndk.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/aarch64-linux-android-ndk.txt b/aarch64-linux-android-ndk.txt new file mode 100644 index 00000000..05c5eb42 --- /dev/null +++ b/aarch64-linux-android-ndk.txt @@ -0,0 +1,31 @@ +# SPDX-License-Identifier: CC0-1.0 + +[constants] +# TODO: edit these paths for your own locations +ndk = '/home/build/android-ndk-r26b' + +# see: https://android.googlesource.com/platform/ndk/+/master/docs/BuildSystemMaintainers.md#target-selection +triple = 'aarch64-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 ='aarch64' +cpu = 'cortex-a57.cortex-a53' +endian = 'little' |