blob: a548ef0fac665ef31f92a48110a03421b8c348f0 [file] [log] [blame]
Alex Vakulenkoe4eec202017-01-27 14:41:04 -08001# 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
15LOCAL_PATH := $(call my-dir)
16
17sourceFiles := \
18 cpu_set.cpp \
19 main.cpp \
20 performance_service.cpp \
21 task.cpp
22
23staticLibraries := \
24 libperformance \
Corey Tabakafeb636d2017-06-23 16:20:07 -070025 libvr_manager
Alex Vakulenkoe4eec202017-01-27 14:41:04 -080026
27sharedLibraries := \
Corey Tabakafeb636d2017-06-23 16:20:07 -070028 libbinder \
Alex Vakulenkoe4eec202017-01-27 14:41:04 -080029 libbase \
30 libcutils \
31 liblog \
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080032 libutils \
33 libpdx_default_transport \
Alex Vakulenkoe4eec202017-01-27 14:41:04 -080034
35include $(CLEAR_VARS)
36LOCAL_SRC_FILES := $(sourceFiles)
37LOCAL_CFLAGS := -DLOG_TAG=\"performanced\"
38LOCAL_CFLAGS += -DTRACE=0
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070039LOCAL_CFLAGS += -Wall -Werror
Alex Vakulenkoe4eec202017-01-27 14:41:04 -080040LOCAL_STATIC_LIBRARIES := $(staticLibraries)
41LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
42LOCAL_MODULE := performanced
43LOCAL_INIT_RC := performanced.rc
44include $(BUILD_EXECUTABLE)
45
46include $(CLEAR_VARS)
47LOCAL_SRC_FILES := performance_service_tests.cpp
48LOCAL_STATIC_LIBRARIES := $(staticLibraries) libgtest_main
49LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
50LOCAL_MODULE := performance_service_tests
51LOCAL_MODULE_TAGS := optional
52include $(BUILD_NATIVE_TEST)