• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5cc_defaults {
6    name: "build_version_test_defaults",
7    use_version_lib: true,
8    host_supported: true,
9    dist: {
10        targets: ["test_build_version_test"],
11    },
12    target: {
13        android_arm: {
14            dist: {
15                dir: "android/arm",
16            },
17        },
18        android_arm64: {
19            dist: {
20                dir: "android/arm64",
21            },
22        },
23        android_x86: {
24            dist: {
25                dir: "android/x86",
26            },
27        },
28        android_x86_64: {
29            dist: {
30                dir: "android/x86_64",
31            },
32        },
33        darwin: {
34            dist: {
35                dir: "host/",
36            },
37        },
38        linux_glibc_x86: {
39            dist: {
40                dir: "host32/",
41            },
42        },
43        linux_glibc_x86_64: {
44            dist: {
45                dir: "host/",
46            },
47        },
48        windows: {
49            enabled: true,
50        },
51        windows_x86_64: {
52            dist: {
53                dest: "win64/build_ver_test.exe",
54            },
55        },
56    },
57}
58
59cc_test {
60    name: "build_version_test",
61    defaults: ["build_version_test_defaults"],
62    srcs: ["build_version_test.cpp"],
63    target: {
64        android: {
65            shared_libs: ["libbuild_version_test"],
66        },
67        not_windows: {
68            shared_libs: ["libbuild_version_test"],
69        },
70        host: {
71            dist: {
72                suffix: "_host",
73            },
74        },
75    },
76}
77
78cc_library_shared {
79    name: "libbuild_version_test",
80    defaults: ["build_version_test_defaults"],
81    srcs: ["build_version_test_lib.cpp"],
82    target: {
83        windows: {
84            enabled: false,
85        },
86    },
87}
88