1// Copyright (C) 2016 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15cc_defaults { 16 name: "performanced_defaults", 17 static_libs: [ 18 "libperformance", 19 "libvr_manager", 20 ], 21 shared_libs: [ 22 "libbinder", 23 "libbase", 24 "libcutils", 25 "liblog", 26 "libutils", 27 "libpdx_default_transport", 28 ], 29} 30 31cc_binary { 32 name: "performanced", 33 defaults: ["performanced_defaults"], 34 srcs: [ 35 "cpu_set.cpp", 36 "main.cpp", 37 "performance_service.cpp", 38 "task.cpp", 39 ], 40 cflags: [ 41 "-DLOG_TAG=\"performanced\"", 42 "-DTRACE=0", 43 "-Wall", 44 "-Werror", 45 ], 46 init_rc: ["performanced.rc"], 47} 48 49cc_test { 50 name: "performance_service_tests", 51 defaults: ["performanced_defaults"], 52 srcs: ["performance_service_tests.cpp"], 53} 54