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

Re: building debug and release with new style debhelper



Am Mittwoch, den 03.04.2013, 09:33 +0800 schrieb Paul Wise:
> 
> > 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.
> 
> Hmmmm.
> 
> > I started mixing in the overrides like below (not working yet).
> > Am I on the right path with that?
> 
> How about this (untested):
> 
> %:
>          dh $@ --buildsystem cmake --builddirectory=build-debian-release
>          dh $@ --buildsystem cmake --builddirectory=build-debian-debug
> 
> override_dh_auto_configure:
>          dh_auto_configure --builddirectory=build-debian-release --
> -DCMAKE_BUILD_TYPE:STRING=Release
>          dh_auto_configure --builddirectory=build-debian-debug --
> -DCMAKE_BUILD_TYPE:STRING=Debug

I had to add some more overrides, but that got me on the right
direction. It looks now a lot cleaner than what I tried previously.

Thanks
Richard


Reply to: