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