1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "system_core_fastboot_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-BSD
7    default_applicable_licenses: ["system_core_fastboot_license"],
8}
9
10cc_test_host {
11  name: "fuzzy_fastboot",
12  compile_multilib: "first",
13
14  srcs: [
15    "main.cpp",
16    "extensions.cpp",
17    "transport_sniffer.cpp",
18    "fixtures.cpp",
19    "test_utils.cpp",
20  ],
21
22  static_libs: [
23    "libfastboot2",
24    "libziparchive",
25    "libsparse",
26    "libutils",
27    "liblog",
28    "libz",
29    "libdiagnose_usb",
30    "libbase",
31    "libcutils",
32    "libgtest",
33    "libgtest_main",
34    "libbase",
35    "libadb_host",
36    "libtinyxml2",
37    "libsparse",
38    "liblp",
39    "libcrypto",
40    "libext4_utils",
41  ],
42
43  stl: "libc++_static",
44
45  // Static libs (libfastboot2) shared library dependencies are not transitively included
46  // This is needed to avoid link time errors when building for mac
47  target: {
48    darwin: {
49      host_ldlibs: [
50          "-framework CoreFoundation",
51          "-framework IOKit",
52      ],
53    },
54  },
55
56  // Disable auto-generation of test config as this binary itself is not a test in the test suites,
57  // rather it is used by other tests.
58  auto_gen_config: false,
59  test_suites: [
60    "general-tests",
61    "vts",
62  ],
63}
64