blob: c762e46b42b2605dfd40fc9e1e60dcefdc7f7cfb [file] [log] [blame]
Stephen Kiazyke77dce22017-03-14 15:38:12 -07001// Copyright (C) 2008 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 "acquired_buffer.cpp",
Corey Tabaka2251d822017-04-20 16:04:07 -070017 "epoll_event_dispatcher.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070018 "display_manager_service.cpp",
19 "display_service.cpp",
20 "display_surface.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070021 "hardware_composer.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070022 "vr_flinger.cpp",
23 "vsync_service.cpp",
24]
25
26includeFiles = [ "include" ]
27
28staticLibraries = [
Stephen Kiazyke77dce22017-03-14 15:38:12 -070029 "libdisplay",
30 "libdvrcommon",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070031 "libperformance",
32 "libvrsensor",
Okan Arikan822b7102017-05-08 13:31:34 -070033 "libbroadcastring",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070034 "libvr_manager",
John Bates954796e2017-05-11 11:00:31 -070035 "libbroadcastring",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070036]
37
38sharedLibraries = [
Daniel Nicoara1f42e3a2017-04-10 13:27:32 -040039 "android.frameworks.vr.composer@1.0",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070040 "android.hardware.graphics.allocator@2.0",
41 "android.hardware.graphics.composer@2.1",
42 "libbinder",
43 "libbase",
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080044 "libbufferhubqueue",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070045 "libcutils",
46 "liblog",
47 "libhardware",
48 "libnativewindow",
49 "libutils",
50 "libEGL",
51 "libGLESv1_CM",
52 "libGLESv2",
53 "libvulkan",
54 "libui",
55 "libgui",
56 "libsync",
57 "libhidlbase",
58 "libhidltransport",
59 "libfmq",
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080060 "libpdx_default_transport",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070061]
62
Okan Arikan36d23802017-05-15 15:20:39 -070063headerLibraries = [
Courtney Goeltzenleuchter87551222018-01-16 14:00:09 -080064 "android.hardware.graphics.composer@2.1-command-buffer",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080065 "libdvr_headers",
66 "libsurfaceflinger_headers",
Okan Arikan36d23802017-05-15 15:20:39 -070067]
68
Stephen Kiazyke77dce22017-03-14 15:38:12 -070069cc_library_static {
70 srcs: sourceFiles,
71 export_include_dirs: includeFiles,
72
73 cflags: [
74 "-DLOG_TAG=\"vr_flinger\"",
75 "-DTRACE=0",
Daniel Nicoara1f42e3a2017-04-10 13:27:32 -040076 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070077 "-DGL_GLEXT_PROTOTYPES",
78 "-DEGL_EGLEXT_PROTOTYPES",
Chih-Hung Hsiehe1900832017-10-05 14:27:38 -070079 "-Wall",
80 "-Werror",
81 "-Wno-error=sign-compare", // to fix later
82 "-Wno-unused-variable",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070083 ],
Chih-Hung Hsieh94574f22018-02-07 21:14:19 -080084 arch: {
85 arm: {
86 instruction_set: "arm",
87 },
88 },
Stephen Kiazyke77dce22017-03-14 15:38:12 -070089 shared_libs: sharedLibraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070090 whole_static_libs: staticLibraries,
John Bates954796e2017-05-11 11:00:31 -070091 header_libs: headerLibraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070092 name: "libvrflinger",
93}