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