From c6f193ce3213a2db5f432723bc08c33db36bb62b Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 24 Sep 2021 12:07:23 -0700 Subject: [PATCH] mesa: add meson.build for libmesa Signed-off-by: Chia-I Wu Reviewed-by: Yiwei Zhang Reviewed-by: Ryan Neph Acked-by: Gert Wollny --- src/gallium/meson.build | 4 +++- src/mesa/meson.build | 23 +++++++++++++++++++++++ src/meson.build | 1 + 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 src/mesa/meson.build diff --git a/src/gallium/meson.build b/src/gallium/meson.build index 62c8533..67decf4 100644 --- a/src/gallium/meson.build +++ b/src/gallium/meson.build @@ -126,9 +126,11 @@ libgallium = static_library( include_directories : [ inc_gallium, inc_configuration ], + dependencies: mesa_dep, ) gallium_dep = declare_dependency( link_with: libgallium, - include_directories: [inc_gallium, inc_configuration] + include_directories: [inc_gallium, inc_configuration], + dependencies: mesa_dep, ) diff --git a/src/mesa/meson.build b/src/mesa/meson.build new file mode 100644 index 0000000..e132510 --- /dev/null +++ b/src/mesa/meson.build @@ -0,0 +1,23 @@ +# Copyright 2021 Google LLC +# SPDX-License-Identifier: MIT + +inc_mesa = include_directories('.') + +files_mesa = files( +) + +deps_mesa = [ +] + +libmesa = static_library( + 'mesa', + files_mesa, + include_directories: inc_mesa, + dependencies: deps_mesa, +) + +mesa_dep = declare_dependency( + link_with: libmesa, + include_directories: inc_mesa, + dependencies: deps_mesa, +) diff --git a/src/meson.build b/src/meson.build index ac8df76..16c645d 100644 --- a/src/meson.build +++ b/src/meson.build @@ -21,6 +21,7 @@ # OTHER DEALINGS IN THE SOFTWARE. # +subdir('mesa') subdir('gallium') virgl_sources = [