32 lines
882 B
INI
32 lines
882 B
INI
[constants]
|
|
sdk = '/Applications/DevEco-Studio.app/Contents/sdk/default/openharmony/native'
|
|
toolchain = sdk / 'llvm/bin'
|
|
sysroot = sdk / 'sysroot'
|
|
target_flags = ['--target=aarch64-linux-ohos', '--sysroot=' + sysroot, '-D__MUSL__']
|
|
|
|
[binaries]
|
|
c = toolchain / 'clang'
|
|
cpp = toolchain / 'clang++'
|
|
ar = toolchain / 'llvm-ar'
|
|
strip = toolchain / 'llvm-strip'
|
|
pkg-config = '@DIRNAME@/../scripts/pkg-config-ohos.sh'
|
|
cmake = sdk / 'build-tools/cmake/bin/cmake'
|
|
|
|
[built-in options]
|
|
c_args = target_flags
|
|
cpp_args = target_flags
|
|
c_link_args = target_flags
|
|
cpp_link_args = target_flags
|
|
default_library = 'static'
|
|
|
|
[properties]
|
|
needs_exe_wrapper = true
|
|
sys_root = sysroot
|
|
pkg_config_libdir = ['@DIRNAME@/../build/ohos-arm64/prefix/lib/pkgconfig', '@DIRNAME@/../build/ohos-arm64/prefix/share/pkgconfig']
|
|
|
|
[host_machine]
|
|
system = 'ohos'
|
|
cpu_family = 'aarch64'
|
|
cpu = 'armv8-a'
|
|
endian = 'little'
|