Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[modules/gui.git] / src / LightApp / Makefile.in
1 #  Copyright (C) 2005  CEA/DEN, EDF R&D, OPEN CASCADE, PRINCIPIA R&D
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 #  File   : Makefile.in
20 #  Author : OCC team (OCN)
21 #  Module : LightApp
22 #  $Header$
23
24 top_srcdir=@top_srcdir@
25 top_builddir=../..
26 srcdir=@srcdir@
27 VPATH=.:@srcdir@:@srcdir@/resources
28
29
30 @COMMENCE@
31
32 # header files 
33 EXPORT_HEADERS= LightApp.h \
34                 LightApp_AboutDlg.h \
35                 LightApp_Application.h \
36                 LightApp_DataModel.h \
37                 LightApp_DataObject.h \
38                 LightApp_DataOwner.h \
39                 LightApp_DataSubOwner.h \
40                 LightApp_Dialog.h \
41                 LightApp_Displayer.h \
42                 LightApp_Driver.h \
43                 LightApp_HDFDriver.h \
44                 LightApp_Module.h \
45                 LightApp_ModuleDlg.h \
46                 LightApp_NameDlg.h \
47                 LightApp_OBFilter.h \
48                 LightApp_OBSelector.h \
49                 LightApp_Operation.h \
50                 LightApp_Selection.h \
51                 LightApp_SelectionMgr.h \
52                 LightApp_ShowHideOp.h \
53                 LightApp_Study.h \
54                 LightApp_SwitchOp.h \
55                 LightApp_Preferences.h \
56                 LightApp_PreferencesDlg.h \
57                 LightApp_RootObject.h \
58                 LightApp_UpdateFlags.h \
59                 LightApp_WidgetContainer.h
60
61 ifneq ($(DISABLE_VTKVIEWER),yes)
62 ifneq ($(DISABLE_SALOMEOBJECT),yes)
63   EXPORT_HEADERS+= LightApp_VTKSelector.h
64 endif
65 endif
66 ifneq ($(DISABLE_OCCVIEWER),yes)
67   EXPORT_HEADERS+= LightApp_OCCSelector.h
68 endif
69 ifneq ($(DISABLE_GLVIEWER),yes)
70   EXPORT_HEADERS+= LightApp_GLSelector.h
71 endif
72
73 # .po files to transform in .qm
74 PO_FILES = LightApp_images.po \
75            LightApp_msg_en.po
76
77 # Libraries targets
78 LIB = libLightApp.la
79
80 LIB_SRC= LightApp_AboutDlg.cxx \
81          LightApp_Application.cxx \
82          LightApp_DataModel.cxx \
83          LightApp_DataObject.cxx \
84          LightApp_DataOwner.cxx \
85          LightApp_DataSubOwner.cxx \
86          LightApp_Dialog.cxx \
87          LightApp_Displayer.cxx \
88          LightApp_Driver.cxx \
89          LightApp_HDFDriver.cxx \
90          LightApp_Module.cxx \
91          LightApp_ModuleDlg.cxx \
92          LightApp_NameDlg.cxx \
93          LightApp_OBFilter.cxx \
94          LightApp_OBSelector.cxx \
95          LightApp_Operation.cxx \
96          LightApp_Selection.cxx \
97          LightApp_SelectionMgr.cxx \
98          LightApp_ShowHideOp.cxx \
99          LightApp_Study.cxx \
100          LightApp_SwitchOp.cxx \
101          LightApp_Preferences.cxx \
102          LightApp_PreferencesDlg.cxx \
103          LightApp_WidgetContainer.cxx
104
105 ifneq ($(DISABLE_VTKVIEWER),yes)
106 ifneq ($(DISABLE_SALOMEOBJECT),yes)
107   LIB_SRC+= LightApp_VTKSelector.cxx
108 endif
109 endif
110 ifneq ($(DISABLE_OCCVIEWER),yes)
111   LIB_SRC+= LightApp_OCCSelector.cxx
112 endif
113 ifneq ($(DISABLE_GLVIEWER),yes)
114   LIB_SRC+= LightApp_GLSelector.cxx
115 endif
116
117 LIB_MOC = LightApp_AboutDlg.h \
118           LightApp_Application.h \
119           LightApp_DataModel.h \
120           LightApp_Dialog.h \
121           LightApp_OBSelector.h \
122           LightApp_Operation.h \
123           LightApp_Module.h \
124           LightApp_ModuleDlg.h \
125           LightApp_NameDlg.h \
126           LightApp_SelectionMgr.h \
127           LightApp_ShowHideOp.h \
128           LightApp_Study.h \
129           LightApp_SwitchOp.h \
130           LightApp_Preferences.h \
131           LightApp_PreferencesDlg.h \
132           LightApp_WidgetContainer.h
133
134 ifneq ($(DISABLE_VTKVIEWER),yes)
135 ifneq ($(DISABLE_SALOMEOBJECT),yes)
136   LIB_MOC+= LightApp_VTKSelector.h
137 endif
138 endif
139 ifneq ($(DISABLE_OCCVIEWER),yes)
140   LIB_MOC+= LightApp_OCCSelector.h
141 endif
142 ifneq ($(DISABLE_GLVIEWER),yes)
143   LIB_MOC+= LightApp_GLSelector.h
144 endif
145
146 RESOURCES_FILES = icon_about.png \
147                   icon_applogo.png \
148                   icon_default.png \
149                   icon_module.png \
150                   icon_module_big.png \
151                   icon_select.png \
152                   LightApp.ini \
153                   LightApp.xml
154
155 CPPFLAGS+=$(PYTHON_INCLUDES) $(QT_INCLUDES) $(OCC_INCLUDES) \
156         $(HDF5_INCLUDES) $(KERNEL_CXXFLAGS)
157
158 ifneq ($(DISABLE_VTKVIEWER),yes)
159   CPPFLAGS+= $(VTK_INCLUDES)
160 else
161   CPPFLAGS+= -DDISABLE_VTKVIEWER
162 endif
163 ifneq ($(DISABLE_PLOT2DVIEWER),yes)
164   CPPFLAGS+= $(QWT_INCLUDES)
165 else
166   CPPFLAGS+= -DDISABLE_PLOT2DVIEWER
167 endif
168 ifeq ($(DISABLE_OCCVIEWER),yes)
169   CPPFLAGS+= -DDISABLE_OCCVIEWER
170 endif
171 ifneq ($(DISABLE_PYCONSOLE),yes)
172   CPPFLAGS+= $(PYTHON_INCLUDES)
173 else
174   CPPFLAGS+= -DDISABLE_PYCONSOLE
175 endif
176 ifeq ($(DISABLE_GLVIEWER),yes)
177   CPPFLAGS+= -DDISABLE_GLVIEWER
178 endif
179 ifeq ($(DISABLE_SUPERVGRAPHVIEWER),yes)
180   CPPFLAGS+= -DDISABLE_SUPERVGRAPHVIEWER
181 endif
182 ifeq ($(DISABLE_SALOMEOBJECT),yes)
183   CPPFLAGS+= -DDISABLE_SALOMEOBJECT
184 endif
185
186 LDFLAGS+=$(QT_MT_LIBS)
187 ifneq ($(DISABLE_PYCONSOLE),yes)
188   LDFLAGS+= $(PYTHON_LIBS)
189 endif
190
191 LIBS+= -lsuit -lstd -lCAM -lObjBrowser -lLogWindow $(CAS_KERNEL) -lSalomePrs \
192         $(HDF5_LIBS) $(KERNEL_LDFLAGS) -lSalomeHDFPersist
193
194 ifneq ($(DISABLE_SALOMEOBJECT),yes)
195   LIBS+= -lSalomeObject
196 endif
197 ifneq ($(DISABLE_VTKVIEWER),yes)
198   LIBS+= -lVTKViewer
199 ifneq ($(DISABLE_SALOMEOBJECT),yes)
200   LIBS+= -lSVTK
201 endif
202 endif
203 ifneq ($(DISABLE_OCCVIEWER),yes)
204   LIBS+= -lOCCViewer
205 ifneq ($(DISABLE_SALOMEOBJECT),yes)
206   LIBS+= -lSOCC
207 endif
208 endif
209 ifneq ($(DISABLE_GLVIEWER),yes)
210   LIBS+= -lGLViewer
211 endif
212 ifneq ($(DISABLE_PLOT2DVIEWER),yes)
213   LIBS+= -lPlot2d
214 ifneq ($(DISABLE_SALOMEOBJECT),yes)
215   LIBS+= -lSPlot2d
216 endif
217 endif
218 ifneq ($(DISABLE_PYCONSOLE),yes)
219   LIBS+= -lPyInterp -lPythonConsole
220 endif
221 ifneq ($(DISABLE_SUPERVGRAPHVIEWER),yes)
222   LIBS+= -lSUPERVGraph
223 endif
224
225 @CONCLUDE@