Aaron Wisner | db51120 | 2018-06-26 15:38:35 -0500 | [diff] [blame^] | 1 | cc_library_host_static { |
2 | name: "libfastboot2", | ||||
3 | |||||
4 | //host_supported: true, | ||||
5 | |||||
6 | compile_multilib: "first", | ||||
7 | srcs: [ | ||||
8 | "bootimg_utils.cpp", | ||||
9 | "fs.cpp", | ||||
10 | "socket.cpp", | ||||
11 | "tcp.cpp", | ||||
12 | "udp.cpp", | ||||
13 | "util.cpp", | ||||
14 | "fastboot_driver.cpp", | ||||
15 | ], | ||||
16 | |||||
17 | static_libs: [ | ||||
18 | "libziparchive", | ||||
19 | "libsparse", | ||||
20 | "libutils", | ||||
21 | "liblog", | ||||
22 | "libz", | ||||
23 | "libdiagnose_usb", | ||||
24 | "libbase", | ||||
25 | "libcutils", | ||||
26 | "libgtest", | ||||
27 | "libgtest_main", | ||||
28 | "libbase", | ||||
29 | "libadb_host" | ||||
30 | ], | ||||
31 | |||||
32 | header_libs: [ | ||||
33 | "bootimg_headers" | ||||
34 | ], | ||||
35 | |||||
36 | export_header_lib_headers: [ | ||||
37 | "bootimg_headers" | ||||
38 | ], | ||||
39 | |||||
40 | |||||
41 | target: { | ||||
42 | linux: { | ||||
43 | srcs: ["usb_linux.cpp"], | ||||
44 | }, | ||||
45 | }, | ||||
46 | |||||
47 | cflags: [ | ||||
48 | "-Wall", | ||||
49 | "-Wextra", | ||||
50 | "-Werror", | ||||
51 | "-Wunreachable-code", | ||||
52 | ], | ||||
53 | |||||
54 | export_include_dirs: ["."], | ||||
55 | |||||
56 | } |