Skip to content

Commit

Permalink
Add support for debug symbol packages, Qt.
Browse files Browse the repository at this point in the history
This would be better as two patches, but I'm not sure if it's worth
the overhead to separate them.

Note that I added a Recommends: for libpsmoveapiqt3.  I'm not sure if
that is ideal, but I didn't want to make a separate -dev package just
for libpsmoveapiqt3, and Requires: was a bit limiting.
  • Loading branch information
Klee Dienes committed Sep 26, 2013
1 parent 8fbf90b commit 7a3b737
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 6 deletions.
48 changes: 48 additions & 0 deletions debian/control
Expand Up @@ -13,12 +13,36 @@ Section: libdevel
Architecture: any
Multi-Arch: same
Depends: libpsmoveapi3 (= ${binary:Version}), libpsmoveapi-tracker3 (= ${binary:Version}), ${misc:Depends}
Recommends: libpsmoveapiqt3 (= ${binary:Version})
Description: Playstation Move Motion Controller API - Development files
This library allows you to access one or more Playstation
Move Motion Controllers via USB or Bluetooth.
.
This package contains the development headers and libraries.

Package: libpsmoveapiqt3
Section: libs
Architecture: any
Multi-Arch: same
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Playstation Move Motion Controller API - Qt library
This library allows you to access one or more Playstation
Move Motion Controllers via USB or Bluetooth.
.
This package contains the Qt libraries for the PS Move API.

Package: libpsmoveapiqt3-dbg
Section: debug
Architecture: any
Multi-Arch: same
Depends: libpsmoveapiqt3 (= ${binary:Version}), ${misc:Depends}
Description: Playstation Move Motion Controller API - Qt debug symbols
This library allows you to access one or more Playstation
Move Motion Controllers via USB or Bluetooth.
.
This package contains the detached debugging symbols for the Qt
libraries for the PS Move API.

Package: libpsmoveapi3
Section: libs
Architecture: any
Expand All @@ -30,6 +54,18 @@ Description: Playstation Move Motion Controller API - Core library
.
This package contains the shared library (Core) for the PS Move API.

Package: libpsmoveapi3-dbg
Section: debug
Architecture: any
Multi-Arch: same
Depends: libpsmoveapi3 (= ${binary:Version}), ${misc:Depends}
Description: Playstation Move Motion Controller API - Core debug symbols
This library allows you to access one or more Playstation
Move Motion Controllers via USB or Bluetooth.
.
This package contains detached debugging symbols for the shared
library (Core) for the PS Move API.

Package: libpsmoveapi-tracker3
Section: libs
Architecture: any
Expand All @@ -41,6 +77,18 @@ Description: Playstation Move Motion Controller API - Tracker library
.
This package contains the shared library (Tracker) for the PS Move API.

Package: libpsmoveapi-tracker3-dbg
Section: debug
Architecture: any
Multi-Arch: same
Depends: libpsmoveapi-tracker3 (= ${binary:Version}), ${misc:Depends}
Description: Playstation Move Motion Controller API - Tracker library debug symbols
This library allows you to access one or more Playstation
Move Motion Controllers via USB or Bluetooth.
.
This package contains the detached debugging symbols for the shared
library (Tracker) for the PS Move API.

Package: psmoveapi-utils
Section: libs
Architecture: any
Expand Down
1 change: 1 addition & 0 deletions debian/libpsmoveapiqt3.install
@@ -0,0 +1 @@
usr/lib/*/lib*apiqt.so.*
29 changes: 23 additions & 6 deletions debian/rules
@@ -1,13 +1,30 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

.PHONY: override_dh_auto_configure override_dh_strip override_dh_installdocs

ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
DEB_CMAKE_EXTRA_FLAGS += -DPSMOVE_USE_DEBUG:BOOL=YES
endif

DEB_CMAKE_EXTRA_FLAGS += -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo
DEB_CMAKE_EXTRA_FLAGS += -DPSMOVE_BUILD_QT_BINDINGS:BOOL=YES

DH_FLAGS = --parallel --buildsystem=cmake

%:
dh $@
dh $@ $(DH_FLAGS)

override_dh_auto_configure:
dh_auto_configure $(DH_FLAGS) -- $(DEB_CMAKE_EXTRA_FLAGS) ..

override_dh_strip:
dh_strip -plibpsmoveapi3 --dbg-package=libpsmoveapi3-dbg
dh_strip -plibpsmoveapi-tracker3 --dbg-package=libpsmoveapi-tracker3-dbg
dh_strip -plibpsmoveapiqt3 --dbg-package=libpsmoveapiqt3-dbg

override_dh_installdocs:
dh_installdocs --link-doc=libpsmoveapi3

0 comments on commit 7a3b737

Please sign in to comment.