1 # Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
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
20 # MED MEDMEM_SWIG : binding of C++ implementation and Python
22 include $(top_srcdir)/adm_local/unix/make_common_starter.am
24 salomepython_PYTHON = libMEDMEM_Swig.py
25 salomepyexec_LTLIBRARIES = _libMEDMEM_Swig.la
27 salomeinclude_HEADERS = \
30 MEDMEM_SWIG_Templates.hxx
33 SWIG_DEF = libMEDMEM_Swig.i dummy.i
35 dummy_wrap.cxx: libMEDMEM_Swig_wrap.cxx
36 sed -e 's/SwigValueWrapper< vector<FAMILY \* > >/vector<FAMILY \* >/g' libMEDMEM_Swig_wrap.cxx > toto
37 mv toto libMEDMEM_Swig_wrap.cxx
38 sed -e 's/SwigValueWrapper< vector<SUPPORT \* > const >/vector<SUPPORT \* >/g' libMEDMEM_Swig_wrap.cxx > toto
39 mv toto libMEDMEM_Swig_wrap.cxx
42 SWIG_DEF = libMEDMEM_Swig.i
45 SWIG_FLAGS = @SWIG_FLAGS@ -I$(srcdir)
47 dist__libMEDMEM_Swig_la_SOURCES = libMEDMEM_Swig.i
48 nodist__libMEDMEM_Swig_la_SOURCES = libMEDMEM_Swig_wrap.cxx
49 libMEDMEM_Swig.py: libMEDMEM_Swig_wrap.cxx
51 libMEDMEM_Swig_wrap.cxx: $(SWIG_DEF)
52 $(SWIG) $(SWIG_FLAGS) -o $@ $<
54 _libMEDMEM_Swig_la_CPPFLAGS = \
55 $(PYTHON_INCLUDES) $(MED3_INCLUDES) $(HDF5_INCLUDES) $(XDR_CPPFLAGS) @CXXTMPDPTHFLAGS@ \
56 -I$(srcdir)/../MEDMEM \
57 -I$(srcdir)/../INTERP_KERNEL \
58 -I$(srcdir)/../INTERP_KERNEL/Bases \
59 -I$(srcdir)/../INTERP_KERNEL/GaussPoints
61 _libMEDMEM_Swig_la_LDFLAGS = -module $(MED3_LIBS_C_ONLY) $(HDF5_LIBS) $(PYTHON_LIBS) $(XDR_LIBS) \
62 ../MEDMEM/libmedmem.la ../INTERP_KERNEL/libinterpkernel.la
64 CLEANFILES = libMEDMEM_Swig_wrap.cxx libMEDMEM_Swig.py
66 dist_salomescript_DATA = \
80 testGaussLocalization.py \
81 test_profil_MedFieldDriver.py \
83 testMedMemGeneral.py \
84 testMedMemCxxTests.py \
86 ensightMedEnsight_test.py \
87 medEnsightMed_test.py \
90 dist_salomescript_SCRIPTS = \
95 dist_salomepython_DATA = \
98 #TESTS = medMeshing_test.py medNumPy_test.py
99 #TESTS_ENVIRONMENT = $(PYTHON)
102 @for f in $(dist_salomescript_SCRIPTS) ; do \
103 chmod -f a+x $(DESTDIR)$(salomescriptdir)/$$f ; \