You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
1.8 KiB
88 lines
1.8 KiB
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,
|
|
},
|
|
},
|
|
}
|