blob: 670bdcd4726a49904b740af793e05ba35461c92c [file] [log] [blame]
Alex Vakulenkoe4eec202017-01-27 14:41:04 -08001# Copyright (C) 2015 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 native_window.cpp \
19 native_buffer_queue.cpp \
20 display_client.cpp \
21 display_manager_client.cpp \
22 display_manager_client_impl.cpp \
23 display_rpc.cpp \
24 dummy_native_window.cpp \
25 gl_fenced_flush.cpp \
26 graphics.cpp \
27 late_latch.cpp \
28 video_mesh_surface_client.cpp \
29 vsync_client.cpp \
30 vsync_client_api.cpp \
31 screenshot_client.cpp \
32 frame_history.cpp
33
34includeFiles := \
35 $(LOCAL_PATH)/include \
36 frameworks/native/vulkan/include
37
38sharedLibraries := \
39 libbase \
40 libcutils \
41 liblog \
42 libutils \
43 libEGL \
44 libGLESv2 \
45 libvulkan \
46 libui \
47 libgui \
48 libhardware \
49 libsync
50
51staticLibraries := \
52 libchrome \
53 libbufferhub \
54 libbufferhubqueue \
55 libdvrcommon \
56 libdvrgraphics \
57 libsensor \
58 libpdx_default_transport \
59
60include $(CLEAR_VARS)
61LOCAL_MODULE_TAGS := tests
62LOCAL_SRC_FILES := $(sourceFiles)
63LOCAL_C_INCLUDES := $(includeFiles)
64#LOCAL_CPPFLAGS := -UNDEBUG -DDEBUG -O0 -g
65LOCAL_CFLAGS += -DLOG_TAG=\"libdisplay\"
66LOCAL_CFLAGS += -DTRACE=0
67LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_GRAPHICS
68LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
69LOCAL_EXPORT_C_INCLUDE_DIRS := $(includeFiles)
70LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
71LOCAL_STATIC_LIBRARIES := $(staticLibraries)
72LOCAL_MODULE := libdisplay
73include $(BUILD_STATIC_LIBRARY)
74
75
76testFiles := \
77 tests/graphics_app_tests.cpp
78
79include $(CLEAR_VARS)
80LOCAL_MODULE := graphics_app_tests
81LOCAL_MODULE_TAGS := optional
82
83LOCAL_SRC_FILES := \
84 $(testFiles) \
85
86LOCAL_C_INCLUDES := \
87 $(includeFiles) \
88
89LOCAL_SHARED_LIBRARIES := \
90 $(sharedLibraries) \
91
92LOCAL_STATIC_LIBRARIES := \
93 libdisplay \
94 $(staticLibraries) \
95
96include $(BUILD_NATIVE_TEST)