blob: f3c71b566ca051c4908c03275b0ae1961175ad59 [file] [log] [blame]
Stephen Kiazyke77dce22017-03-14 15:38:12 -07001// 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
15sourceFiles = [
16 "native_buffer_queue.cpp",
17 "display_client.cpp",
18 "display_manager_client.cpp",
19 "display_manager_client_impl.cpp",
20 "display_rpc.cpp",
21 "dummy_native_window.cpp",
22 "gl_fenced_flush.cpp",
23 "graphics.cpp",
24 "late_latch.cpp",
25 "video_mesh_surface_client.cpp",
26 "vsync_client.cpp",
27 "vsync_client_api.cpp",
28 "screenshot_client.cpp",
29 "frame_history.cpp",
30]
31
32localIncludeFiles = [
33 "include",
34]
35
36sharedLibraries = [
37 "libbase",
38 "libcutils",
39 "liblog",
40 "libutils",
41 "libEGL",
42 "libGLESv2",
43 "libvulkan",
44 "libui",
45 "libgui",
46 "libhardware",
47 "libsync",
48 "libnativewindow",
49]
50
51staticLibraries = [
52 "libbufferhub",
53 "libbufferhubqueue",
54 "libdvrcommon",
55 "libdvrgraphics",
56 "libvrsensor",
57 "libpdx_default_transport",
58]
59
60headerLibraries = [
61 "vulkan_headers",
62]
63
64cc_library {
65 tags: ["tests"],
66 srcs: sourceFiles,
67 cflags: ["-DLOG_TAG=\"libdisplay\"",
68 "-DTRACE=0",
69 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
70 "-DGL_GLEXT_PROTOTYPES",
71 "-DEGL_EGLEXT_PROTOTYPES",
72 ], // + [ "-UNDEBUG", "-DDEBUG", "-O0", "-g" ],
73 export_include_dirs: localIncludeFiles,
74 shared_libs: sharedLibraries,
75 static_libs: staticLibraries,
76 header_libs: headerLibraries,
77 export_header_lib_headers: headerLibraries,
78
79 name: "libdisplay",
80}
81
82graphicsAppTestFiles = ["tests/graphics_app_tests.cpp"]
83
84cc_test {
85 name: "graphics_app_tests",
86 tags: ["optional"],
87
88 srcs: graphicsAppTestFiles,
89
90 shared_libs: sharedLibraries,
91
92 static_libs: ["libdisplay"] + staticLibraries,
93}
94
95dummyNativeWindowTestFiles = ["tests/dummy_native_window_tests.cpp"]
96
97cc_test {
98 name: "dummy_native_window_tests",
99 tags: [ "optional" ],
100 srcs: dummyNativeWindowTestFiles,
101 shared_libs: sharedLibraries,
102 static_libs: [ "libdisplay" ] + staticLibraries,
103}
104