diff options
author | Changyeon Lee <cyeon.lee@samsung.com> | 2021-08-09 15:35:48 +0900 |
---|---|---|
committer | Changyeon Lee <cyeon.lee@samsung.com> | 2021-08-10 16:33:39 +0900 |
commit | 430ca1af7063a2ff034a8ce909abf06e2f626316 (patch) | |
tree | 472991ebe8a12a65fef3e9c32d67d2dea9c7cb3c | |
parent | 306d4cf9737cf7fba6670c5a9c488776d7c68301 (diff) | |
download | mesa-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.spec | 9 |
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 |