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