blob: 0930238deaac66233734e8de0e87317c3ce74920 [file] [log] [blame]
Primiano Tucci676f0cc2018-12-03 20:03:26 +01001# Copyright (C) 2018 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
15import("../../gn/perfetto.gni")
16
17source_set("headers") {
18 deps = [
19 "../../gn:default_deps",
20 ]
21 sources = [
22 "health_hal.h",
23 ]
24}
25
26# This target proxies calls to Android internal libraries that are not part of
27# the NDK. See README.md.
28source_set("android_internal") {
29 visibility = [ "//:libperfetto_android_internal" ]
30 deps = [
31 ":headers",
32 "../../gn:default_deps",
33 ]
34 if (perfetto_build_with_android) {
35 sources = [
36 "health_hal.cc",
37 ]
38 libs = [
39 "android.hardware.health@2.0",
40 "base",
41 "log",
42 "hwbinder",
43 "hidlbase",
44 "hidltransport",
45 "utils",
46 ]
47 }
48
49 # This target should never depend on any other perfetto target to avoid ODR
50 # violation by doubly linking code in two .so(s) loaded in the same exe.
51 assert_no_deps = [
52 "//src/base/*",
53 "//src/tracing/*",
54 "//include/*",
55 ]
56}