]> SALOME platform Git repositories - modules/gui.git/blob - src/LightApp/Makefile.am
Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/gui.git] / src / LightApp / Makefile.am
1 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
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.
10 #
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.
15 #
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
19 #
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22
23 #  File   : Makefile.in
24 #  Author : OCC team (OCN)
25 #  Module : LightApp
26 #  $Header$
27
28 include $(top_srcdir)/adm_local/unix/make_common_starter.am
29
30 EXTRA_DIST += images
31
32 QRC_FILES = qrc_LightApp.cxx
33
34 lib_LTLIBRARIES = libLightApp.la
35
36 salomeinclude_HEADERS =                 \
37         LightApp.h                      \
38         LightApp_AboutDlg.h             \
39         LightApp_Application.h          \
40         LightApp_DataModel.h            \
41         LightApp_DataObject.h           \
42         LightApp_DataOwner.h            \
43         LightApp_DataSubOwner.h         \
44         LightApp_Dialog.h               \
45         LightApp_Displayer.h            \
46         LightApp_Driver.h               \
47         LightApp_EventFilter.h          \
48         LightApp_HDFDriver.h            \
49         LightApp_Module.h               \
50         LightApp_ModuleAction.h         \
51         LightApp_ModuleDlg.h            \
52         LightApp_NameDlg.h              \
53         LightApp_OBSelector.h           \
54         LightApp_Operation.h            \
55         LightApp_Selection.h            \
56         LightApp_SelectionMgr.h         \
57         LightApp_ShowHideOp.h           \
58         LightApp_Study.h                \
59         LightApp_SwitchOp.h             \
60         LightApp_Preferences.h          \
61         LightApp_PreferencesDlg.h       \
62         LightApp_UpdateFlags.h          \
63         LightApp_WgViewModel.h          \
64         LightApp_FullScreenHelper.h
65
66 if ENABLE_PYCONSOLE
67   salomeinclude_HEADERS += LightApp_PyInterp.h
68 endif
69
70 #       LightApp_OBFilter.h
71
72 if ENABLE_VTKVIEWER
73 if ENABLE_SALOMEOBJECT
74   salomeinclude_HEADERS += LightApp_VTKSelector.h
75 endif
76 endif
77 if ENABLE_OCCVIEWER
78   salomeinclude_HEADERS += LightApp_OCCSelector.h
79 endif
80 if ENABLE_GLVIEWER
81   salomeinclude_HEADERS += LightApp_GLSelector.h
82 endif
83 if ENABLE_PLOT2DVIEWER
84   salomeinclude_HEADERS += LightApp_Plot2dSelector.h
85 endif
86
87 dist_libLightApp_la_SOURCES =           \
88         LightApp_AboutDlg.cxx           \
89         LightApp_Application.cxx        \
90         LightApp_DataModel.cxx          \
91         LightApp_DataObject.cxx         \
92         LightApp_DataOwner.cxx          \
93         LightApp_DataSubOwner.cxx       \
94         LightApp_Dialog.cxx             \
95         LightApp_Displayer.cxx          \
96         LightApp_Driver.cxx             \
97         LightApp_EventFilter.cxx        \
98         LightApp_HDFDriver.cxx          \
99         LightApp_Module.cxx             \
100         LightApp_ModuleAction.cxx       \
101         LightApp_ModuleDlg.cxx          \
102         LightApp_NameDlg.cxx            \
103         LightApp_OBSelector.cxx         \
104         LightApp_Operation.cxx          \
105         LightApp_Selection.cxx          \
106         LightApp_SelectionMgr.cxx       \
107         LightApp_ShowHideOp.cxx         \
108         LightApp_Study.cxx              \
109         LightApp_SwitchOp.cxx           \
110         LightApp_Preferences.cxx        \
111         LightApp_PreferencesDlg.cxx     \
112         LightApp_WgViewModel.cxx        \
113         LightApp_FullScreenHelper.cxx
114
115 if ENABLE_PYCONSOLE
116   dist_libLightApp_la_SOURCES += LightApp_PyInterp.cxx
117 endif
118
119 #       LightApp_OBFilter.cxx
120
121 if ENABLE_VTKVIEWER
122 if ENABLE_SALOMEOBJECT
123   dist_libLightApp_la_SOURCES += LightApp_VTKSelector.cxx
124 endif
125 endif
126 if ENABLE_OCCVIEWER
127   dist_libLightApp_la_SOURCES += LightApp_OCCSelector.cxx
128 endif
129 if ENABLE_GLVIEWER
130   dist_libLightApp_la_SOURCES += LightApp_GLSelector.cxx
131 endif
132 if ENABLE_PLOT2DVIEWER
133   dist_libLightApp_la_SOURCES += LightApp_Plot2dSelector.cxx
134 endif
135
136 MOC_FILES =                             \
137         LightApp_AboutDlg_moc.cxx       \
138         LightApp_Application_moc.cxx    \
139         LightApp_DataModel_moc.cxx      \
140         LightApp_Dialog_moc.cxx         \
141         LightApp_OBSelector_moc.cxx     \
142         LightApp_Operation_moc.cxx      \
143         LightApp_Module_moc.cxx         \
144         LightApp_ModuleAction_moc.cxx   \
145         LightApp_ModuleDlg_moc.cxx      \
146         LightApp_NameDlg_moc.cxx        \
147         LightApp_SelectionMgr_moc.cxx   \
148         LightApp_ShowHideOp_moc.cxx     \
149         LightApp_Study_moc.cxx          \
150         LightApp_SwitchOp_moc.cxx       \
151         LightApp_Preferences_moc.cxx    \
152         LightApp_PreferencesDlg_moc.cxx \
153         LightApp_WgViewModel_moc.cxx
154
155 if ENABLE_VTKVIEWER
156 if ENABLE_SALOMEOBJECT
157   MOC_FILES += LightApp_VTKSelector_moc.cxx
158 endif
159 endif
160 if ENABLE_OCCVIEWER
161   MOC_FILES += LightApp_OCCSelector_moc.cxx
162 endif
163 if ENABLE_GLVIEWER
164   MOC_FILES += LightApp_GLSelector_moc.cxx
165 endif
166 if ENABLE_PLOT2DVIEWER
167   MOC_FILES += LightApp_Plot2dSelector_moc.cxx
168 endif
169 nodist_libLightApp_la_SOURCES = $(MOC_FILES) $(QRC_FILES)
170 dist_salomeres_DATA =                   \
171         resources/icon_about.png        \
172         resources/icon_applogo.png      \
173         resources/icon_default.png      \
174         resources/icon_module.png       \
175         resources/icon_module_big.png   \
176         resources/icon_select.png       \
177         resources/LightApp.ini          \
178         resources/LightApp.xml
179
180 nodist_salomeres_DATA =         \
181         LightApp_images.qm      \
182         LightApp_msg_en.qm      \
183         LightApp_msg_fr.qm
184
185 libLightApp_la_CPPFLAGS = $(PYTHON_INCLUDES) $(QT_INCLUDES) $(CAS_CPPFLAGS)             \
186         $(HDF5_INCLUDES) @KERNEL_CXXFLAGS@ -I$(srcdir)/../SUIT -I$(srcdir)/../STD       \
187         -I$(srcdir)/../CAM -I$(srcdir)/../ObjBrowser -I$(srcdir)/../LogWindow           \
188         -I$(srcdir)/../Prs -I$(srcdir)/../Qtx -I$(srcdir)/../Event -I$(srcdir)/../Style \
189         -I$(srcdir)/../CASCatch
190
191 libLightApp_la_LDFLAGS = $(QT_MT_LIBS)
192
193 if ENABLE_VTKVIEWER
194   libLightApp_la_CPPFLAGS += $(VTK_INCLUDES) -I$(srcdir)/../VTKViewer
195 else
196   libLightApp_la_CPPFLAGS += -DDISABLE_VTKVIEWER
197 endif
198 if ENABLE_PLOT2DVIEWER
199   libLightApp_la_CPPFLAGS += $(QWT_INCLUDES) -I$(srcdir)/../Plot2d
200 else
201   libLightApp_la_CPPFLAGS += -DDISABLE_PLOT2DVIEWER
202 endif
203 if ENABLE_OCCVIEWER
204   libLightApp_la_CPPFLAGS += -I$(srcdir)/../OCCViewer
205 else !ENABLE_OCCVIEWER
206   libLightApp_la_CPPFLAGS += -DDISABLE_OCCVIEWER
207 endif
208 if ENABLE_PYCONSOLE
209   libLightApp_la_CPPFLAGS += $(PYTHON_INCLUDES) -I$(srcdir)/../PyConsole -I$(srcdir)/../PyInterp \
210                              -I$(srcdir)/../SUITApp
211   libLightApp_la_LDFLAGS += $(PYTHON_LIBS)
212 else !ENABLE_PYCONSOLE
213   libLightApp_la_CPPFLAGS += -DDISABLE_PYCONSOLE
214 endif
215 if ENABLE_GLVIEWER
216   libLightApp_la_CPPFLAGS += -I$(srcdir)/../GLViewer
217 else !ENABLE_GLVIEWER
218   libLightApp_la_CPPFLAGS += -DDISABLE_GLVIEWER
219 endif
220 if ENABLE_SUPERVGRAPHVIEWER
221   libLightApp_la_CPPFLAGS += -I$(srcdir)/../SUPERVGraph
222 else !ENABLE_SUPERVGRAPHVIEWER
223   libLightApp_la_CPPFLAGS += -DDISABLE_SUPERVGRAPHVIEWER
224 endif
225 ###VSR: QxGraph has been replaced by QxScene
226 ###libLightApp_la_CPPFLAGS += -I$(srcdir)/../QxGraph
227 if ENABLE_QXGRAPHVIEWER
228   libLightApp_la_CPPFLAGS += -I$(srcdir)/../QxScene
229 else !ENABLE_QXGRAPHVIEWER
230   libLightApp_la_CPPFLAGS += -DDISABLE_QXGRAPHVIEWER
231 endif
232
233 if ENABLE_SALOMEOBJECT
234
235   libLightApp_la_CPPFLAGS += -I$(srcdir)/../OBJECT
236 if ENABLE_PLOT2DVIEWER
237   libLightApp_la_CPPFLAGS += -I$(srcdir)/../SPlot2d
238 endif
239 if ENABLE_OCCVIEWER
240   libLightApp_la_CPPFLAGS += -I$(srcdir)/../SOCC
241 endif
242 if ENABLE_VTKVIEWER
243   libLightApp_la_CPPFLAGS += -I$(srcdir)/../SVTK
244 endif
245 else !ENABLE_SALOMEOBJECT
246   libLightApp_la_CPPFLAGS += -DDISABLE_SALOMEOBJECT
247
248 endif
249
250 libLightApp_la_LIBADD = ../SUIT/libsuit.la ../STD/libstd.la ../CAM/libCAM.la                    \
251         ../LogWindow/libLogWindow.la $(CAS_KERNEL)                                              \
252         ../Prs/libSalomePrs.la ../ObjBrowser/libObjBrowser.la ../Style/libSalomeStyle.la        \
253         ../Event/libEvent.la                                                                    \
254         $(HDF5_LIBS) $(KERNEL_LDFLAGS) -lSalomeHDFPersist -lSALOMELocalTrace
255
256 if ENABLE_SALOMEOBJECT
257   libLightApp_la_LIBADD += ../OBJECT/libSalomeObject.la
258 endif
259 if ENABLE_VTKVIEWER
260   libLightApp_la_LIBADD +=  $(VTK_LIBS) ../VTKViewer/libVTKViewer.la
261 if ENABLE_SALOMEOBJECT
262   libLightApp_la_LIBADD += ../SVTK/libSVTK.la
263 endif
264 endif
265 if ENABLE_OCCVIEWER
266   libLightApp_la_LIBADD += ../OCCViewer/libOCCViewer.la
267 if ENABLE_SALOMEOBJECT
268   libLightApp_la_LIBADD += ../SOCC/libSOCC.la
269 endif
270 endif
271 if ENABLE_GLVIEWER
272   libLightApp_la_LIBADD += ../GLViewer/libGLViewer.la
273 endif
274 if ENABLE_PLOT2DVIEWER
275   libLightApp_la_LIBADD += ../Plot2d/libPlot2d.la
276 if ENABLE_SALOMEOBJECT
277   libLightApp_la_LIBADD += ../SPlot2d/libSPlot2d.la
278 endif
279 endif
280
281 if ENABLE_PYCONSOLE
282   libLightApp_la_LIBADD += ../PyInterp/libPyInterp.la ../PyConsole/libPyConsole.la \
283                            ../SUITApp/libSUITApp.la
284 endif
285
286 if ENABLE_SUPERVGRAPHVIEWER
287   libLightApp_la_LIBADD += ../SUPERVGraph/libSUPERVGraph.la
288 endif
289 ###VSR: QxGraph has been replaced by QxScene
290 ###libLightApp_la_LIBADD += ../QxGraph/libQxGraph.la
291 if ENABLE_QXGRAPHVIEWER
292   libLightApp_la_LIBADD+= ../QxScene/libQxScene.la
293 endif