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 15 sourceFiles = [ 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 26 includeFiles = [ "include" ] 27 28 staticLibraries = [ 29 "libsurfaceflingerincludes", 30 "libhwcomposer-command-buffer", 31 "libbufferhub", 32 "libbufferhubqueue", 33 "libdisplay", 34 "libdvrcommon", 35 "libperformance", 36 "libvrsensor", 37 "libpdx_default_transport", 38 "libvr_manager", 39 ] 40 41 sharedLibraries = [ 42 "android.frameworks.vr.composer (a] 1.0", 43 "android.hardware.graphics.allocator (a] 2.0", 44 "android.hardware.graphics.composer (a] 2.1", 45 "libbinder", 46 "libbase", 47 "libcutils", 48 "liblog", 49 "libhardware", 50 "libnativewindow", 51 "libutils", 52 "libEGL", 53 "libGLESv1_CM", 54 "libGLESv2", 55 "libvulkan", 56 "libui", 57 "libgui", 58 "libsync", 59 "libhidlbase", 60 "libhidltransport", 61 "libfmq", 62 ] 63 64 cc_library_static { 65 srcs: sourceFiles, 66 export_include_dirs: includeFiles, 67 68 cflags: [ 69 "-DLOG_TAG=\"vr_flinger\"", 70 "-DTRACE=0", 71 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", 72 "-DGL_GLEXT_PROTOTYPES", 73 "-DEGL_EGLEXT_PROTOTYPES", 74 ], 75 shared_libs: sharedLibraries, 76 whole_static_libs: staticLibraries, 77 name: "libvrflinger", 78 } 79