From ecff56962f93be883200a57a4694d5118bb0dadf Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 19 Apr 2021 16:29:13 +0200 Subject: [PATCH] On ajoute YACS a salome2810 --- src/Session/SALOME_Session_Server.cxx | 4 ++++ src/Session/salome2810.cxx | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Session/SALOME_Session_Server.cxx b/src/Session/SALOME_Session_Server.cxx index fc1db2ac1..621fc466c 100644 --- a/src/Session/SALOME_Session_Server.cxx +++ b/src/Session/SALOME_Session_Server.cxx @@ -33,6 +33,7 @@ #include #include #include +#include "KernelBasis.hxx" #include "Session_Session_i.hxx" #include "Session_ServerCheck.hxx" @@ -383,6 +384,7 @@ int AbstractGUIAppMain(int argc, char **argv); class GUIAppOldStyle { public: + static constexpr bool SSL_MODE = false; using NamingServiceImplementation = OldStyleNS; void connectToNSIfNeeded(CORBA::ORB_ptr orb) { _NS.reset(new SALOME_NamingService(orb)); } void shutdownCORBAStufIfNeeded(bool shutdownAll, CORBA::ORB_ptr orb); @@ -396,6 +398,7 @@ private: class GUIAppNewStyle { public: + static constexpr bool SSL_MODE = true; using NamingServiceImplementation = NewStyleNS; void connectToNSIfNeeded(CORBA::ORB_ptr orb) { /*! nothing */ } void shutdownCORBAStufIfNeeded(bool shutdownAll, CORBA::ORB_ptr orb) { /*! nothing */ } @@ -451,6 +454,7 @@ template int AbstractGUIAppMain(int argc, char **argv) { using NamingServiceImplementation = typename GUI_APP_STYLE::NamingServiceImplementation; + setSSLMode(GUI_APP_STYLE::SSL_MODE); GUI_APP_STYLE self; // Set-up application settings configuration (as for QSettings) // Note: these are default settings which can be customized (see below) diff --git a/src/Session/salome2810.cxx b/src/Session/salome2810.cxx index 10b0cf2f4..ec9f80443 100644 --- a/src/Session/salome2810.cxx +++ b/src/Session/salome2810.cxx @@ -28,8 +28,8 @@ int main(int argc, char *argv[]) constexpr char MAIN_PROGRAM[] = "SALOME_Session_Server_No_Server"; constexpr char NO_SERVER_ENV_VAR[] = "SALOME_EMB_SERVANT"; #ifndef WIN32 - const char *MODULES[]={"SHAPERSTUDY","GEOM","SMESH","HYBRIDPLUGIN","GHS3DPLUGIN","BLSURFPLUGIN","GMSHPLUGIN","HEXABLOCKPLUGIN","HEXOTICPLUGIN","GHS3DPRLPLUGIN","NETGENPLUGIN"}; - const char *MODULES_PATH[]={"GUI","SHAPER","SHAPERSTUDY","GEOM","SMESH","HYBRIDPLUGIN","GHS3DPLUGIN","BLSURFPLUGIN","GMSHPLUGIN","HEXABLOCKPLUGIN","GHS3DPRLPLUGIN","NETGENPLUGIN"}; + const char *MODULES[]={"SHAPERSTUDY","GEOM","SMESH","YACS","HYBRIDPLUGIN","GHS3DPLUGIN","BLSURFPLUGIN","GMSHPLUGIN","HEXABLOCKPLUGIN","HEXOTICPLUGIN","GHS3DPRLPLUGIN","NETGENPLUGIN"}; + const char *MODULES_PATH[]={"GUI","SHAPER","SHAPERSTUDY","GEOM","SMESH","YACS","HYBRIDPLUGIN","GHS3DPLUGIN","BLSURFPLUGIN","GMSHPLUGIN","HEXABLOCKPLUGIN","GHS3DPRLPLUGIN","NETGENPLUGIN"}; #else const char *MODULES[]={"SHAPERSTUDY","GEOM","SMESH","HYBRIDPLUGIN","BLSURFPLUGIN","GMSHPLUGIN","HEXABLOCKPLUGIN","HEXOTICPLUGIN","NETGENPLUGIN"}; const char *MODULES_PATH[]={"GUI","SHAPER","SHAPERSTUDY","GEOM","SMESH","HYBRIDPLUGIN","BLSURFPLUGIN","GMSHPLUGIN","HEXABLOCKPLUGIN","NETGENPLUGIN"}; @@ -84,7 +84,7 @@ int main(int argc, char *argv[]) args << catalogs.join("::"); args << ")"; args << "--with" << "SALOMEDS" << "(" << ")" << "--with" << "Container" << "(" << "FactoryServer" << ")" << "--with" << "SalomeAppEngine" << "(" << ")" << "CPP"; - args << QString("--resources=%1").arg(resfile) << "--modules" << "(SHAPER:GEOM:SMESH)"; + args << QString("--resources=%1").arg(resfile) << "--modules" << "(SHAPER:GEOM:SMESH:YACS)"; if( pe.contains("VERBOSE") ) { std::cout << "Overloaded env var :" << std::endl; -- 2.39.2