]> SALOME platform Git repositories - modules/gui.git/blob - src/SALOME_PYQT/SALOME_PYQT_GUILight/Makefile.am
Salome HOME
Merge from V6_main_20120808 08Aug12
[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_ModuleLight_moc.cxx \
46         SALOME_PYQT_DataModelLight_moc.cxx 
47
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_ModuleLight.cxx \
60         SALOME_PYQT_DataObjectLight.cxx \
61         SALOME_PYQT_DataModelLight.cxx  \
62         SALOME_PYQT_PyInterp.cxx
63
64 nodist_libSalomePyQtGUILight_la_SOURCES = $(MOC_FILES) $(SIP_SRC)
65
66
67 libSalomePyQtGUILight_la_CPPFLAGS =  $(QT_INCLUDES) $(SIP_INCLUDES) $(PYTHON_INCLUDES)  \
68         $(CAS_CPPFLAGS) $(VTK_INCLUDES) $(OGL_INCLUDES) $(BOOST_CPPFLAGS)               \
69         -DHAVE_CONFIG_H @KERNEL_CXXFLAGS@ -DCALL_OLD_METHODS                            \
70         -I. -I$(srcdir)/../../PyInterp -I$(srcdir)/../../PyConsole              \
71         -I$(srcdir)/../../SUIT -I$(srcdir)/../../Qtx -I$(srcdir)/../../LightApp         \
72         -I$(srcdir)/../../Plot2d -I$(srcdir)/../../OCCViewer                            \
73         -I$(srcdir)/../../CAM -I$(srcdir)/../../STD                                     \
74         -I$(srcdir)/../../SUITApp                                                       \
75         -I$(srcdir)/../../CAM -I$(srcdir)/../../STD
76
77 if GUI_ENABLE_CORBA
78 libSalomePyQtGUILight_la_CPPFLAGS += -I$(srcdir)/../../SalomeApp \
79                                      @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
80 endif
81                         
82
83 if !GUI_ENABLE_CORBA
84   libSalomePyQtGUILight_la_CPPFLAGS += -DGUI_DISABLE_CORBA
85 endif
86
87 # linkage flags
88 libSalomePyQtGUILight_la_LIBADD = $(PYTHON_LIBS) $(SIP_LIBS) $(PYQT_LIBS) $(VTK_LIBS)  \
89                                   $(OGL_LIBS) ../../PyInterp/libPyInterp.la ../../LightApp/libLightApp.la
90
91 if GUI_ENABLE_CORBA
92   libSalomePyQtGUILight_la_LIBADD +=../../SalomeApp/libSalomeApp.la $(KERNEL_LDFLAGS) -lSalomeContainer
93 endif
94                         
95
96
97 # Custom build step: generate C++ wrapping according to $(SIP_FILES)
98 $(SIP_SRC): $(SIP_FILES)
99         $(SIP) $(PYQT_SIPFLAGS) $<
100
101 # extra dependency (SALOME_PYQT_Module.cxx depends on header files generated by sip)
102 $(dist_libSalomePyQtGUILight_la_SOURCES): $(SIP_SRC)
103