repo: data publisher
Change-Id: Ieda373e18ee11b4584ca223ee23cee4b7fcbde12
refs #1829
diff --git a/wscript b/wscript
index ccd14d3..537a3e9 100644
--- a/wscript
+++ b/wscript
@@ -15,6 +15,8 @@
ropt.add_option('--without-tools', action='store_false', default=True, dest='with_tools',
help='''Do not build tools''')
+ ropt.add_option('--with-examples', action='store_true', default=False, dest='with_examples',
+ help='''Build examples''')
def configure(conf):
conf.load("compiler_c compiler_cxx gnu_dirs boost default-compiler-flags sqlite3")
@@ -28,6 +30,7 @@
conf.env['WITH_TESTS'] = True
conf.env['WITH_TOOLS'] = conf.options.with_tools
+ conf.env['WITH_EXAMPLES'] = conf.options.with_examples
USED_BOOST_LIBS = ['system', 'iostreams', 'filesystem', 'random']
if conf.env['WITH_TESTS']:
@@ -69,4 +72,6 @@
# Tools
bld.recurse('tools')
+ bld.recurse("examples")
+
bld.install_files('${SYSCONFDIR}/ndn', 'repo-ng.conf.sample')