blob: 2c9681ea48f984367a352b1c64d7da222d822ef2 [file] [log] [blame]
# Copyright 2023 Android Open Source Project
# SPDX-License-Identifier: MIT
files_lib_magma_enc = files(
'magma.cpp',
'magma_enc_util.cpp',
'magma_enc/magma_enc.cpp',
'magma_enc/magma_entry.cpp',
'magma_enc/magma_client_context.cpp',
)
inc_magma_enc = include_directories('magma_enc')
lib_magma_enc = static_library(
'magma',
files_lib_magma_enc,
cpp_args: cpp_args + [
'-Wno-misleading-indentation',
'-Wno-unused-function',
],
include_directories: [inc_magma, inc_magma_enc, inc_android_emu, inc_host, inc_android_compat,
inc_opengl_codec, inc_opengl_system, inc_render_enc, inc_system,
inc_goldfish_address_space, inc_platform],
link_with: [
lib_platform,
lib_stream, # for ASG
lib_codec_common, # for checksums
lib_emu_android_base, # for tracing
lib_android_compat # for logging
],
dependencies: [
fuchsia_magma_dep,
dependency('libdrm')
],
)
lib_magma_gfxstream_dep = declare_dependency(
include_directories: [inc_magma, inc_magma_enc],
link_with: [lib_magma_enc],
)