diff options
-rw-r--r-- | perfprofd/Android.bp | 43 | ||||
-rw-r--r-- | perfprofd/dropbox/Android.bp | 2 |
2 files changed, 37 insertions, 8 deletions
diff --git a/perfprofd/Android.bp b/perfprofd/Android.bp index 04c10b19..7cecbe92 100644 --- a/perfprofd/Android.bp +++ b/perfprofd/Android.bp @@ -51,6 +51,41 @@ cc_defaults { ], } +// Static library for the record proto and its I/O. + +cc_library_static { + name: "libperfprofd_record_proto", + defaults: [ + "perfprofd_defaults", + ], + host_supported: true, + target: { + darwin: { + enabled: false, + }, + }, + + static_libs: [ + "libbase", + "libprotobuf-cpp-lite", + "libquipper", + "libz", + ], + srcs: [ + "perfprofd_io.cc", + "perfprofd_record.proto", + ], + + proto: { + export_proto_headers: true, + include_dirs: ["external/perf_data_converter/src/quipper"], + type: "lite", + }, + + export_include_dirs: ["."], // Really only the -fwd.h. + export_static_lib_headers: ["libquipper"], +} + // // Static library containing guts of AWP daemon. // @@ -72,24 +107,18 @@ cc_defaults { "libsimpleperf_elf_read", ], whole_static_libs: [ + "libperfprofd_record_proto", "libquipper", ], srcs: [ - "perfprofd_record.proto", "perf_data_converter.cc", "configreader.cc", "cpuconfig.cc", "perfprofdcore.cc", "perfprofd_cmdline.cc", - "perfprofd_io.cc", "symbolizer.cc" ], - proto: { - export_proto_headers: true, - include_dirs: ["external/perf_data_converter/src/quipper"], - type: "lite", - }, cflags: [ "-Wno-gnu-anonymous-struct", ], diff --git a/perfprofd/dropbox/Android.bp b/perfprofd/dropbox/Android.bp index 72c749b2..c3b8f3b8 100644 --- a/perfprofd/dropbox/Android.bp +++ b/perfprofd/dropbox/Android.bp @@ -27,7 +27,7 @@ cc_library_static { export_include_dirs: ["."], static_libs: [ "libbase", - "libperfprofdcore", + "libperfprofd_record_proto", "libprotobuf-cpp-lite", ], target: { |