d/rules: honour noopt build profile
This commit is contained in:
parent
a0f0b65d60
commit
98e5fc1809
1 changed files with 11 additions and 2 deletions
13
debian/rules
vendored
13
debian/rules
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue