X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2FSConscript;h=04ad2a517d44bb1f97a2c756df313ee2cff98fcc;hb=d723d5bf571eb48c641b092058eaa38bb6c4fcc8;hp=e20575fd884f1d20ff6f36d117ec69b29bed9f5b;hpb=10acee039e75b859b11fd809ce22fb2aecce47e2;p=anna.git diff --git a/example/diameter/launcher/SConscript b/example/diameter/launcher/SConscript index e20575f..04ad2a5 100644 --- a/example/diameter/launcher/SConscript +++ b/example/diameter/launcher/SConscript @@ -1,3 +1,4 @@ +import os Import ('env') # Process ################################################################# @@ -10,29 +11,42 @@ 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' ]; + +modules = [ 'core', 'io', 'xml', 'app', 'http', 'comm', 'timex', 'http', 'statistics', 'time', 'diameter', 'diameter_comm', 'testing' ]; 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") +variant = env ['VARIANT'] +dynamic_libpath = os.path.join (pwd, "../../../../dynamic/launcher/default/" + variant) +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: +current_directory = Dir ('.').abspath +dynamic_include = os.path.join (pwd, "../../../../dynamic/launcher/default/") +localEnv.Append (CPPPATH = [current_directory, dynamic_include]) +result = localEnv.Program (pName, Glob ('*.cpp')) Return ('result')