Am Montag, den 01.04.2013, 20:46 +0800 schrieb Paul Wise: > > The problem I'm facin is that I don't know how to handle the fact > > that I want to build debug and release with cmake. > > I think you should instead drop the debug build, those aren't shipped > in Debian usually.
That's not really what I want. The packages I'm building (richbool and modassert) are mainly concerned with providing information about failed asserts in debug code. So the debug builds are actually more important than the release ones. I'm even considering to make the librichbool-dev package depend on the librichbool-dbg package. I started mixing in the overrides like below (not working yet). Am I on the right path with that? %: dh $@ --buildsystem cmake --builddirectory=build-debian-release override_dh_auto_clean : dh_auto_clean rm -rf $(CURDIR)/build-debian-release rm -rf $(CURDIR)/build-debian-debug rm -rf $(CURDIR)/debian/richbooltmp override_dh_auto_configure : mkdir -p $(CURDIR)/build-debian-release (cd $(CURDIR)/build-debian-release; cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=1 -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_SKIP_RPATH:BOOL=1 ..) mkdir -p $(CURDIR)/build-debian-debug (cd $(CURDIR)/build-debian-debug; cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=1 -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_SKIP_RPATH:BOOL=1 ..) override_dh_auto_build : (cd $(CURDIR)/build-debian-release; $(MAKE) ) (cd $(CURDIR)/build-debian-debug; $(MAKE) ) override_dh_auto_install : (cd $(CURDIR)/build-debian-release; $(MAKE) install DESTDIR= $(CURDIR)/debian/richbooltmp/ ) (cd $(CURDIR)/build-debian-debug; $(MAKE) install DESTDIR= $(CURDIR)/debian/richbooltmp/ ) dh_install --sourcedir=debian/richbooltmp/ Rgds Richard -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1364921563.8556.8.camel@quadulrich