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