X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2FSConscript;h=d2ff2ed236978ab5d385581e76ab3ff6a19fcd07;hb=8b3eb3637cbe90fbabe70ec5667cce58cb7e368b;hp=e20575fd884f1d20ff6f36d117ec69b29bed9f5b;hpb=10acee039e75b859b11fd809ce22fb2aecce47e2;p=anna.git diff --git a/example/diameter/launcher/SConscript b/example/diameter/launcher/SConscript index e20575f..d2ff2ed 100644 --- a/example/diameter/launcher/SConscript +++ b/example/diameter/launcher/SConscript @@ -1,3 +1,4 @@ +import os Import ('env') # Process ################################################################# @@ -10,29 +11,43 @@ pPath = pName.replace("_", "/") + "/" pwd = str(Dir ('.').abspath); anna_libpaths = [] anna_libs = [] + modules = [ 'core', 'io', 'xml', 'app', 'http', 'comm', 'timex', 'http', 'statistics', 'time', 'diameter', 'diameter_comm' ]; for module in modules: anna_libs.append ("anna_" + module) module = module.replace("_", ".") + kk = pwd.replace (pPath, ("source/" + module + "/")) anna_libpaths.append (pwd.replace (pPath, ("source/" + module + "/"))) +# dynamic lib: +anna_libs.append ("anna_dynamicLauncherProcedure") +dynamic_libpath = os.path.join (pwd, "../../../../dynamic/launcher/default/debug") +anna_libpaths.append (dynamic_libpath) + 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") +dynamic_include = os.path.join (pwd, "../../../../dynamic/launcher/default/") +localEnv.Append (CPPPATH = [current_directory, testing_include, dynamic_include]) + +result = localEnv.Program (pName, Glob ('*.cpp') + Glob ('testing/*.cpp')) Return ('result')