diff options
author | Andreas Gampe <agampe@google.com> | 2018-03-10 04:28:20 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-03-10 04:28:20 +0000 |
commit | 4b4402260e643165f26dcff37672a6c2c2ea3180 (patch) | |
tree | 71dddbf632a53deb52be4690100e03b24d899851 | |
parent | 05601a1038184242365f0fea1d0487f4d0979afc (diff) | |
parent | 000c1b2b980a1814e8a1817bc030bbf47fbac4cc (diff) | |
download | perf_data_converter-4b4402260e643165f26dcff37672a6c2c2ea3180.tar.gz |
PerfDataConverter: Add Android.bp file
am: 000c1b2b98
Change-Id: I2217af501f9254ede092685a624818abd0cb071b
-rw-r--r-- | src/quipper/Android.bp | 191 |
1 files changed, 191 insertions, 0 deletions
diff --git a/src/quipper/Android.bp b/src/quipper/Android.bp new file mode 100644 index 0000000..9e90c69 --- /dev/null +++ b/src/quipper/Android.bp @@ -0,0 +1,191 @@ +// +// Copyright (C) 2018 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +cc_defaults { + name: "libquipper_defaults", + + cflags: [ + "-Wno-unused", + "-Wno-unused-parameter", + "-Wno-missing-field-initializers", + "-O3", + "-g", + ], + + srcs: [ + "address_mapper.cc", + "binary_data_utils.cc", + "buffer_reader.cc", + "buffer_writer.cc", + // "compat/log_level.cc", + "data_reader.cc", + "data_writer.cc", + "dso.cc", + "file_reader.cc", + "file_utils.cc", + "huge_page_deducer.cc", + "mybase/base/logging.cc", + "perf_option_parser.cc", + "perf_data_utils.cc", + "perf_parser.cc", + "perf_protobuf_io.cc", + "perf_reader.cc", + "perf_recorder.cc", + "perf_serializer.cc", + "perf_stat_parser.cc", + "run_command.cc", + "sample_info_reader.cc", + "scoped_temp_path.cc", + "string_utils.cc", + // Protos. + "perf_data.proto", + "perf_stat.proto", + ], + local_include_dirs: [ + "compat/non_cros", + "mybase", + ], + whole_static_libs: [ + "libcrypto", // For MD5. + "libelf", // For gelf.h, elf_version, ... + "libz", // For libelf. + ], + + export_include_dirs: [ + ".", + "mybase", + ], + proto: { + canonical_path_from_root: true, + export_proto_headers: true, + }, + + target: { + darwin: { + enabled: false, + }, + }, +} + +cc_library_static { + name: "libquipper", + defaults: [ "libquipper_defaults" ], + host_supported: true, + enabled: false, + + proto: { + type: "lite", + }, + static_libs: [ + "libprotobuf-cpp-lite", + ], +} + +cc_library_static { + name: "libquipper-full", + defaults: [ "libquipper_defaults" ], + host_supported: true, + enabled: false, + + srcs: [ + "conversion_utils.cc", + ], + + proto: { + type: "full", + }, + shared_libs: [ + "libprotobuf-cpp-full", + ], +} + +cc_defaults { + name: "quipper_test_defaults", + srcs: [ + // Independent test infra. + "dso_test_utils.cc", + "perf_test_files.cc", + "test_perf_data.cc", + "test_runner.cc", + + // Independent tests. + "address_mapper_test.cc", + "binary_data_utils_test.cc", + "buffer_reader_test.cc", + "buffer_writer_test.cc", + "dso_test.cc", + "file_reader_test.cc", + "perf_data_utils_test.cc", + "perf_option_parser_test.cc", + "perf_stat_parser_test.cc", + "run_command_test.cc", + "sample_info_reader_test.cc", + "scoped_temp_path_test.cc", + ], + local_include_dirs: [ + "compat/non_cros", + ], + static_libs: [ + "libcap", // For cap_get_proc etc. + ], + cflags: [ + "-Wno-ignored-qualifiers", + "-Wno-missing-field-initializers", + "-Wno-sign-compare", + "-Wno-unused", + "-Wno-unused-parameter", + ], + target: { + darwin: { + enabled: false, + }, + }, +} + +cc_test { + name: "quipper_unit_tests", + defaults: [ "quipper_test_defaults" ], + host_supported: true, + enabled: false, + + static_libs: [ + "libprotobuf-cpp-lite", + "libquipper", + ], +} + +cc_test { + name: "quipper-full_unit_tests", + defaults: [ "quipper_test_defaults" ], + host_supported: true, + enabled: false, + + srcs: [ + "test_utils.cc", + + "conversion_utils_test.cc", + "perf_parser_test.cc", + "perf_reader_test.cc", + "perf_serializer_test.cc", + ], + + static_libs: [ + "libquipper-full", + ], + shared_libs: [ + "libprotobuf-cpp-full", + ], +} |