- os.chdir(SRC_NAME)
- if not os.path.exists(SRC_NAME + '/libwksxmppxep.so') :
- LIBSTROPHE_BASE=base_dir + '/extlibs/libstrophe/libstrophe'
- foo=commands.getoutput('make LIBSTROPHE_BASE=' + LIBSTROPHE_BASE + ' libraries')
- #print foo
- env.PrependUnique(CPPPATH = [INC_PATH], RALIBS = ['wksxmppxep', 'm', 'crypto'], RALIBPATH = [LIB_PATH], RARPATH = [LIB_PATH])
+ if not env.GetOption('clean'):
+ print('Building with ' + SRC_NAME)
+ os.chdir(SRC_NAME)
+ if not os.path.exists('libwksxmppxep.so') :
+ LIBSTROPHE_BASE=base_dir + '/extlibs/libstrophe/libstrophe'
+ foo=subprocess.getoutput('make LIBSTROPHE_BASE=' + LIBSTROPHE_BASE + ' libraries')
+ print(foo)
+ if not os.path.exists('libwksxmppxep.so') :
+ print('Building with ' + SRC_NAME + ' failed.')
+ Exit(2)
+ else:
+ foo = subprocess.getoutput('cp libwksxmppxep.so ' + env.get('BUILD_DIR'))
+ print(foo)
+ foo = subprocess.getoutput('cp libwksxmppxep.a ' + env.get('BUILD_DIR'))
+ print(foo)
+
+ print('Building with ' + SRC_NAME + ' Completely.')
+
+ env.PrependUnique(CPPPATH = [INC_PATH], RALIBS = WJSXMPPXEP_LIBS, RALIBPATH = [LIB_PATH], RARPATH = [LIB_PATH])
+ env.AppendUnique(LIBS = WJSXMPPXEP_LIBS, LIBPATH = [LIB_PATH])
+ env.AppendUnique(LIBS = ['boost_system', 'boost_thread'])