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 15package { 16 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "frameworks_native_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["frameworks_native_license"], 22} 23 24sourceFiles = [ 25 "acquired_buffer.cpp", 26 "epoll_event_dispatcher.cpp", 27 "display_manager_service.cpp", 28 "display_service.cpp", 29 "display_surface.cpp", 30 "hardware_composer.cpp", 31 "vr_flinger.cpp", 32] 33 34includeFiles = [ "include" ] 35 36staticLibraries = [ 37 "libdisplay", 38 "libdvrcommon", 39 "libperformance", 40 "libvrsensor", 41 "libbroadcastring", 42 "libvr_manager", 43 "libbroadcastring", 44] 45 46sharedLibraries = [ 47 "android.frameworks.vr.composer@2.0", 48 "android.hardware.graphics.allocator@2.0", 49 "android.hardware.graphics.composer@2.1", 50 "android.hardware.graphics.composer@2.2", 51 "android.hardware.graphics.composer@2.3", 52 "android.hardware.graphics.composer@2.4", 53 "libbinder", 54 "libbase", 55 "libbufferhubqueue", 56 "libcutils", 57 "liblog", 58 "libhardware", 59 "libnativewindow", 60 "libprocessgroup", 61 "libutils", 62 "libEGL", 63 "libGLESv1_CM", 64 "libGLESv2", 65 "libvulkan", 66 "libui", 67 "libgui", 68 "libsync", 69 "libhidlbase", 70 "libfmq", 71 "libpdx_default_transport", 72] 73 74headerLibraries = [ 75 "android.hardware.graphics.composer@2.1-command-buffer", 76 "android.hardware.graphics.composer@2.2-command-buffer", 77 "android.hardware.graphics.composer@2.3-command-buffer", 78 "android.hardware.graphics.composer@2.4-command-buffer", 79 "libdvr_headers", 80 "libsurfaceflinger_headers", 81] 82 83cc_library_static { 84 srcs: sourceFiles, 85 export_include_dirs: includeFiles, 86 87 clang: true, 88 cflags: [ 89 "-DLOG_TAG=\"vr_flinger\"", 90 "-DTRACE=0", 91 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", 92 "-DGL_GLEXT_PROTOTYPES", 93 "-DEGL_EGLEXT_PROTOTYPES", 94 "-Wall", 95 "-Werror", 96 "-Wno-error=sign-compare", // to fix later 97 "-Wno-unused-variable", 98 ], 99 shared_libs: sharedLibraries, 100 whole_static_libs: staticLibraries, 101 header_libs: headerLibraries, 102 name: "libvrflinger", 103} 104 105subdirs = [ 106 "tests", 107] 108