summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 6 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 97e885a..3e16eed 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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