OSDN Git Service

Merge "Get rid of IGraphicBufferAlloc"
[android-x86/frameworks-native.git] / libs / vr / libdisplay / Android.mk
1 # 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
15 LOCAL_PATH := $(call my-dir)
16
17 sourceFiles := \
18         native_buffer_queue.cpp \
19         display_client.cpp \
20         display_manager_client.cpp \
21         display_manager_client_impl.cpp \
22         display_rpc.cpp \
23         dummy_native_window.cpp \
24         gl_fenced_flush.cpp \
25         graphics.cpp \
26         late_latch.cpp \
27         video_mesh_surface_client.cpp \
28         vsync_client.cpp \
29         vsync_client_api.cpp \
30         screenshot_client.cpp \
31         frame_history.cpp
32
33 includeFiles := \
34         $(LOCAL_PATH)/include \
35         frameworks/native/vulkan/include
36
37 sharedLibraries := \
38         libbase \
39         libcutils \
40         liblog \
41         libutils \
42         libEGL \
43         libGLESv2 \
44         libvulkan \
45         libui \
46         libgui \
47         libhardware \
48         libsync \
49         libnativewindow \
50
51 staticLibraries := \
52         libbufferhub \
53         libbufferhubqueue \
54         libdvrcommon \
55         libdvrgraphics \
56         libsensor \
57         libpdx_default_transport \
58
59 include $(CLEAR_VARS)
60 LOCAL_MODULE_TAGS := tests
61 LOCAL_SRC_FILES := $(sourceFiles)
62 LOCAL_C_INCLUDES := $(includeFiles)
63 #LOCAL_CPPFLAGS := -UNDEBUG -DDEBUG -O0 -g
64 LOCAL_CFLAGS += -DLOG_TAG=\"libdisplay\"
65 LOCAL_CFLAGS += -DTRACE=0
66 LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_GRAPHICS
67 LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
68 LOCAL_EXPORT_C_INCLUDE_DIRS := $(includeFiles)
69 LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
70 LOCAL_STATIC_LIBRARIES := $(staticLibraries)
71 LOCAL_MODULE := libdisplay
72 include $(BUILD_STATIC_LIBRARY)
73
74 graphicsAppTestFiles := \
75   tests/graphics_app_tests.cpp
76
77 include $(CLEAR_VARS)
78 LOCAL_MODULE := graphics_app_tests
79 LOCAL_MODULE_TAGS := optional
80
81 LOCAL_SRC_FILES := \
82   $(graphicsAppTestFiles) \
83
84 LOCAL_C_INCLUDES := \
85   $(includeFiles) \
86
87 LOCAL_SHARED_LIBRARIES := \
88   $(sharedLibraries) \
89
90 LOCAL_STATIC_LIBRARIES := \
91   libdisplay \
92   $(staticLibraries) \
93
94 include $(BUILD_NATIVE_TEST)
95
96 dummyNativeWindowTestFiles := \
97   tests/dummy_native_window_tests.cpp \
98
99 include $(CLEAR_VARS)
100 LOCAL_MODULE := dummy_native_window_tests
101 LOCAL_MODULE_TAGS := optional
102
103 LOCAL_SRC_FILES := \
104   $(dummyNativeWindowTestFiles) \
105
106 LOCAL_C_INCLUDES := \
107   $(includeFiles) \
108
109 LOCAL_SHARED_LIBRARIES := \
110   $(sharedLibraries) \
111
112 LOCAL_STATIC_LIBRARIES := \
113   libdisplay \
114   $(staticLibraries) \
115 include $(BUILD_NATIVE_TEST)
116