limit fangtian in x86_64 aarch64 arch

Signed-off-by: yanansong <songyanan5@huawei.com>
This commit is contained in:
yanansong 2023-10-18 03:20:41 +00:00 committed by Gitee
parent 38036c027e
commit 3b9b5019af
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -30,6 +30,10 @@
%define with_etnaviv 1
%endif
%ifarch x86_64 aarch64
%define with_ft 1
%endif
%global dri_drivers %{?platform_drivers}
%if 0%{?with_vulkan_hw}
@ -116,7 +120,9 @@ BuildRequires: llvm-toolset-7-runtime
%enable_llvmtoolset7
%endif
%if 0%{?with_ft}
BuildRequires: ft_surface_wrapper-devel
%endif
%description
%{summary}.
@ -297,6 +303,10 @@ Summary: Mesa Vulkan development files
Requires: %{name}-vulkan-drivers%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: vulkan-devel
%if 0%{?with_ft}
Requires: ft_surface_wrappe
%endif
%description vulkan-devel
Headers for development with the Vulkan API.
%endif
@ -311,7 +321,7 @@ 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 \
-Dplatforms=x11,wayland,ohos \
-Dplatforms=x11,wayland%{?with_ft:,ohos} \
-Ddri3=enabled \
-Ddri-drivers=%{?dri_drivers} \
-Dosmesa=true \