d/{control,rules}: build on arm64

This commit is contained in:
Andrea Pappacoda 2022-12-27 00:40:45 +01:00
parent 441099bffb
commit 5c8dd27a25
No known key found for this signature in database
GPG key ID: 4A9208A2455077A7
2 changed files with 16 additions and 12 deletions

6
debian/control vendored
View file

@ -26,7 +26,7 @@ Build-Depends-Arch: catch2 (>= 2.13.7) <!nocheck>,
libusb-1.0-0-dev,
libva-dev,
libvulkan-dev (>= 1.3.213),
libxbyak-dev,
libxbyak-dev [any-amd64],
libzstd-dev (>= 1.5),
nlohmann-json3-dev (>= 3.8),
pkg-config,
@ -44,8 +44,8 @@ Vcs-Browser: https://salsa.debian.org/debian/yuzu
Rules-Requires-Root: no
Package: yuzu
Architecture: any-amd64
Depends: sse4.2-support,
Architecture: any-amd64 any-arm64
Depends: sse4.2-support [any-amd64],
${misc:Depends},
${shlibs:Depends}
Description: Nintendo Switch Emulator

22
debian/rules vendored
View file

@ -25,16 +25,22 @@ export DEB_CXXFLAGS_MAINT_STRIP = -Werror=array-bounds
# https://gitlab.com/x86-psABIs/x86-64-ABI/-/wikis/uploads/01de35b2c8adc7545de52604cc45d942/x86-64-psABI-2021-05-20.pdf#page=16
# https://github.com/yuzu-emu/yuzu/pull/7497
# https://github.com/yuzu-emu/yuzu/pull/9442
export DEB_CFLAGS_MAINT_APPEND = -march=x86-64-v2
export DEB_CXXFLAGS_MAINT_APPEND = -march=x86-64-v2
test := false
ifeq ($(DEB_HOST_ARCH_CPU),amd64)
export DEB_CFLAGS_MAINT_APPEND = -march=x86-64-v2
export DEB_CXXFLAGS_MAINT_APPEND = -march=x86-64-v2
endif
test := true
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
ifeq (,$(shell lscpu | awk '/cx16/ && /lahf/ && /popcnt/ && /sse3/ && /sse4_1/ && /sse4_2/ && /ssse3/'))
$(warning Your CPU doesn't support the x86-64-v2 micro-architecture level. Tests will be skipped.)
else
test := true
ifeq ($(DEB_HOST_ARCH_CPU),amd64)
ifeq (,$(shell lscpu | awk '/cx16/ && /lahf/ && /popcnt/ && /sse3/ && /sse4_1/ && /sse4_2/ && /ssse3/'))
$(warning Your CPU doesn't support the x86-64-v2 micro-architecture level. Tests will be skipped.)
test := false
endif
endif
else
test := false
endif
# DEB_VERSION, DEB_VENDOR
@ -56,8 +62,6 @@ override_dh_auto_configure:
-DYUZU_USE_EXTERNAL_SDL2=false \
-DYUZU_USE_BUNDLED_SDL2=false \
-DYUZU_USE_BUNDLED_QT=false \
-DYUZU_USE_BUNDLED_BOOST=false \
-DYUZU_USE_BUNDLED_LIBUSB=false \
-DYUZU_USE_BUNDLED_FFMPEG=false \
-DYUZU_TESTS=$(test) \
-DSIRIT_USE_SYSTEM_SPIRV_HEADERS=true \