Created
March 14, 2010 21:38
-
-
Save tanakh/332254 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APPNAME = 'gdbtest' | |
VERSION = '0.0.0' | |
srcdir = '.' | |
blddir = 'build' | |
def set_options(opt): | |
opt.tool_options('compiler_cxx') | |
opt.add_option('--gdb', action='store_true', default=False, | |
help='run gdb') | |
def configure(conf): | |
conf.check_tool('compiler_cxx') | |
def build(bld): | |
bld(features = 'cxx cprogram', | |
source = 'main.cpp', | |
target = 'main') | |
bld.add_group() | |
import Options | |
if Options.options.gdb: | |
bld(rule = 'gdb ${SRC}', | |
source = 'main') | |
def shutdown(ctx): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment