Skip bad decoded frames, but not exit
[anna.git] / example / diameter / launcher / SConscript
index e20575f..249a878 100644 (file)
@@ -1,3 +1,4 @@
+import os
 Import ('env')
 
 # Process #################################################################
@@ -20,19 +21,24 @@ anna_rlibs = list(anna_libs)
 anna_rlibs.reverse()
 
 # Libraries ###############################################################
-# To avoid other libraries accumulation (boost testing, i.e.):
+# To avoid other libraries accumulation:
 localEnv = env.Clone()
 
 anna_library = { 'LIBS' : anna_rlibs }
 localEnv.MergeFlags (anna_library)
 
-system_library = { 'LIBS' : [ 'xml2', 'rt' ] }
+system_library = { 'LIBS' : [ 'xml2', 'rt', 'pthread' ] }
 localEnv.MergeFlags (system_library)
 
 localEnv.Append(LIBPATH = anna_libpaths)
 
 # Linking #################################################################
-result = localEnv.Program (pName, Glob ('*.cpp'))
 
+# Process includes (avoid mandatory using of quoted includes and ../ paths from testing directory):
+current_directory = Dir ('.').abspath
+testing_include = os.path.join (current_directory, "testing")
+localEnv.Append (CPPPATH = [current_directory, testing_include])
+
+result = localEnv.Program (pName, Glob ('*.cpp') + Glob ('testing/*.cpp'))
 
 Return ('result')