# get rule file for build system: may only touch auto_config and auto_clean rules and the dh options
if buildSystem == 'cmake':
with open('debian/rules', 'w') as f:
# get rule file for build system: may only touch auto_config and auto_clean rules and the dh options
if buildSystem == 'cmake':
- r = cmakeRules(dbgPackage, config)
+ r = cmakeRules(config)
else:
raise Exception("Invalid build system "+buildSystem)
# global rules
else:
raise Exception("Invalid build system "+buildSystem)
# global rules
- r.buildOptions = "parallel=2"
+ r.env += ["DEB_BUILD_OPTIONS='parallel=2'"]
+ if not dbgPackage: r.env += ["DEB_CFLAGS_APPEND='-g0'", "DEB_CXXFLAGS_APPEND='-g0'"] # disable debug information
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['auto_test'] = []
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...)