text
stringlengths
0
2.2M
iobjs += "./ApplicationInterface.o \\\n";
#endif
#ifdef INC_WEBSVC
WsUtil wsu;
logger << "started generating web-service code" <<std::endl;
std::vector<WsDetails> allwsdets1 = wsu.getWsDetails(webdirs1, serverRootDirectory);
std::copy(allwsdets1.begin(), allwsdets1.end(), back_inserter(allwsdets));
ret = wsu.generateAllWSDL(allwsdets, respath, ref, clsstrucMaps);
AfcUtil::writeTofile(rtdcfpath+"WsInterface.cpp",ret,true);
#ifdef BUILD_AUTOCONF
confsrcFiles += "../WsInterface.cpp ";
#else
confsrcFiles += "WsInterface.cpp ";
#endif
logger << "done generating web-service code" <<std::endl;
iobjs += "./WsInterface.o \\\n";
#endif
cntxt["RUNTIME_COMP_POBJS"] = iobjs;
cntxt["RUNTIME_COMP_PDOBJS"] = ipdobjs;
//ret = TemplateEngine::evaluate(rtdcfpath+"subdir.mk.template",cntxt);
//AfcUtil::writeTofile(rtdcfpath+"subdir.mk",ret,true);
cntxt.clear();
/*if(ipdobjs=="")
cntxt["TARGET_LIB"] = "libinter";
else
cntxt["TARGET_LIB"] = "all";
cntxt["Dynamic_Public_Folder_Copy"] = rundyncontent;
std::string cont = TemplateEngine::evaluate(respath+"/rundyn_template.sh", cntxt);
AfcUtil::writeTofile(respath+"/rundyn.sh", cont, true);
cntxt.clear();
cntxt["TARGET_LIB"] = "libdinter";
cntxt["Dynamic_Public_Folder_Copy"] = rundyncontent;
cont = TemplateEngine::evaluate(respath+"/rundyn_template.sh", cntxt);
AfcUtil::writeTofile(respath+"/rundyn_dinter.sh", cont, true);*/
//#ifdef BUILT_WITH_CONFGURE == 1
cntxt.clear();
cntxt["INTER_DINTER_LIBRARIES"] = libs;
cntxt["INTER_DINTER_INCLUDES"] = ilibs;
cntxt["INTER_SOURCES"] = confsrcFiles;
cntxt["DINTER_SOURCES"] = confsrcFilesDinter;
std::string mkfileloc = rtdcfpath+"/autotools/Makefile.am.template";
std::string mkfileamloc = rtdcfpath+"/autotools/Makefile.am";
#ifdef BUILD_AUTOCONF
ret = TemplateEngine::evaluate(mkfileloc,cntxt);
AfcUtil::writeTofile(mkfileamloc,ret,true);
cntxt.clear();
#endif
#ifdef BUILD_AUTOCONF
#ifdef INC_SDORM_SQL
cntxt["MOD_SDORM_SQL"] = "true";
#else
cntxt["MOD_SDORM_SQL"] = "false";
#endif
#ifdef INC_SDORM_MONGO
cntxt["MOD_SDORM_MONGO"] = "true";
#else
cntxt["MOD_SDORM_MONGO"] = "false";
#endif
#ifdef INC_SCRH
cntxt["MOD_SCRIPT"] = "true";
#else
cntxt["MOD_SCRIPT"] = "false";
#endif
#ifdef PQINCPATH
if(PQINCPATH!="${PQINCPATH}")
cntxt["PQINCPATH"] = PQINCPATH;
#else
cntxt["PQINCPATH"] = " ";
#endif
#else
#ifdef INC_SDORM_SQL
cntxt["MOD_SDORM_SQL"] = "1";
#else
cntxt["MOD_SDORM_SQL"] = "0";
#endif
#ifdef INC_SDORM_MONGO
cntxt["MOD_SDORM_MONGO"] = "1";
#else
cntxt["MOD_SDORM_MONGO"] = "0";
#endif
#ifdef INC_SCRH
cntxt["MOD_SCRIPT"] = "1";
#else
cntxt["MOD_SCRIPT"] = "0";
#endif
#endif
#ifdef BUILD_AUTOCONF
std::string cffileloc = rtdcfpath+"/autotools/configure.ac.template";
std::string cffileamloc = rtdcfpath+"/autotools/configure.ac";
#else
std::string cffileloc = rtdcfpath+"/CMakeLists.txt.template";
std::string cffileamloc = rtdcfpath+"/CMakeLists.txt";
#endif