summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangyeon Lee <cyeon.lee@samsung.com>2021-08-09 15:35:48 +0900
committerChangyeon Lee <cyeon.lee@samsung.com>2021-08-10 16:33:39 +0900
commit430ca1af7063a2ff034a8ce909abf06e2f626316 (patch)
tree472991ebe8a12a65fef3e9c32d67d2dea9c7cb3c
parent306d4cf9737cf7fba6670c5a9c488776d7c68301 (diff)
downloadmesa-430ca1af7063a2ff034a8ce909abf06e2f626316.tar.gz
mesa-430ca1af7063a2ff034a8ce909abf06e2f626316.tar.bz2
mesa-430ca1af7063a2ff034a8ce909abf06e2f626316.zip
Disable build gbm
display server of tizen doesn't use gbm of mesa Change-Id: I039a08a2443ff6975245c9a896fc8cc5e6d3cf0c
-rw-r--r--packaging/mesa.spec9
1 files changed, 9 insertions, 0 deletions
diff --git a/packaging/mesa.spec b/packaging/mesa.spec
index 016a112a3e7..a9c20ba2885 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,7 +74,11 @@ meson --prefix %{_prefix} build/ \
-Dgallium-xvmc=false \
-Dglx=disabled \
-Ddri3=false \
+%if "%{USE_GBM}" == "1"
-Dgbm=true \
+%else
+ -Dgbm=false \
+%endif
-Dplatforms="tizen" \
%ifarch %ix86 x86_64
-Dgallium-drivers="i915,swrast" \
@@ -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