blob: 3d405ef62f3c9ddcfa565ce79d77d66b5d77b2b6 [file] [log] [blame]
John Reck94c40fe2014-10-08 09:28:43 -07001#
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
17local_target_dir := $(TARGET_OUT_DATA)/local/tmp
18LOCAL_PATH:= $(call my-dir)
19include $(CLEAR_VARS)
20
21LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
Chris Craikb5a54352014-11-21 14:54:35 -080022LOCAL_CFLAGS += -Wno-unused-parameter
John Reck94c40fe2014-10-08 09:28:43 -070023LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\"
24
25LOCAL_SRC_FILES:= \
26 TestContext.cpp \
27 main.cpp
28
29LOCAL_C_INCLUDES += \
30 $(LOCAL_PATH)/.. \
31 external/skia/src/core
32
33LOCAL_SHARED_LIBRARIES := \
34 liblog \
35 libcutils \
36 libutils \
37 libskia \
38 libgui \
39 libui \
40 libhwui
41
42ifeq ($(WITH_MALLOC_LEAK_CHECK),true)
43 LOCAL_CFLAGS += -DMALLOC_LEAK_CHECK
44endif
45
46LOCAL_MODULE_PATH := $(local_target_dir)
47LOCAL_MODULE:= hwuitest
48LOCAL_MODULE_TAGS := tests
49LOCAL_MULTILIB := both
50LOCAL_MODULE_STEM_32 := hwuitest
51LOCAL_MODULE_STEM_64 := hwuitest64
52
John Reck94c40fe2014-10-08 09:28:43 -070053include $(BUILD_EXECUTABLE)
54
55include $(call all-makefiles-under,$(LOCAL_PATH))