Jayant Chowdhary | 478c7c1 | 2018-03-28 18:45:35 -0700 | [diff] [blame] | 1 | // Copyright 2012 The Android Open Source Project |
| 2 | |
| 3 | cc_library_headers { |
| 4 | name: "libmkbootimg_abi_headers", |
| 5 | vendor_available: true, |
| 6 | export_include_dirs: ["include"], |
| 7 | } |
| 8 | |
| 9 | cc_library_headers { |
| 10 | name: "bootimg_headers", |
| 11 | vendor_available: true, |
Tom Cherry | 1151d15 | 2018-07-24 13:45:09 -0700 | [diff] [blame] | 12 | recovery_available: true, |
Jayant Chowdhary | 478c7c1 | 2018-03-28 18:45:35 -0700 | [diff] [blame] | 13 | export_include_dirs: ["include/bootimg"], |
| 14 | host_supported: true, |
| 15 | target: { |
| 16 | windows: { |
| 17 | enabled: true, |
| 18 | }, |
| 19 | }, |
| 20 | } |
| 21 | |
| 22 | cc_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 Bao | 0e5e816 | 2018-09-27 14:11:51 +0000 | [diff] [blame] | 34 | |
| 35 | python_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 | |
| 50 | python_binary_host { |
| 51 | name: "mkbootimg", |
| 52 | defaults: ["mkbootimg_defaults"], |
| 53 | srcs: [ |
| 54 | "mkbootimg.py", |
| 55 | ], |
| 56 | } |
| 57 | |
| 58 | python_binary_host { |
| 59 | name: "unpack_bootimg", |
| 60 | defaults: ["mkbootimg_defaults"], |
| 61 | srcs: [ |
| 62 | "unpack_bootimg.py", |
| 63 | ], |
| 64 | } |