d/rules: honour noopt build profile

This commit is contained in:
Andrea Pappacoda 2022-12-29 00:38:56 +01:00
parent a0f0b65d60
commit 98e5fc1809
No known key found for this signature in database
GPG key ID: 4A9208A2455077A7

13
debian/rules vendored
View file

@ -44,6 +44,15 @@ else
test := false
endif
ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
build_type := Release
lto := true
else
build_type := None
lto := false
endif
# DEB_VERSION, DEB_VENDOR
include /usr/share/dpkg/pkg-info.mk
include /usr/share/dpkg/vendor.mk
@ -66,8 +75,8 @@ override_dh_auto_configure:
-DYUZU_USE_BUNDLED_FFMPEG=false \
-DYUZU_TESTS=$(test) \
-DSIRIT_USE_SYSTEM_SPIRV_HEADERS=true \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
-DCMAKE_BUILD_TYPE=$(build_type) \
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=$(lto) \
-DCMAKE_POLICY_DEFAULT_CMP0069=NEW
execute_after_dh_auto_clean: