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	libpdx_default_transport \
26
27sharedLibraries := \
28	libbase \
29	libcutils \
30	liblog \
31	libutils
32
33include $(CLEAR_VARS)
34LOCAL_SRC_FILES := $(sourceFiles)
35LOCAL_CFLAGS := -DLOG_TAG=\"performanced\"
36LOCAL_CFLAGS += -DTRACE=0
37LOCAL_STATIC_LIBRARIES := $(staticLibraries)
38LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
39LOCAL_MODULE := performanced
40LOCAL_INIT_RC := performanced.rc
41include $(BUILD_EXECUTABLE)
42
43include $(CLEAR_VARS)
44LOCAL_SRC_FILES := performance_service_tests.cpp
45LOCAL_STATIC_LIBRARIES := $(staticLibraries) libgtest_main
46LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
47LOCAL_MODULE := performance_service_tests
48LOCAL_MODULE_TAGS := optional
49include $(BUILD_NATIVE_TEST)
50