1 # Copyright (C) 2006-2008 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 include $(top_srcdir)/adm/unix/make_begin.am
25 lib_LTLIBRARIES = libYACSRuntimeSALOME.la
27 libYACSRuntimeSALOME_la_SOURCES = \
32 CORBANeutralConv.cxx \
40 NeutralPythonConv.cxx \
41 NeutralCORBAConv.cxx \
45 PythonNeutralConv.cxx \
49 SalomePythonNode.cxx \
50 SalomePythonComponent.cxx \
56 SALOMEDispatcher.cxx \
72 SessionCataLoader.cxx \
78 VisitorSaveSalomeSchema.cxx \
82 salomeinclude_HEADERS = \
83 CalStreamPort.hxx CORBAComponent.hxx CORBACORBAConv.hxx CORBACppConv.hxx \
84 CORBANeutralConv.hxx CORBANode.hxx CORBAPorts.hxx CORBAPythonConv.hxx \
85 CORBAXMLConv.hxx CppComponent.hxx CppContainer.hxx CppCORBAConv.hxx \
86 CppCppConv.hxx CppNeutralConv.hxx CppNode.hxx CppPorts.hxx \
87 CppPythonConv.hxx CppXMLConv.hxx NeutralCORBAConv.hxx NeutralCppConv.hxx \
88 NeutralPythonConv.hxx NeutralXMLConv.hxx OutNode.hxx PresetNode.hxx \
89 PresetPorts.hxx PyStdout.hxx PythonCORBAConv.hxx PythonCppConv.hxx \
90 PythonNeutralConv.hxx PythonNode.hxx PythonPorts.hxx PythonXMLConv.hxx \
91 RuntimeSALOME.hxx SalomeComponent.hxx SALOMEconfig.h SalomeContainer.hxx \
92 SALOMEDispatcher.hxx SalomeProc.hxx SalomePythonComponent.hxx SalomePythonNode.hxx \
93 SessionCataLoader.hxx StudyNodes.hxx StudyPorts.hxx TypeConversions.hxx \
94 VisitorSaveSalomeSchema.hxx XMLCORBAConv.hxx XMLCppConv.hxx XMLNeutralConv.hxx \
95 XMLNode.hxx XMLPorts.hxx XMLPythonConv.hxx PythonInitConv.hxx \
98 EXTRA_libYACSRuntimeSALOME_la_SOURCES = \
102 libYACSRuntimeSALOME_la_SOURCES += ../../idl/yacsguiSK.cc
103 SALOME_LIBS=-L$(KERNEL_ROOT_DIR)/lib$(LIB_LOCATION_SUFFIX)/salome -lSalomeLifeCycleCORBA
104 SALOME_INCL_PATH=-I$(KERNEL_ROOT_DIR)/include/salome
108 DSC_LIBS=-L$(KERNEL_ROOT_DIR)/lib$(LIB_LOCATION_SUFFIX)/salome -lSalomeDSCContainer
111 # --- build libYACSRuntimeSALOME library before swig libraries (problem with make -j)
113 BUILT_SOURCES=SALOMERuntimeWRAP.cxx libYACSRuntimeSALOME.la
115 libYACSRuntimeSALOME_la_LIBADD = \
116 $(DSC_LIBS) $(SALOME_LIBS) $(OMNIORB_LIBS) \
117 ../engine/libYACSlibEngine.la
122 $(OMNIORB_INCLUDES) \
123 -I$(OMNIORB_ROOT)/include/omniORB4/internal \
124 $(OMNIORB_CXXFLAGS) \
125 $(SALOME_INCL_PATH) \
126 -I$(srcdir)/../bases \
127 -I$(srcdir)/../engine \
131 ############################################################
133 salomepython_PYTHON = SALOMERuntime.py
134 salomepyexec_LTLIBRARIES = _SALOMERuntime.la
136 _SALOMERuntime_la_SOURCES = \
137 SALOMERuntimeWRAP.cxx
139 MYSWIG_FLAGS = -noexcept -I$(srcdir)/../bases -I$(srcdir)/../engine
141 SWIGINCLUDES= RuntimeSALOME.hxx SALOMEDispatcher.hxx SalomeProc.hxx PythonNode.hxx PythonPorts.hxx \
142 CORBANode.hxx CORBAPorts.hxx TypeConversions.hxx \
143 ../engine/pilot.i ../engine/engtypemaps.i
145 SALOMERuntimeWRAP.cxx: SALOMERuntime.i $(SWIGINCLUDES)
146 $(SWIG) $(SWIG_PYTHON_OPT) $(SWIG_PYTHON_INCLUDES) $(MYSWIG_FLAGS) -o $@ $(srcdir)/SALOMERuntime.i
148 _SALOMERuntime_la_CXXFLAGS = \
151 $(OMNIORB_INCLUDES) \
152 $(OMNIORB_CXXFLAGS) \
153 -I$(KERNEL_ROOT_DIR)/include/salome \
154 -I$(srcdir)/../bases \
155 -I$(srcdir)/../engine \
159 _SALOMERuntime_la_LDFLAGS = -module
161 _SALOMERuntime_la_LIBADD = libYACSRuntimeSALOME.la
163 EXTRA_DIST = SALOMERuntime.i
165 include $(top_srcdir)/adm/unix/make_end.am