[neon/extras/gammaray/Neon/experimental] debian: ninja-build
Carlos De Maine
null at kde.org
Wed Aug 2 10:25:39 BST 2023
Git commit 14731de3788dbc1540cb02055c3fd2d9c7ab4b63 by Carlos De Maine.
Committed on 02/08/2023 at 11:25.
Pushed by carlosdem into branch 'Neon/experimental'.
ninja-build
M +1 -0 debian/control
M +34 -2 debian/rules
https://invent.kde.org/neon/extras/gammaray/-/commit/14731de3788dbc1540cb02055c3fd2d9c7ab4b63
diff --git a/debian/control b/debian/control
index b9c99c4e..dc32749a 100644
--- a/debian/control
+++ b/debian/control
@@ -15,6 +15,7 @@ Build-Depends: cmake,
kf6-kcoreaddons-dev,
kf6-syntax-highlighting-dev,
pkg-kde-tools-neon,
+ ninja-build,
qml6-module-qtquick,
qtchooser,
qt6-3d-assimpsceneimport-plugin,
diff --git a/debian/rules b/debian/rules
index 2b4ce34e..e6f2b18b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,10 +13,15 @@ export GAMMARAY_LAUNCHER_TIMEOUT=240
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
%:
- dh $@
+ dh $@ --with pkgkde_symbolshelper --buildsystem=cmake+ninja
override_dh_auto_configure:
- dh_auto_configure -- LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=FALSE -DQT_VERSION_MAJOR=6 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DCMAKE_PREFIX_PATH=/usr/lib/*/cmake/QT6/
+ dh_auto_configure -- \
+ --log-level=STATUS \
+ -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
+ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=FALSE \
+ -DQT_VERSION_MAJOR=6 \
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
override_dh_auto_test:
:
@@ -35,3 +40,30 @@ override_dh_auto_install:
override_dh_installdocs:
dh_installdocs --link-doc=gammaray
+
+
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/architecture.mk
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
+
+# QT_HOST_PATH isn't passed in cross-builds
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+extra_cmake_args += \
+ -DQT_HOST_PATH=/usr \
+ -DQT_HOST_PATH_CMAKE_DIR=/usr/lib/${DEB_HOST_MULTIARCH}/cmake
+endif
+
+%:
+ dh $@ --with pkgkde_symbolshelper --buildsystem=cmake+ninja
+
+override_dh_auto_configure:
+ dh_auto_configure -- \
+ --log-level=STATUS \
+ -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
+ $(extra_cmake_args)
+
+execute_after_dh_auto_install:
+ # Reproducible builds: remove build paths from .prl files
+ sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libQt6*.prl
More information about the Neon-commits
mailing list