1# Copyright (C) 2011 Codership Oy <info@codership.com> 2 3Import('env', 'libboost_program_options') 4 5garb_env = env.Clone() 6 7# Include paths 8garb_env.Append(CPPPATH = Split(''' 9 # 10 #/common 11 #/galerautils/src 12 #/gcs/src 13 ''')) 14 15garb_env.Append(CPPFLAGS = ' -DGCS_FOR_GARB') 16 17garb_env.Prepend(LIBS=File('#/galerautils/src/libgalerautils.a')) 18garb_env.Prepend(LIBS=File('#/galerautils/src/libgalerautils++.a')) 19garb_env.Prepend(LIBS=File('#/gcomm/src/libgcomm.a')) 20garb_env.Prepend(LIBS=File('#/gcs/src/libgcs4garb.a')) 21 22if libboost_program_options: 23 garb_env.Append(LIBS=libboost_program_options) 24 25# special environment for garb_config.cpp 26conf_env = garb_env.Clone() 27Import('GALERA_VER', 'GALERA_REV') 28conf_env.Append(CPPFLAGS = ' -DGALERA_VER=\\"' + GALERA_VER + '\\"') 29conf_env.Append(CPPFLAGS = ' -DGALERA_REV=\\"' + GALERA_REV + '\\"') 30 31garb = garb_env.Program(target = 'garbd', 32 source = Split(''' 33 garb_logger.cpp 34 garb_gcs.cpp 35 garb_recv_loop.cpp 36 garb_main.cpp 37 ''') 38 + 39 conf_env.SharedObject(['garb_config.cpp']) 40 ) 41