#edit-mode: -*- python -*- #coding:gbk WORKROOT('../../../') #platform, if not write PLATFORM('xxx') in BCLOUD file, default is 'redhat4u3' #PLATFORM('centos4u3') #gcc version, default 'gcc' #COMPILER('gcc482') #Preprocessor flags. #CPPFLAGS(r'-D_GNU_SOURCE -D__STDC_LIMIT_MACROS') #CPPFLAGS(r'-DVERSION=\"%s\"' % SVN_LAST_CHANGED_REV()) #C flags. #CFLAGS('-g -pipe -W -Wall -fPIC') #C++ flags. CXXFLAGS('-W -Wall -fsigned-char -fPIC -O2 -ftemplate-depth-128') #IDL flags. #IDLFLAGS('--compack') #UBRPC flags. #UBRPCFLAGS('--compack') #-I path INCPATHS('. ./include $OUT/include') #INCPATHS('../../../') #libs which need to link with #LIBS('$OUT/lib/libutils.a') #LIBS('$OUT/so/libutils.so') #link flags #LDFLAGS('-lpthread -lcrypto -lrt') #CONFIGS("lib2-64/ullib@base") user_sources=GLOB("*.cpp") #release headers HEADERS('*.h', '$INC/bsl/utils') #HEADERS('*.hpp', '$INC') #HEADERS('include/*.h', '$INC') #HEADERS('include/*.hpp', '$INC') #release files except headers #OUTPUT('conf', '$OUT') #bin #Application('utils', Sources(user_sources)) #UT #UTApplication('utils', Sources(user_sources), UTArgs(''), UTOnServer(False)) #.a StaticLibrary('bsl_utils', Sources(user_sources)) #StaticLibrary('utils', PreBuilt(True)) #.so #SharedLibrary('utils', Sources(user_sources)) #SharedLibrary('utils', PreBuilt(True)) #sub directory #Directory('demo')