GUI/FS-watcher update
There are no guarantees that we detect all changes and some changes may
trigger several events. Should be good-enough for now
diff --git a/wscript b/wscript
index df1e2d3..b7d5d1a 100644
--- a/wscript
+++ b/wscript
@@ -62,6 +62,7 @@
conf.env.append_value('CXXFLAGS', ['-O3', '-g', '-Qunused-arguments'])
if conf.options._test:
+ conf.define ('_TESTS', 1)
conf.env.TEST = 1
conf.write_config_header('src/config.h')
@@ -102,11 +103,11 @@
)
qt = bld (
- target = "filewatcher",
- features = "qt4 cxx cxxprogram",
+ target = "fs-watcher",
+ features = "qt4 cxx",
defines = "WAF",
- source = bld.path.ant_glob(['filesystemwatcher/*.cpp']),
- includes = "filesystemwatcher . ",
+ source = bld.path.ant_glob(['fs-watcher/*.cc']),
+ includes = "fs-watcher . src ",
use = "QTCORE QTGUI LOG4CXX"
)
@@ -136,6 +137,6 @@
features = "qt4 cxx cxxprogram",
defines = "WAF",
source = bld.path.ant_glob(['gui/*.cpp', 'gui/*.qrc']),
- includes = "src gui . ",
- use = "QTCORE QTGUI LOG4CXX ccnx database chronoshare"
+ includes = "src gui fs-watcher src . ",
+ use = "QTCORE QTGUI LOG4CXX fs-watcher ccnx database chronoshare"
)