[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

building debug and release with new style debhelper



Hi gurus,

I'm trying to convert an old style debhelper rules file to the new
style. 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.

Here are some relevant parts of the old rules file: 

build-stamp: configure-stamp  
	dh_testdir
	mkdir -p $(CURDIR)/build-debian-release
	(cd $(CURDIR)/build-debian-release; cmake
-DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:STRING=Release ..)
	mkdir -p $(CURDIR)/build-debian-debug
	(cd $(CURDIR)/build-debian-debug; cmake
-DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:STRING=Debug ..)
	(cd $(CURDIR)/build-debian-release; $(MAKE) )
	(cd $(CURDIR)/build-debian-debug; $(MAKE) )


But how does that fit into the new scheme?:


%:
	dh $@ --buildsystem cmake --builddirectory=build

override_dh_auto_configure :
	dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/usr 



Rgds
Richard


Reply to: