1package { 2 default_applicable_licenses: ["hardware_google_gfxstream_license"], 3} 4 5cc_library_static { 6 name: "libgfxstream_host_magma_server", 7 defaults: ["gfxstream_defaults"], 8 static_libs: [ 9 "gfxstream_base", 10 "gfxstream_host_common", 11 "libgfxstream_host_magma_dec", 12 "libgfxstream_host_apigen_codec_common", 13 "libgfxstream_host_vulkan_cereal", 14 ], 15 srcs: [ 16 "Decoder.cpp", 17 ], 18 export_include_dirs: [ 19 ".", 20 "magma_dec", 21 ], 22 target: { 23 android: { 24 srcs: [ 25 "Connection.cpp", 26 "DrmBuffer.cpp", 27 "DrmContext.cpp", 28 "DrmDevice.cpp", 29 "IntelDrmDecoder.cpp", 30 ], 31 header_libs: [ 32 "libdrm_headers", 33 ], 34 cflags: [ 35 "-DGFXSTREAM_MAGMA_USE_INTEL_DRM=1", 36 ], 37 }, 38 not_windows: { 39 srcs: [ 40 "Connection.cpp", 41 "DrmBuffer.cpp", 42 "DrmContext.cpp", 43 "DrmDevice.cpp", 44 "IntelDrmDecoder.cpp", 45 ], 46 header_libs: [ 47 "libdrm_headers", 48 ], 49 cflags: [ 50 "-DGFXSTREAM_MAGMA_USE_INTEL_DRM=1", 51 ], 52 }, 53 }, 54} 55