Skip to content

Instantly share code, notes, and snippets.

@tanakh
Created March 14, 2010 21:38
Show Gist options
  • Save tanakh/332254 to your computer and use it in GitHub Desktop.
Save tanakh/332254 to your computer and use it in GitHub Desktop.
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