master: libArcus: Build debug library and create debug table
Like stated this enables debug builds and adds debug packages. Also disabled building examples.
This commit is contained in:
parent
18de9db79c
commit
422b9ea07b
|
@ -21,6 +21,16 @@ Depends:
|
||||||
Description: Communication library between internal components for Ultimaker software
|
Description: Communication library between internal components for Ultimaker software
|
||||||
Communication library between internal components for Ultimaker software
|
Communication library between internal components for Ultimaker software
|
||||||
|
|
||||||
|
Package: libarcus-dbg
|
||||||
|
Architecture: any
|
||||||
|
Multi-Arch: same
|
||||||
|
Section: debug
|
||||||
|
Depends:
|
||||||
|
${shlibs:Depends},
|
||||||
|
${misc:Depends}
|
||||||
|
Description: Communication library between internal components for Ultimaker software
|
||||||
|
Communication library between internal components for Ultimaker software
|
||||||
|
|
||||||
Package: libarcus-dev
|
Package: libarcus-dev
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Multi-Arch: same
|
Multi-Arch: same
|
||||||
|
@ -46,3 +56,18 @@ XB-Python3-Version:
|
||||||
${python3:Versions}
|
${python3:Versions}
|
||||||
Description: Communication library between internal components for Ultimaker software
|
Description: Communication library between internal components for Ultimaker software
|
||||||
Communication library between internal components for Ultimaker software
|
Communication library between internal components for Ultimaker software
|
||||||
|
|
||||||
|
Package: python3-arcus-dbg
|
||||||
|
Architecture: any
|
||||||
|
Section: python
|
||||||
|
Depends:
|
||||||
|
${shlibs:Depends},
|
||||||
|
${python3:Depends},
|
||||||
|
${misc:Depends},
|
||||||
|
libarcus (= ${binary:Version})
|
||||||
|
Provides:
|
||||||
|
${python3:Provides}
|
||||||
|
XB-Python3-Version:
|
||||||
|
${python3:Versions}
|
||||||
|
Description: Communication library between internal components for Ultimaker software
|
||||||
|
Communication library between internal components for Ultimaker software
|
||||||
|
|
1
master/libArcus/libarcus-dbg.install
Normal file
1
master/libArcus/libarcus-dbg.install
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/usr/lib/debug/lib/*/libArcus.so*
|
1
master/libArcus/python3-arcus-dbg.install
Normal file
1
master/libArcus/python3-arcus-dbg.install
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/usr/lib/python3*
|
|
@ -3,16 +3,69 @@
|
||||||
# output every command that modifies files on the build system.
|
# output every command that modifies files on the build system.
|
||||||
export DH_VERBOSE = 1
|
export DH_VERBOSE = 1
|
||||||
|
|
||||||
|
CMAKE_COMMON_OPTIONS := -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
|
||||||
|
-DBUILD_EXAMPLES:BOOL=OFF
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ --with python3 --buildsystem=cmake --parallel
|
dh $@ --with python3 --buildsystem=cmake --parallel
|
||||||
|
|
||||||
override_dh_install:
|
override_dh_auto_clean:
|
||||||
dh_install --fail-missing
|
rm -rf build-*
|
||||||
|
- rm -rf debian/tmp
|
||||||
|
- rm -rf debian/tmp-dbg
|
||||||
|
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure:
|
||||||
dh_auto_configure -- \
|
for PYX in $(shell py3versions -rv) ; do \
|
||||||
-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
|
mkdir -p build-$${PYX}; \
|
||||||
|
dh_auto_configure -a \
|
||||||
|
--builddirectory=build-$${PYX} -- \
|
||||||
|
$(CMAKE_COMMON_OPTIONS) \
|
||||||
|
-DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" \
|
||||||
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
|
||||||
|
-DPYTHON_LIBRARY:FILEPATH=/usr/lib/$(DEB_HOST_MULTIARCH)/libpython$${PYX}m.so \
|
||||||
|
-DPYTHON_INCLUDE_DIR:FILEPATH=/usr/include/python$${PYX}m \
|
||||||
|
-DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python$${PYX} ; \
|
||||||
|
done
|
||||||
|
|
||||||
|
# DEBUG
|
||||||
|
for PYX in $(shell py3versions -rv) ; do \
|
||||||
|
mkdir -p build-$${PYX}-dbg; \
|
||||||
|
dh_auto_configure -a \
|
||||||
|
--builddirectory=build-$${PYX}-dbg -- \
|
||||||
|
$(CMAKE_COMMON_OPTIONS) \
|
||||||
|
-DCMAKE_BUILD_TYPE:STRING="Debug" \
|
||||||
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib/debug/lib/$(DEB_HOST_MULTIARCH) \
|
||||||
|
-DPYTHON_LIBRARY:FILEPATH=/usr/lib/$(DEB_HOST_MULTIARCH)/libpython$${PYX}m.so \
|
||||||
|
-DPYTHON_DEBUG_LIBRARY:FILEPATH=/usr/lib/$(DEB_HOST_MULTIARCH)/libpython$${PYX}dm.so \
|
||||||
|
-DPYTHON_INCLUDE_DIR:FILEPATH=/usr/include/python$${PYX}dm \
|
||||||
|
-DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python$${PYX}dm ; \
|
||||||
|
done
|
||||||
|
|
||||||
|
override_dh_auto_build:
|
||||||
|
for PYX in $(shell py3versions -rv) ; do \
|
||||||
|
dh_auto_build -a --builddirectory=build-$${PYX}; \
|
||||||
|
dh_auto_build -a --builddirectory=build-$${PYX}-dbg; \
|
||||||
|
done
|
||||||
|
|
||||||
|
override_dh_auto_install:
|
||||||
|
for PYX in $(shell py3versions -rv) ; do \
|
||||||
|
dh_auto_install -a --builddirectory=build-$${PYX} --destdir=debian/tmp; \
|
||||||
|
dh_auto_install -a --builddirectory=build-$${PYX}-dbg --destdir=debian/tmp-dbg; \
|
||||||
|
done
|
||||||
|
|
||||||
|
override_dh_auto_test:
|
||||||
|
for PYX in $(shell py3versions -rv) ; do \
|
||||||
|
dh_auto_test --builddirectory=build-$${PYX}; \
|
||||||
|
dh_auto_test --builddirectory=build-$${PYX}-dbg; \
|
||||||
|
done
|
||||||
|
|
||||||
|
override_dh_install:
|
||||||
|
dh_install \
|
||||||
|
-plibarcus-dbg \
|
||||||
|
-ppython3-arcus-dbg \
|
||||||
|
--sourcedir=debian/tmp-dbg --fail-missing -Xcmake
|
||||||
|
dh_install -a --remaining-packages --fail-missing
|
||||||
|
|
||||||
|
override_dh_strip:
|
||||||
|
dh_strip -plibarcus --dbg-package=libarcus-dbg
|
||||||
|
dh_strip -ppython3-arcus --dbg-package=python3-arcus-dbg
|
||||||
|
|
Loading…
Reference in New Issue
Block a user