1// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE 2// CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE 3// DEPENDING ON IT IN YOUR PROJECT. *** 4package { 5 // See: http://go/android-license-faq 6 // A large-scale-change added 'default_applicable_licenses' to import 7 // all of the 'license_kinds' from "device_generic_vulkan-cereal_license" 8 // to get the below license kinds: 9 // SPDX-license-identifier-Apache-2.0 10 // SPDX-license-identifier-BSD 11 // SPDX-license-identifier-ISC 12 // SPDX-license-identifier-MIT 13 // legacy_by_exception_only (by exception only) 14 // legacy_notice 15 // legacy_unencumbered 16 default_applicable_licenses: ["device_generic_vulkan-cereal_license"], 17} 18 19cc_library_shared { 20 name: "libgfxstream_backend", 21 defaults: [ "gfxstream_defaults" ], 22 cflags: [ 23 "-Wno-unused-parameter", 24 "-Wno-unused-variable", 25 "-Wno-unused-function", 26 "-Wno-unreachable-code-loop-increment", 27 ], 28 static_libs: [ 29 "gfxstream_angle_common", 30 "gfxstream_angle_shader_translator", 31 "gfxstream_base", 32 "gfxstream_host_common", 33 "gfxstream_apigen_codec_common", 34 "gfxstream_glsnapshot", 35 "gfxstream_translator_glcommon", 36 "gfxstream_translator_egl", 37 "gfxstream_translator_glescm", 38 "gfxstream_translator_glesv2", 39 "gfxstream_vulkan_cereal_host", 40 "gfxstream_vulkan_server", 41 "gfxstream_renderControl_dec", 42 "gfxstream_gles1_dec", 43 "gfxstream_gles2_dec", 44 "gfxstream_renderControl_dec", 45 "gfxstream_dispatch", 46 "gfxstream_astc_codec", 47 "gfxstream_lz4", 48 "gfxstream_compressedTextures", 49 ], 50 shared_libs: [ 51 "liblog", // gfxstream_base uses this via perfetto-libperfettobase 52 ], 53 srcs: [ 54 "ChannelStream.cpp", 55 "ColorBuffer.cpp", 56 "CompositorVk.cpp", 57 "Debug.cpp", 58 "DisplayVk.cpp", 59 "FbConfig.cpp", 60 "FenceSync.cpp", 61 "GLESVersionDetector.cpp", 62 "PostWorker.cpp", 63 "ReadbackWorker.cpp", 64 "ReadBuffer.cpp", 65 "render_api.cpp", 66 "RenderChannelImpl.cpp", 67 "RenderThreadInfo.cpp", 68 "RingStream.cpp", 69 "SwapChainStateVk.cpp", 70 "SyncThread.cpp", 71 "TextureDraw.cpp", 72 "TextureResize.cpp", 73 "WindowSurface.cpp", 74 "YUVConverter.cpp", 75 "RenderThread.cpp", 76 "RenderContext.cpp", 77 "RenderControl.cpp", 78 "RenderWindow.cpp", 79 "RenderLibImpl.cpp", 80 "RendererImpl.cpp", 81 "FrameBuffer.cpp", 82 "vulkan/vk_util.cpp", 83 84 "GfxStreamAgents.cpp", 85 "virtio-gpu-gfxstream-renderer.cpp", 86 "GfxStreamBackend.cpp", 87 "VirtioGpuTimelines.cpp", 88 ], 89 host_ldlibs: [ 90 "-lpthread", 91 ], 92 target: { 93 host: { 94 srcs: ["NativeSubWindow_x11.cpp",], 95 }, 96 android: { 97 srcs: ["NativeSubWindow_android.cpp",], 98 } 99 } 100} 101