aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2018-03-10 09:42:53 +0000
committerandroid-build-merger <android-build-merger@google.com>2018-03-10 09:42:53 +0000
commit37f83325361d1b2ae29e94cad0442ef5bccc9e13 (patch)
tree71dddbf632a53deb52be4690100e03b24d899851
parent44916f63415b3e3444595656584403c27365e342 (diff)
parent862dfc5c148caebc921e690262e4f644740ac51a (diff)
downloadperf_data_converter-37f83325361d1b2ae29e94cad0442ef5bccc9e13.tar.gz
PerfDataConverter: Add Android.bp file am: 000c1b2b98 am: 4b4402260e
am: 862dfc5c14 Change-Id: I32a73983a0db60dbfa1f65d4fde06cf6bd5f23fb
-rw-r--r--src/quipper/Android.bp191
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",
+ ],
+}