1 # Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 # Author : Nicolas REJNERI
27 include $(top_srcdir)/adm_local/unix/make_common_starter.am
29 # extra source files (generated by sip)
30 SIP_SRC = sipAPISalomePyQt.h \
31 sipSalomePyQtSalomePyQt.cc \
32 sipSalomePyQtSALOME_Selection.cc \
33 sipSalomePyQtQtxAction.cc \
34 sipSalomePyQtQtxActionGroup.cc \
35 sipSalomePyQtQtxActionSet.cc \
36 sipSalomePyQtcmodule.cc
39 SIP_FILES = SalomePyQt.sip
42 EXTRA_DIST += $(SIP_FILES)
45 CLEANFILES = $(SIP_SRC)
47 # moc files (generated my moc)
48 MOC_FILES = SalomePyQt_moc.cxx
51 COMMON_CPP_FLAGS = $(QT_INCLUDES) $(QWT_INCLUDES) $(SIP_INCLUDES) $(PYTHON_INCLUDES) \
52 $(CAS_CPPFLAGS) $(VTK_INCLUDES) $(OGL_INCLUDES) $(BOOST_CPPFLAGS) \
53 -DHAVE_CONFIG_H @KERNEL_CXXFLAGS@ -I$(top_builddir)/salomeadn/unix \
54 -I$(srcdir) -I$(top_builddir)/idl \
55 -I$(srcdir)/../../SUIT -I$(srcdir)/../../CAM -I$(srcdir)/../../STD \
56 -I$(srcdir)/../../Qtx -I$(srcdir)/../../Event \
57 -I$(srcdir)/../../LogWindow \
58 -I$(srcdir)/../../VTKViewer \
59 -I$(srcdir)/../../OCCViewer -I$(srcdir)/../../Plot2d \
60 -I$(srcdir)/../SALOME_PYQT_GUILight -I$(srcdir)/../../PyInterp \
61 -I$(srcdir)/../../LightApp -I$(srcdir)/../../ObjBrowser \
62 -I$(srcdir)/../../OBJECT
65 COMMON_LIBS = $(PYTHON_LIBS) $(SIP_LIBS) $(PYQT_LIBS) $(VTK_LIBS) $(QWT_LIBS) \
66 $(OGL_LIBS) ../../SUIT/libsuit.la ../../CAM/libCAM.la ../../STD/libstd.la \
67 ../../Qtx/libqtx.la ../../Event/libEvent.la \
68 ../../LogWindow/libLogWindow.la \
69 ../../VTKViewer/libVTKViewer.la \
70 ../SALOME_PYQT_GUILight/libSalomePyQtGUILight.la ../../OCCViewer/libOCCViewer.la \
71 ../../Plot2d/libPlot2d.la
74 lib_LTLIBRARIES = libSalomePyQt.la
76 # library sources / rules
77 dist_libSalomePyQt_la_SOURCES = SalomePyQt.cxx
78 nodist_libSalomePyQt_la_SOURCES = $(MOC_FILES) $(SIP_SRC)
79 libSalomePyQt_la_CPPFLAGS = $(COMMON_CPP_FLAGS)
80 libSalomePyQt_la_LIBADD = $(COMMON_LIBS)
82 # custom build step: generate C++ wrapping according to $(SIP_FILES)
83 $(SIP_SRC): $(SIP_FILES)
84 $(SIP) $(PYQT_SIPFLAGS) $<
86 # custom install step: create symbolic link
88 (cd $(DESTDIR)$(libdir); ln -sf libSalomePyQt.so SalomePyQt.so)
90 # custom uninstall step: remove symbolic link
92 rm -f $(DESTDIR)$(libdir)/SalomePyQt.so