1# Copyright (C) 2020 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# Imlementation of the public-facing consumer API in libperfetto.so (only for
16# Android builds).
17# TODO(primiano): remove this. This is a legacy and deprecated API. The only
18# user is iorap which should be moved to the perfetto Client API.
19
20import("../../../gn/perfetto.gni")
21import("../../../gn/test.gni")
22
23assert(perfetto_build_standalone || perfetto_build_with_android)
24
25source_set("consumer_api_deprecated") {
26  deps = [
27    "../../../gn:default_deps",
28    "../../../include/perfetto/public",
29    "../../../protos/perfetto/config:cpp",
30    "../../base",
31    "../core",
32    "../ipc/consumer",
33  ]
34  sources = [ "consumer_api_deprecated.cc" ]
35}
36
37executable("consumer_api_test") {
38  testonly = true
39  deps = [
40    ":consumer_api_deprecated",
41    "../../../gn:default_deps",
42    "../../../include/perfetto/public",
43    "../../../protos/perfetto/config:cpp",
44    "../../../protos/perfetto/config/ftrace:cpp",
45    "../../../protos/perfetto/trace:cpp",
46    "../../../protos/perfetto/trace/ftrace:cpp",
47    "../../base",
48  ]
49  sources = [ "consumer_api_deprecated_test.cc" ]
50}
51