1 # Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA 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
20 # Author : Nicolas REJNERI
23 top_srcdir=@top_srcdir@
26 VPATH=.:@srcdir@:@top_srcdir@/idl
30 # small trick for Mandrake-10.1: PyQt 3.13 does not support Qt 3.3.3
31 ifeq ($(QT_VERS),Qt_3_3_3)
35 ifeq ($(QT_VERS),Qt_3_3_4)
40 SIP_FLAGS = -t WS_X11 -t $(QT_VERS) $(PYQT_SIPFLAGS) -s ".cc" -c . -I $(PYQT_SIPS)
43 ifeq ($(SIP_VERS),v4_old)
44 SIP_SRC = sipSalomePyQtGUIcmodule.cc
45 SIP_FILES = SALOME_PYQT_GUI.sip
47 ifeq ($(SIP_VERS),v4_new)
48 SIP_SRC = sipSalomePyQtGUIcmodule.cc
49 SIP_FILES = SALOME_PYQT_GUI.sip
51 SIP_SRC = SalomePyQtGUIcmodule.cc
52 SIP_FILES = SALOME_PYQT_GUI.sip
56 ######################
59 EXPORT_HEADERS = SALOME_PYQT_GUI.h \
60 SALOME_PYQT_PyInterp.h \
64 LIB = libSalomePyQtGUI.la
67 LIB_SRC = SALOME_PYQT_PyInterp.cxx \
68 SALOME_PYQT_Module.cxx \
72 LIB_MOC = SALOME_PYQT_Module.h
74 LIB_CLIENT_IDL = SALOME_Exception.idl \
75 SALOME_GenericObj.idl \
76 SALOME_ContainerManager.idl \
79 CPPFLAGS += $(QT_INCLUDES) $(SIP_INCLUDES) $(PYTHON_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES) $(BOOST_CPPFLAGS) -DHAVE_CONFIG_H $(KERNEL_CXXFLAGS) -D__CALL_OLD_METHODS__
81 LIBS += $(PYTHON_LIBS) $(SIP_LIBS) $(PYQT_LIBS) $(VTK_LIBS) $(OGL_LIBS)
82 LDFLAGS += -lPyInterp -lSalomeApp
84 ##################################
86 # Custom build step: generate C++ wrapping according to $(SIP_FILES)
88 $(SIP_SRC): $(SIP_FILES)
89 $(SIP) $(SIP_FLAGS) $<
94 ###################################