| package { |
| default_applicable_licenses: ["hardware_google_gfxstream_license"], |
| } |
| |
| cc_library_static { |
| name: "gfxstream_magma_server", |
| defaults: [ "gfxstream_defaults" ], |
| static_libs: [ |
| "gfxstream_base", |
| "gfxstream_host_common", |
| "gfxstream_magma_dec", |
| "gfxstream_apigen_codec_common", |
| "gfxstream_vulkan_cereal_host", |
| ], |
| srcs: [ |
| "Decoder.cpp", |
| ], |
| export_include_dirs: [ |
| ".", |
| "magma_dec", |
| ], |
| target: { |
| android: { |
| srcs: [ |
| "Connection.cpp", |
| "DrmBuffer.cpp", |
| "DrmContext.cpp", |
| "DrmDevice.cpp", |
| "IntelDrmDecoder.cpp", |
| ], |
| header_libs: [ |
| "libdrm_headers", |
| ], |
| cflags: [ |
| "-DGFXSTREAM_MAGMA_USE_INTEL_DRM=1", |
| ], |
| }, |
| not_windows: { |
| srcs: [ |
| "Connection.cpp", |
| "DrmBuffer.cpp", |
| "DrmContext.cpp", |
| "DrmDevice.cpp", |
| "IntelDrmDecoder.cpp", |
| ], |
| header_libs: [ |
| "libdrm_headers", |
| ], |
| cflags: [ |
| "-DGFXSTREAM_MAGMA_USE_INTEL_DRM=1", |
| ], |
| } |
| } |
| } |