add macros to control if need ft_surface
This commit is contained in:
parent
671838024b
commit
662b62449a
13
mesa.spec
13
mesa.spec
@ -31,7 +31,11 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch x86_64 aarch64
|
%ifarch x86_64 aarch64
|
||||||
|
%if %{?openEuler:1}0
|
||||||
%define with_ft 1
|
%define with_ft 1
|
||||||
|
%else
|
||||||
|
%define with_ft 0
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global dri_drivers %{?platform_drivers}
|
%global dri_drivers %{?platform_drivers}
|
||||||
@ -51,7 +55,7 @@
|
|||||||
Name: mesa
|
Name: mesa
|
||||||
Summary: Mesa graphics libraries
|
Summary: Mesa graphics libraries
|
||||||
Version: 21.3.1
|
Version: 21.3.1
|
||||||
Release: 5
|
Release: 6
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://www.mesa3d.org
|
URL: http://www.mesa3d.org
|
||||||
@ -325,7 +329,11 @@ sed -i -e 's/cpp_std=gnu++11/cpp_std=gnu++14/g' meson.build
|
|||||||
export ASFLAGS="--generate-missing-build-notes=yes"
|
export ASFLAGS="--generate-missing-build-notes=yes"
|
||||||
%meson -Dcpp_std=gnu++14 \
|
%meson -Dcpp_std=gnu++14 \
|
||||||
-Db_ndebug=true \
|
-Db_ndebug=true \
|
||||||
|
%if 0%{?with_ft}
|
||||||
-Dplatforms=x11,wayland%{?with_ft:,ohos} \
|
-Dplatforms=x11,wayland%{?with_ft:,ohos} \
|
||||||
|
%else
|
||||||
|
-Dplatforms=x11,wayland \
|
||||||
|
%endif
|
||||||
-Ddri3=enabled \
|
-Ddri3=enabled \
|
||||||
-Ddri-drivers=%{?dri_drivers} \
|
-Ddri-drivers=%{?dri_drivers} \
|
||||||
-Dosmesa=true \
|
-Dosmesa=true \
|
||||||
@ -581,6 +589,9 @@ done
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 6 2024 zhangpan <zhangpan103@h-partners.com> - 21.3.1-6
|
||||||
|
- add macros to control if need ft_surface
|
||||||
|
|
||||||
* Tue Oct 17 2023 yanansong <songyanan5@huawei.com> - 21.3.1-5
|
* Tue Oct 17 2023 yanansong <songyanan5@huawei.com> - 21.3.1-5
|
||||||
- Add fangtian
|
- Add fangtian
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user