blob: f0e62df9c6fd475cdfb20a52763c932215e27442 [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 := \
Alex Vakulenkoe4eec202017-01-27 14:41:04 -080052 libbufferhub \
53 libbufferhubqueue \
54 libdvrcommon \
55 libdvrgraphics \
56 libsensor \
57 libpdx_default_transport \
58
59include $(CLEAR_VARS)
60LOCAL_MODULE_TAGS := tests
61LOCAL_SRC_FILES := $(sourceFiles)
62LOCAL_C_INCLUDES := $(includeFiles)
63#LOCAL_CPPFLAGS := -UNDEBUG -DDEBUG -O0 -g
64LOCAL_CFLAGS += -DLOG_TAG=\"libdisplay\"
65LOCAL_CFLAGS += -DTRACE=0
66LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_GRAPHICS
67LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
68LOCAL_EXPORT_C_INCLUDE_DIRS := $(includeFiles)
69LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
70LOCAL_STATIC_LIBRARIES := $(staticLibraries)
71LOCAL_MODULE := libdisplay
72include $(BUILD_STATIC_LIBRARY)
73
74
75testFiles := \
76 tests/graphics_app_tests.cpp
77
78include $(CLEAR_VARS)
79LOCAL_MODULE := graphics_app_tests
80LOCAL_MODULE_TAGS := optional
81
82LOCAL_SRC_FILES := \
83 $(testFiles) \
84
85LOCAL_C_INCLUDES := \
86 $(includeFiles) \
87
88LOCAL_SHARED_LIBRARIES := \
89 $(sharedLibraries) \
90
91LOCAL_STATIC_LIBRARIES := \
92 libdisplay \
93 $(staticLibraries) \
94
95include $(BUILD_NATIVE_TEST)