aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGurchetan Singh <gurchetansingh@google.com>2024-02-16 16:07:20 -0800
committerGurchetan Singh <gurchetansingh@google.com>2024-02-20 12:42:41 -0800
commitaaa492cb1ee4375f39dd8f77244935971ec0be12 (patch)
tree622839312f0975f5f39a9836e2e0d6c877fe69d9
parent582ba70d3fa7ff23334312a874d1e36b03102105 (diff)
downloadgfxstream-aaa492cb1ee4375f39dd8f77244935971ec0be12.tar.gz
gfxstream: install Magma
We should be install libmagma.a into the Meson specified directory for Linux style builds. Magma might not be a separate library but a part of more prominent gfx project long-term. BUG=326101772 TEST=compile with Fuchsia Mesa patch Change-Id: Ifd0054e31156c0750d123ef12ad9e03b10c83673
-rw-r--r--guest/magma/meson.build14
1 files changed, 8 insertions, 6 deletions
diff --git a/guest/magma/meson.build b/guest/magma/meson.build
index ef37f035..c0a26f0d 100644
--- a/guest/magma/meson.build
+++ b/guest/magma/meson.build
@@ -33,12 +33,14 @@ lib_magma_enc = static_library(
dependencies: [
dependency('libdrm')
],
+ install: true,
)
-lib_magma_gfxstream_dep = declare_dependency(
- include_directories: [
- inc_fuchsia_magma,
- inc_fuchsia_magma_nolib
- ],
- link_with: [lib_magma_enc],
+install_subdir('../../third-party/fuchsia/magma',
+ install_dir: 'include')
+
+pkg = import('pkgconfig')
+pkg.generate(lib_magma_enc,
+ description: 'magma',
+ subdirs: ['magma/include', 'magma/include/lib/'],
)