diff options
author | ThiƩbaud Weksteen <tweek@google.com> | 2020-12-08 15:04:29 +0100 |
---|---|---|
committer | ThiƩbaud Weksteen <tweek@google.com> | 2020-12-15 20:34:19 +0100 |
commit | 97eb5696d48b2f5de4016c16cac2de31e660676c (patch) | |
tree | 91f2586037386a932a7671758d8a4274aab93253 | |
parent | f091064f7188de8c0b4b76ccf5d51c0f0d281ca5 (diff) | |
download | bloaty-97eb5696d48b2f5de4016c16cac2de31e660676c.tar.gz |
Add Blueprint files
Bug: 172338620
Change-Id: Ie9d5da6116816cb5404a90011d56735fb1b0ecc4
-rw-r--r-- | Android.bp | 6 | ||||
-rw-r--r-- | src/Android.bp | 59 |
2 files changed, 65 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..ce6828f --- /dev/null +++ b/Android.bp @@ -0,0 +1,6 @@ +cc_library_headers { + name: "libbloaty_headers", + host_supported: true, + device_supported: false, + export_include_dirs: ["."], +} diff --git a/src/Android.bp b/src/Android.bp new file mode 100644 index 0000000..619e275 --- /dev/null +++ b/src/Android.bp @@ -0,0 +1,59 @@ +cc_library_host_static { + name: "bloaty-proto", + srcs: [ + "bloaty.proto", + ], + proto: { + export_proto_headers: true, + type: "full", + }, +} + +cc_defaults { + name: "bloaty-defaults", + cflags: [ + "-fexceptions", + "-Wno-macro-redefined", + "-Wno-unused-parameter", + "-Wno-shift-count-overflow", + ], + header_libs: [ + "libabsl_headers", + ], + static_libs: [ + "bloaty-proto", + "libprotobuf-cpp-full", + "libabsl_base", + "libabsl_numeric", + "libabsl_strings", + "libabsl_types", + "libcapstone", + ], +} + +cc_library_host_static { + name: "libbloaty", + defaults: ["bloaty-defaults"], + srcs: [ + "bloaty.cc", + "demangle.cc", + "disassemble.cc", + "dwarf.cc", + "elf.cc", + "macho.cc", + "range_map.cc", + "webassembly.cc", + ], + header_libs: [ + "libbloaty_headers", + ], +} + +cc_binary_host { + name: "bloaty", + defaults: ["bloaty-defaults"], + srcs: ["main.cc"], + static_libs: [ + "libbloaty", + ], +} |