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_defaults {
18    name: "libperfmgr_defaults",
19    local_include_dirs: ["include"],
20    shared_libs: [
21        "libbase",
22        "libcutils",
23        "libutils",
24    ],
25    static_libs: [
26        "libjsoncpp",
27    ],
28    cflags: [
29        "-Wall",
30        "-Werror",
31    ],
32    tidy: true,
33    tidy_checks: [
34        "android-*",
35        "cert-*",
36        "clang-analyzer-security*",
37    ],
38    tidy_flags: [
39        "-warnings-as-errors=android-*,clang-analyzer-security*,cert-*"
40    ],
41}
42
43cc_library {
44    name: "libperfmgr",
45    vendor_available: true,
46    defaults: ["libperfmgr_defaults"],
47    export_include_dirs: ["include"],
48    srcs: [
49        "RequestGroup.cc",
50        "Node.cc",
51        "FileNode.cc",
52        "PropertyNode.cc",
53        "NodeLooperThread.cc",
54        "HintManager.cc",
55    ]
56}
57
58cc_test {
59    name: "libperfmgr_test",
60    defaults: ["libperfmgr_defaults"],
61    static_libs: ["libperfmgr"],
62    srcs: [
63        "tests/RequestGroupTest.cc",
64        "tests/FileNodeTest.cc",
65        "tests/PropertyNodeTest.cc",
66        "tests/NodeLooperThreadTest.cc",
67        "tests/HintManagerTest.cc",
68    ]
69}
70
71cc_binary {
72    name: "perfmgr_config_verifier",
73    defaults: ["libperfmgr_defaults"],
74    static_libs: ["libperfmgr"],
75    srcs: [
76        "tools/ConfigVerifier.cc",
77    ]
78}
79