summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangyeon Lee <cyeon.lee@samsung.com>2021-08-09 15:35:48 +0900
committerXuelian Bai <xuelian.bai@samsung.com>2024-01-18 09:31:55 +0800
commit08f86b726643a01e4dafb6dcdca4245c547b7b4d (patch)
tree89f4f5c47358fb57cfec50a016341040c3874f27
parent5b9c8efa2666004ee323b49de14cd195fea8b44b (diff)
downloadmesa-08f86b726643a01e4dafb6dcdca4245c547b7b4d.tar.gz
mesa-08f86b726643a01e4dafb6dcdca4245c547b7b4d.tar.bz2
mesa-08f86b726643a01e4dafb6dcdca4245c547b7b4d.zip
Disable build gbm
display server of tizen doesn't use gbm of mesa Change-Id: I039a08a2443ff6975245c9a896fc8cc5e6d3cf0c
-rw-r--r--packaging/mesa.spec11
1 files changed, 10 insertions, 1 deletions
diff --git a/packaging/mesa.spec b/packaging/mesa.spec
index 2f2140da063..3656ecc3e85 100644
--- a/packaging/mesa.spec
+++ b/packaging/mesa.spec
@@ -39,6 +39,8 @@ ExclusiveArch:
%define USE_VULKAN 0
%define VULKAN_DRIVER broadcom
+%define USE_GBM 0
+
%description
Mesa is a 3-D graphics library with an API which is very similar to
that of OpenGL.* To the extent that Mesa utilizes the OpenGL command
@@ -72,8 +74,12 @@ meson --prefix %{_prefix} build/ \
-Dgallium-xvmc=false \
-Dglx=disabled \
-Ddri3=false \
+%if "%{USE_GBM}" == "1"
-Dgbm=true \
- -Dplatforms="tizen,wayland,drm" \
+%else
+ -Dgbm=false \
+%endif
+ -Dplatforms="tizen" \
%ifarch %ix86 x86_64
-Dgallium-drivers="i915,swrast" \
-Ddri-drivers="" \
@@ -84,6 +90,7 @@ meson --prefix %{_prefix} build/ \
%endif
-Dgallium-drivers="vc4,v3d,kmsro,swrast"
%endif
+
ninja -C build/
%install
@@ -118,7 +125,9 @@ cp 99-GPU-Acceleration.rules %{buildroot}%{_udevrulesdir}
%{_hal_libdir}/driver/*
%{_hal_libdir}/dri/*
%{_libdir}/dri
+%if "%{USE_GBM}" == "1"
%{_libdir}/libgbm*
+%endif
%if "%{USE_VULKAN}" == "1"
%{_hal_libdir}/libvulkan_%{VULKAN_DRIVER}.so
%{_libdir}/libvulkan_%{VULKAN_DRIVER}.so