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 17 cc_defaults { 18 name: "libperfmgr_defaults", 19 local_include_dirs: ["include"], 20 shared_libs: [ 21 "libbase", 22 "libutils", 23 ], 24 static_libs: [ 25 "libjsoncpp", 26 ], 27 cpp_std: "experimental", 28 cflags: [ 29 "-Wall", 30 "-Werror", 31 ] 32 } 33 34 cc_library { 35 name: "libperfmgr", 36 vendor_available: true, 37 defaults: ["libperfmgr_defaults"], 38 export_include_dirs: ["include"], 39 srcs: [ 40 "RequestGroup.cc", 41 "Node.cc", 42 "NodeLooperThread.cc", 43 "HintManager.cc", 44 ] 45 } 46 47 cc_test { 48 name: "libperfmgr_test", 49 defaults: ["libperfmgr_defaults"], 50 static_libs: ["libperfmgr"], 51 srcs: [ 52 "tests/RequestGroupTest.cc", 53 "tests/NodeTest.cc", 54 "tests/NodeLooperThreadTest.cc", 55 "tests/HintManagerTest.cc", 56 ] 57 } 58 59 cc_binary { 60 name: "perfmgr_config_verifier", 61 defaults: ["libperfmgr_defaults"], 62 static_libs: ["libperfmgr"], 63 srcs: [ 64 "tools/ConfigVerifier.cc", 65 ] 66 } 67