-# Copyright (C) 2009-2014 EDF R&D
+# Copyright (C) 2009-2019 EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
try:
from string import Template
except:
- from compat import Template,set
+ from module_generator.compat import Template,set
cxxCompo="""
#include "${component}.hxx"
#include <pthread.h>
#include <execinfo.h>
+#define BUILD_EXE ${exe}
+
typedef void (*sighandler_t)(int);
sighandler_t setsig(int sig, sighandler_t handler)
{
if(getenv ("DEBUGGER"))
{
std::stringstream exec;
-#if ${exe}
+#if BUILD_EXE
exec << "$$DEBUGGER " << "${exe_path} " << getpid() << "&";
#else
exec << "$$DEBUGGER SALOME_Container " << getpid() << "&";
const char *interfaceName)
: Superv_Component_i(orb, poa, contId, instanceName, interfaceName)
{
-#if ${exe}
+#if BUILD_EXE
setsig(SIGSEGV,&THandler);
set_terminate(&terminateHandler);
set_unexpected(&unexpectedHandler);
const char *interfaceName)
: Superv_Component_i(orb, poa, container, instanceName, interfaceName)
{
-#if ${exe}
+#if BUILD_EXE
setsig(SIGSEGV,&THandler);
set_terminate(&terminateHandler);
set_unexpected(&unexpectedHandler);
void ${component}_i::destroy()
{
-#if ${exe}
+#if BUILD_EXE
_remove_ref();
if(!CORBA::is_nil(_orb))
_orb->shutdown(0);
catch (...)
{
std::cerr << "unknown exception" << std::endl;
-#if ${exe}
+#if BUILD_EXE
_exit(-1);
#endif
//cp_fin(component,CP_ARRET);
$${KERNEL_SalomeIDLKernel}
$${KERNEL_OpUtil}
$${KERNEL_SalomeContainer}
- $${KERNEL_SalomeDSCContainer}
- $${KERNEL_SalomeDSCSuperv}
- $${KERNEL_SalomeDatastream}
- $${KERNEL_SalomeDSCSupervBasic}
- $${KERNEL_CalciumC}
SalomeIDL${module}
${libs}
)