1 # 2 # Copyright (C) 2014 The Android Open Source Project 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 # 16 17 local_target_dir := $(TARGET_OUT_DATA)/local/tmp 18 LOCAL_PATH:= $(call my-dir) 19 include $(CLEAR_VARS) 20 21 LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES 22 LOCAL_CFLAGS += -Wno-unused-parameter 23 LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\" 24 25 LOCAL_SRC_FILES:= \ 26 TestContext.cpp \ 27 main.cpp 28 29 LOCAL_C_INCLUDES += \ 30 $(LOCAL_PATH)/.. \ 31 external/skia/src/core 32 33 LOCAL_SHARED_LIBRARIES := \ 34 liblog \ 35 libcutils \ 36 libutils \ 37 libskia \ 38 libgui \ 39 libui \ 40 libhwui 41 42 ifeq ($(WITH_MALLOC_LEAK_CHECK),true) 43 LOCAL_CFLAGS += -DMALLOC_LEAK_CHECK 44 endif 45 46 LOCAL_MODULE_PATH := $(local_target_dir) 47 LOCAL_MODULE:= hwuitest 48 LOCAL_MODULE_TAGS := tests 49 LOCAL_MULTILIB := both 50 LOCAL_MODULE_STEM_32 := hwuitest 51 LOCAL_MODULE_STEM_64 := hwuitest64 52 53 include external/stlport/libstlport.mk 54 include $(BUILD_EXECUTABLE) 55 56 include $(call all-makefiles-under,$(LOCAL_PATH)) 57