1//
2// Copyright (C) 2017 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17cc_library_shared {
18
19    name: "libvts_profiling_utils",
20    host_supported: true,
21    // TODO(b/153609531): remove when no longer needed.
22    native_bridge_supported: true,
23
24    srcs: ["VtsProfilingUtil.cpp"],
25
26    shared_libs: [
27        "libprotobuf-cpp-full",
28    ],
29
30    cflags: [
31        "-Werror",
32        "-Wall",
33    ],
34
35    export_include_dirs: ["."],
36}
37
38cc_library_shared {
39
40    name: "libvts_profiling",
41
42    // TODO(b/153609531): remove when no longer needed.
43    native_bridge_supported: true,
44
45    srcs: ["VtsProfilingInterface.cpp"],
46
47    shared_libs: [
48        "libbase",
49        "libcutils",
50        "libhidlbase",
51        "libprotobuf-cpp-full",
52        "libvts_multidevice_proto",
53        "libvts_profiling_utils",
54    ],
55
56    cflags: [
57        "-Werror",
58        "-Wall",
59    ],
60
61    multilib: {
62        lib32: {
63            ldflags: ["-Wl,--rpath,/data/local/tmp/32"],
64        },
65        lib64: {
66            ldflags: ["-Wl,--rpath,/data/local/tmp/64"],
67        },
68    },
69
70    export_include_dirs: ["."],
71}
72
73cc_binary {
74    name: "vts_profiling_configure",
75
76    srcs: ["VtsProfilingConfigureMain.cpp"],
77
78    cflags: ["-Wall", "-Werror"],
79
80    shared_libs: [
81        "libbase",
82        "libutils",
83        "libcutils",
84        "libhidlbase",
85    ],
86}
87