diff options
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -3,7 +3,7 @@ AddOption('--release', action = 'store_true') env = Environment() conf = Configure(env) -for lib in ('config', 'pcre'): +for lib in ('config', 'pcre', 'xml2', 'ecpg'): if not conf.CheckLib(lib): print 'Could not find %s' % lib Exit(1) @@ -19,6 +19,11 @@ else: env.ParseConfig('pkg-config --cflags --libs libconfig') env.ParseConfig('pcre-config --cflags --libs') +build_ecpg = Builder(action = 'ecpg -o $TARGET $SOURCE') +env['BUILDERS']['ecpg'] = build_ecpg + +env.ecpg('pg.c', 'pg.pgc') + env.Program('ircstats', Glob('*.c')) # vim: syn=python |