raise Exception("Invalid build system "+buildSystem)
# global rules
else:
raise Exception("Invalid build system "+buildSystem)
# global rules
- r.env += ["DEB_BUILD_OPTIONS='parallel=2'"]
- if not dbgPackage: r.env += ["DEB_CFLAGS_APPEND='-g0'", "DEB_CXXFLAGS_APPEND='-g0'"] # disable debug information
+ r.env["DEB_BUILD_OPTIONS"] = 'parallel=2'
+ if not dbgPackage:
+ # disable debug information
+ r.env["DEB_CFLAGS_APPEND"] = '-g0'
+ r.env["DEB_CXXFLAGS_APPEND"] = '-g0'
r.dh += ['--parallel']
r.dh += ['--parallel']
- r.rules['builddeb'] = ['dh_builddeb --destdir='+debDir] # passing this gobally to dh results in weird problems (like stuff being installed there, and not in the package...)
+ r.rules['builddeb'] = [safeCall(['dh_builddeb', "--destdir="+debDir])] # passing this gobally to dh results in weird problems (like stuff being installed there, and not in the package...)
r.rules['auto_test'] = []
r.rules['auto_test'] = []
- r.rules['auto_install'] = ['dh_auto_install --destdir=debian/'+binaryName] # install everything into the binary package
+ r.rules['auto_install'] = [safeCall(['dh_auto_install', '--destdir=debian/'+binaryName])] # install everything into the binary package
# for debug packages
if dbgPackage:
# for debug packages
if dbgPackage:
- r.rules['strip'] = ['dh_strip --dbg-package='+binaryName+"-dbg"] # put debug files in appropriate package
- r.rules['installdocs'] = ['dh_installdocs --link-doc='+binaryName] # make the doc folder of the dbg package a symlink
+ r.rules['strip'] = [safeCall(['dh_strip', '--dbg-package='+binaryName+"-dbg"])] # put debug files in appropriate package
+ r.rules['installdocs'] = [safeCall(['dh_installdocs', '--link-doc='+binaryName])] # make the doc folder of the dbg package a symlink