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
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 \
25	libvr_manager
26
27sharedLibraries := \
28	libbinder \
29	libbase \
30	libcutils \
31	liblog \
32	libutils \
33	libpdx_default_transport \
34
35include $(CLEAR_VARS)
36LOCAL_SRC_FILES := $(sourceFiles)
37LOCAL_CFLAGS := -DLOG_TAG=\"performanced\"
38LOCAL_CFLAGS += -DTRACE=0
39LOCAL_CFLAGS += -Wall -Werror
40LOCAL_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)
53