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
17package {
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21cc_library_shared {
22
23    name: "libvts_profiling_utils",
24    host_supported: true,
25    // TODO(b/153609531): remove when no longer needed.
26    native_bridge_supported: true,
27
28    srcs: ["VtsProfilingUtil.cpp"],
29
30    shared_libs: [
31        "libprotobuf-cpp-full",
32    ],
33
34    cflags: [
35        "-Werror",
36        "-Wall",
37    ],
38
39    export_include_dirs: ["."],
40}
41
42cc_library_shared {
43
44    name: "libvts_profiling",
45
46    // TODO(b/153609531): remove when no longer needed.
47    native_bridge_supported: true,
48
49    srcs: ["VtsProfilingInterface.cpp"],
50
51    shared_libs: [
52        "libbase",
53        "libcutils",
54        "libhidlbase",
55        "libprotobuf-cpp-full",
56        "libvts_multidevice_proto",
57        "libvts_profiling_utils",
58    ],
59
60    cflags: [
61        "-Werror",
62        "-Wall",
63    ],
64
65    multilib: {
66        lib32: {
67            ldflags: ["-Wl,--rpath,/data/local/tmp/32"],
68        },
69        lib64: {
70            ldflags: ["-Wl,--rpath,/data/local/tmp/64"],
71        },
72    },
73
74    export_include_dirs: ["."],
75}
76
77cc_binary {
78    name: "vts_profiling_configure",
79
80    srcs: ["VtsProfilingConfigureMain.cpp"],
81
82    cflags: ["-Wall", "-Werror"],
83
84    shared_libs: [
85        "libbase",
86        "libutils",
87        "libcutils",
88        "libhidlbase",
89    ],
90}
91