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_base", 30 "gfxstream_host_common", 31 "gfxstream_apigen_codec_common", 32 "gfxstream_glsnapshot", 33 "gfxstream_translator_glcommon", 34 "gfxstream_translator_egl", 35 "gfxstream_translator_glescm", 36 "gfxstream_translator_glesv2", 37 "gfxstream_vulkan_cereal_host", 38 "gfxstream_vulkan_server", 39 "gfxstream_renderControl_dec", 40 "gfxstream_gles1_dec", 41 "gfxstream_gles2_dec", 42 "gfxstream_renderControl_dec", 43 "gfxstream_dispatch", 44 "gfxstream_astc_codec", 45 "gfxstream_angle_stub", 46 "gfxstream_lz4", 47 "gfxstream_compressedTextures", 48 ], 49 shared_libs: [ 50 "liblog", // gfxstream_base uses this via perfetto-libperfettobase 51 ], 52 srcs: [ 53 "ChannelStream.cpp", 54 "ColorBuffer.cpp", 55 "CompositorVk.cpp", 56 "DisplayVk.cpp", 57 "FbConfig.cpp", 58 "FenceSync.cpp", 59 "GLESVersionDetector.cpp", 60 "PostWorker.cpp", 61 "ReadbackWorker.cpp", 62 "ReadBuffer.cpp", 63 "render_api.cpp", 64 "RenderChannelImpl.cpp", 65 "RenderThreadInfo.cpp", 66 "RingStream.cpp", 67 "SwapChainStateVk.cpp", 68 "SyncThread.cpp", 69 "TextureDraw.cpp", 70 "TextureResize.cpp", 71 "WindowSurface.cpp", 72 "YUVConverter.cpp", 73 "RenderThread.cpp", 74 "RenderContext.cpp", 75 "RenderControl.cpp", 76 "RenderWindow.cpp", 77 "RenderLibImpl.cpp", 78 "RendererImpl.cpp", 79 "FrameBuffer.cpp", 80 81 "GfxStreamAgents.cpp", 82 "virtio-gpu-gfxstream-renderer.cpp", 83 "GfxStreamBackend.cpp", 84 ], 85 host_ldlibs: [ 86 "-lpthread", 87 ], 88 target: { 89 host: { 90 srcs: ["NativeSubWindow_x11.cpp",], 91 }, 92 android: { 93 srcs: ["NativeSubWindow_android.cpp",], 94 } 95 } 96} 97