!47 add macros to control if need ft_surface

From: @zppzhangpan 
Reviewed-by: @anonymous_z, @t_feng 
Signed-off-by: @t_feng
This commit is contained in:
openeuler-ci-bot 2024-03-08 03:10:38 +00:00 committed by Gitee
commit e80904146d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -31,7 +31,11 @@
%endif
%ifarch x86_64 aarch64
%if %{?openEuler:1}0
%define with_ft 1
%else
%define with_ft 0
%endif
%endif
%global dri_drivers %{?platform_drivers}
@ -51,7 +55,7 @@
Name: mesa
Summary: Mesa graphics libraries
Version: 21.3.1
Release: 5
Release: 6
License: MIT
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"
%meson -Dcpp_std=gnu++14 \
-Db_ndebug=true \
%if 0%{?with_ft}
-Dplatforms=x11,wayland%{?with_ft:,ohos} \
%else
-Dplatforms=x11,wayland \
%endif
-Ddri3=enabled \
-Ddri-drivers=%{?dri_drivers} \
-Dosmesa=true \
@ -581,6 +589,9 @@ done
%endif
%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
- Add fangtian