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@2.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 "android.hardware.graphics.composer@2.4", 44 "libbinder", 45 "libbase", 46 "libbufferhubqueue", 47 "libcutils", 48 "liblog", 49 "libhardware", 50 "libnativewindow", 51 "libprocessgroup", 52 "libutils", 53 "libEGL", 54 "libGLESv1_CM", 55 "libGLESv2", 56 "libvulkan", 57 "libui", 58 "libgui", 59 "libsync", 60 "libhidlbase", 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 "android.hardware.graphics.composer@2.4-command-buffer", 70 "libdvr_headers", 71 "libsurfaceflinger_headers", 72] 73 74cc_library_static { 75 srcs: sourceFiles, 76 export_include_dirs: includeFiles, 77 78 clang: true, 79 cflags: [ 80 "-DLOG_TAG=\"vr_flinger\"", 81 "-DTRACE=0", 82 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", 83 "-DGL_GLEXT_PROTOTYPES", 84 "-DEGL_EGLEXT_PROTOTYPES", 85 "-Wall", 86 "-Werror", 87 "-Wno-error=sign-compare", // to fix later 88 "-Wno-unused-variable", 89 ], 90 shared_libs: sharedLibraries, 91 whole_static_libs: staticLibraries, 92 header_libs: headerLibraries, 93 name: "libvrflinger", 94} 95 96subdirs = [ 97 "tests", 98] 99