1// 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", 17 "epoll_event_dispatcher.cpp", 18 "display_manager_service.cpp", 19 "display_service.cpp", 20 "display_surface.cpp", 21 "hardware_composer.cpp", 22 "vr_flinger.cpp", 23 "vsync_service.cpp", 24] 25 26includeFiles = [ "include" ] 27 28staticLibraries = [ 29 "libdisplay", 30 "libdvrcommon", 31 "libperformance", 32 "libvrsensor", 33 "libbroadcastring", 34 "libvr_manager", 35 "libbroadcastring", 36] 37 38sharedLibraries = [ 39 "android.frameworks.vr.composer@1.0", 40 "android.hardware.graphics.allocator@2.0", 41 "android.hardware.graphics.composer@2.1", 42 "android.hardware.graphics.composer@2.2", 43 "libbinder", 44 "libbase", 45 "libbufferhubqueue", 46 "libcutils", 47 "liblog", 48 "libhardware", 49 "libnativewindow", 50 "libutils", 51 "libEGL", 52 "libGLESv1_CM", 53 "libGLESv2", 54 "libvulkan", 55 "libui", 56 "libgui", 57 "libsync", 58 "libhidlbase", 59 "libhidltransport", 60 "libfmq", 61 "libpdx_default_transport", 62] 63 64headerLibraries = [ 65 "android.hardware.graphics.composer@2.1-command-buffer", 66 "android.hardware.graphics.composer@2.2-command-buffer", 67 "libdvr_headers", 68 "libsurfaceflinger_headers", 69] 70 71cc_library_static { 72 srcs: sourceFiles, 73 export_include_dirs: includeFiles, 74 75 clang: true, 76 cflags: [ 77 "-DLOG_TAG=\"vr_flinger\"", 78 "-DTRACE=0", 79 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", 80 "-DGL_GLEXT_PROTOTYPES", 81 "-DEGL_EGLEXT_PROTOTYPES", 82 "-Wall", 83 "-Werror", 84 "-Wno-error=sign-compare", // to fix later 85 "-Wno-unused-variable", 86 ], 87 cppflags: [ 88 "-std=c++1z" 89 ], 90 shared_libs: sharedLibraries, 91 whole_static_libs: staticLibraries, 92 header_libs: headerLibraries, 93 name: "libvrflinger", 94} 95