blob: c3cf746516dccbfe52e3216f9c7f9e7f6dd5bb32 [file] [log] [blame]
Jayant Chowdhary478c7c12018-03-28 18:45:35 -07001// Copyright 2012 The Android Open Source Project
2
3cc_library_headers {
4 name: "libmkbootimg_abi_headers",
5 vendor_available: true,
6 export_include_dirs: ["include"],
7}
8
9cc_library_headers {
10 name: "bootimg_headers",
11 vendor_available: true,
Tom Cherry1151d152018-07-24 13:45:09 -070012 recovery_available: true,
Jayant Chowdhary478c7c12018-03-28 18:45:35 -070013 export_include_dirs: ["include/bootimg"],
14 host_supported: true,
15 target: {
16 windows: {
17 enabled: true,
18 },
19 },
20}
21
22cc_library {
23 name: "libmkbootimg_abi_check",
24 vendor_available: true,
25 vndk: {
26 enabled: true,
27 },
28 srcs: [
29 "mkbootimg_dummy.cpp",
30 ],
31 header_libs: ["libmkbootimg_abi_headers"],
32 export_header_lib_headers: ["libmkbootimg_abi_headers"],
33}
Tao Bao0e5e8162018-09-27 14:11:51 +000034
35python_defaults {
36 name: "mkbootimg_defaults",
37
38 version: {
39 py2: {
40 enabled: true,
41 embedded_launcher: true,
42 },
43 py3: {
44 enabled: false,
45 embedded_launcher: false,
46 },
47 },
48}
49
50python_binary_host {
51 name: "mkbootimg",
52 defaults: ["mkbootimg_defaults"],
53 srcs: [
54 "mkbootimg.py",
55 ],
56}
57
58python_binary_host {
59 name: "unpack_bootimg",
60 defaults: ["mkbootimg_defaults"],
61 srcs: [
62 "unpack_bootimg.py",
63 ],
64}