platform_build_soong/cc/libbuildversion/tests/Android.bp

88 lines
1.8 KiB
Plaintext

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_defaults {
name: "build_version_test_defaults",
use_version_lib: true,
host_supported: true,
dist: {
targets: ["test_build_version_test"],
},
target: {
android_arm: {
dist: {
dir: "android/arm",
},
},
android_arm64: {
dist: {
dir: "android/arm64",
},
},
android_x86: {
dist: {
dir: "android/x86",
},
},
android_x86_64: {
dist: {
dir: "android/x86_64",
},
},
darwin: {
dist: {
dir: "host/",
},
},
linux_glibc_x86: {
dist: {
dir: "host32/",
},
},
linux_glibc_x86_64: {
dist: {
dir: "host/",
},
},
windows: {
enabled: true,
},
windows_x86_64: {
dist: {
dest: "win64/build_ver_test.exe",
},
},
},
}
cc_test {
name: "build_version_test",
defaults: ["build_version_test_defaults"],
srcs: ["build_version_test.cpp"],
target: {
android: {
shared_libs: ["libbuild_version_test"],
},
not_windows: {
shared_libs: ["libbuild_version_test"],
},
host: {
dist: {
suffix: "_host",
},
},
},
}
cc_library_shared {
name: "libbuild_version_test",
defaults: ["build_version_test_defaults"],
srcs: ["build_version_test_lib.cpp"],
target: {
windows: {
enabled: false,
},
},
}