Home | History | Annotate | Download | only in performanced
      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 
     15 LOCAL_PATH := $(call my-dir)
     16 
     17 sourceFiles := \
     18 	cpu_set.cpp \
     19 	main.cpp \
     20 	performance_service.cpp \
     21 	task.cpp
     22 
     23 staticLibraries := \
     24 	libperformance \
     25 	libvr_manager
     26 
     27 sharedLibraries := \
     28 	libbinder \
     29 	libbase \
     30 	libcutils \
     31 	liblog \
     32 	libutils \
     33 	libpdx_default_transport \
     34 
     35 include $(CLEAR_VARS)
     36 LOCAL_SRC_FILES := $(sourceFiles)
     37 LOCAL_CFLAGS := -DLOG_TAG=\"performanced\"
     38 LOCAL_CFLAGS += -DTRACE=0
     39 LOCAL_CFLAGS += -Wall -Werror
     40 LOCAL_STATIC_LIBRARIES := $(staticLibraries)
     41 LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
     42 LOCAL_MODULE := performanced
     43 LOCAL_INIT_RC := performanced.rc
     44 include $(BUILD_EXECUTABLE)
     45 
     46 include $(CLEAR_VARS)
     47 LOCAL_SRC_FILES := performance_service_tests.cpp
     48 LOCAL_STATIC_LIBRARIES := $(staticLibraries) libgtest_main
     49 LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
     50 LOCAL_MODULE := performance_service_tests
     51 LOCAL_MODULE_TAGS := optional
     52 include $(BUILD_NATIVE_TEST)
     53