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

Re: building debug and release with new style debhelper



On Fri, Mar 29, 2013 at 10:15:58PM +0100, Richard Ulrich wrote:
> 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 
You can always write your own build commands instead of dh_auto_build.

-- 
WBR, wRAR

Attachment: signature.asc
Description: Digital signature


Reply to: