| /* |
| * Copyright 2025 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. |
| */ |
| |
| package { |
| default_applicable_licenses: ["frameworks_native_license"], |
| default_team: "trendy_team_windowing_tools", |
| } |
| |
| cc_library_shared { |
| name: "libprotolog", |
| srcs: [ |
| "ProtoLog.cpp", |
| "DataSource.cpp", |
| "ProtoLogConfig.cpp", |
| ], |
| cflags: [ |
| "-Wall", |
| "-Werror", |
| "-Wno-unused-function", |
| "-Wno-unused-parameter", |
| ], |
| header_libs: [ |
| "protolog_c_proto_headers", |
| ], |
| shared_libs: [ |
| "libperfetto_c", |
| "libaconfig_storage_read_api_cc", |
| "liblog", |
| "libutils", |
| ], |
| host_supported: true, |
| export_include_dirs: ["."], |
| |
| target: { |
| // Android-specific dependencies |
| android: { |
| static_libs: [ |
| "android.tracing.flags_c_lib", |
| ], |
| }, |
| }, |
| } |
| |
| cc_test { |
| name: "ProtologNativeTests", |
| srcs: ["ProtoLogTest.cpp"], |
| |
| static_libs: [ |
| "libgmock", |
| "libprotobuf-cpp-lite", |
| "libperfetto_client_experimental", |
| "perfetto_trace_protos", |
| "android.tracing.flags_c_lib", |
| "libflagtest", |
| "trace_processor", |
| "libz", |
| "sqlite_ext_percentile", |
| "libaconfig_storage_read_api_cc", |
| "libperfetto_c", |
| ], |
| |
| shared_libs: [ |
| "libbase", |
| "liblog", |
| "libutils", |
| "server_configurable_flags", |
| "libsqlite", |
| "libz", |
| "libutilscallstack", |
| "libprotolog", |
| ], |
| |
| cflags: [ |
| "-Wall", |
| "-Werror", |
| ], |
| |
| test_suites: ["general-tests"], |
| } |