]> SALOME platform Git repositories - modules/gui.git/blob - src/SALOME_PYQT/SALOME_PYQT_GUILight/Makefile.am
Salome HOME
c2d15f38d7c7321ae8c6045ed7edb2ba2d52fb58
[modules/gui.git] / src / SALOME_PYQT / SALOME_PYQT_GUILight / Makefile.am
1 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
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.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 #  File   : Makefile.am
21 #  Author : Roman NIKOLAEV Open CASCADE S.A.S. (roman.nikolaev@opencascade.com)
22 #
23 include $(top_srcdir)/adm_local/unix/make_common_starter.am
24
25 # Library target
26 lib_LTLIBRARIES = libSalomePyQtGUILight.la
27
28
29 # extra source files (generated by sip)
30 SIP_SRC   = sipAPISalomePyQtGUILight.h       \
31             sipSalomePyQtGUILightcmodule.cc
32
33 # Sip definition file
34 SIP_FILES = SALOME_PYQT_GUILight.sip
35
36 # extra dist files
37 EXTRA_DIST += $(SIP_FILES)
38
39
40 # extra clean files
41 CLEANFILES = $(SIP_SRC)
42
43 # moc files (generated my moc)
44 MOC_FILES = \
45         SALOME_PYQT_PyModule_moc.cxx \
46         SALOME_PYQT_ModuleLight_moc.cxx \
47         SALOME_PYQT_DataModelLight_moc.cxx
48
49 # exported header files
50 salomeinclude_HEADERS = \
51         SALOME_PYQT_GUILight.h \
52         SALOME_PYQT_ModuleLight.h \
53         SALOME_PYQT_DataObjectLight.h \
54         SALOME_PYQT_DataModelLight.h \
55         SALOME_PYQT_PyInterp.h
56
57 # library sources
58 dist_libSalomePyQtGUILight_la_SOURCES = \
59         SALOME_PYQT_PyModule.h \
60         SALOME_PYQT_PyModule.cxx \
61         SALOME_PYQT_ModuleLight.cxx \
62         SALOME_PYQT_DataObjectLight.cxx \
63         SALOME_PYQT_DataModelLight.cxx  \
64         SALOME_PYQT_PyInterp.cxx
65
66 nodist_libSalomePyQtGUILight_la_SOURCES = $(MOC_FILES) $(SIP_SRC)
67
68
69 libSalomePyQtGUILight_la_CPPFLAGS =  $(QT_INCLUDES) $(SIP_INCLUDES) $(PYTHON_INCLUDES)  \
70         $(CAS_CPPFLAGS) $(VTK_INCLUDES) $(OGL_INCLUDES) $(BOOST_CPPFLAGS)               \
71         -DHAVE_CONFIG_H @KERNEL_CXXFLAGS@ -DCALL_OLD_METHODS                            \
72         -I. -I$(srcdir)/../../PyInterp -I$(srcdir)/../../PyConsole              \
73         -I$(srcdir)/../../SUIT -I$(srcdir)/../../Qtx -I$(srcdir)/../../LightApp         \
74         -I$(srcdir)/../../Plot2d -I$(srcdir)/../../OCCViewer                            \
75         -I$(srcdir)/../../CAM -I$(srcdir)/../../STD                                     \
76         -I$(srcdir)/../../SUITApp                                                       \
77         -I$(srcdir)/../../CAM -I$(srcdir)/../../STD
78
79 if GUI_ENABLE_CORBA
80 libSalomePyQtGUILight_la_CPPFLAGS += -I$(srcdir)/../../SalomeApp \
81                                      @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
82 endif
83
84
85 if !GUI_ENABLE_CORBA
86   libSalomePyQtGUILight_la_CPPFLAGS += -DGUI_DISABLE_CORBA
87 endif
88
89 # linkage flags
90 libSalomePyQtGUILight_la_LIBADD = $(PYTHON_LIBS) $(SIP_LIBS) $(PYQT_LIBS) $(VTK_LIBS)  \
91                                   $(OGL_LIBS) ../../PyInterp/libPyInterp.la ../../LightApp/libLightApp.la
92
93 if GUI_ENABLE_CORBA
94   libSalomePyQtGUILight_la_LIBADD +=../../SalomeApp/libSalomeApp.la $(KERNEL_LDFLAGS) -lSalomeContainer
95 endif
96
97
98
99 # Custom build step: generate C++ wrapping according to $(SIP_FILES)
100 $(SIP_SRC): $(SIP_FILES)
101         $(SIP) $(PYQT_SIPFLAGS) $<
102
103 # extra dependency (SALOME_PYQT_Module.cxx depends on header files generated by sip)
104 $(dist_libSalomePyQtGUILight_la_SOURCES): $(SIP_SRC)
105