1 # Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 # Author : OCC team (OCN)
27 include $(top_srcdir)/adm_local/unix/make_common_starter.am
31 QRC_FILES = qrc_LightApp.cxx
33 lib_LTLIBRARIES = libLightApp.la
35 salomeinclude_HEADERS = \
38 LightApp_Application.h \
39 LightApp_DataModel.h \
40 LightApp_DataObject.h \
41 LightApp_DataOwner.h \
42 LightApp_DataSubOwner.h \
44 LightApp_Displayer.h \
46 LightApp_EventFilter.h \
47 LightApp_HDFDriver.h \
49 LightApp_ModuleAction.h \
50 LightApp_ModuleDlg.h \
52 LightApp_OBSelector.h \
53 LightApp_Operation.h \
54 LightApp_Selection.h \
55 LightApp_SelectionMgr.h \
56 LightApp_ShowHideOp.h \
59 LightApp_Preferences.h \
60 LightApp_PreferencesDlg.h \
61 LightApp_UpdateFlags.h \
62 LightApp_WgViewModel.h \
63 LightApp_FullScreenHelper.h
66 salomeinclude_HEADERS += LightApp_PyInterp.h
72 if ENABLE_SALOMEOBJECT
73 salomeinclude_HEADERS += LightApp_VTKSelector.h
77 salomeinclude_HEADERS += LightApp_OCCSelector.h
80 salomeinclude_HEADERS += LightApp_GLSelector.h
82 if ENABLE_PLOT2DVIEWER
83 salomeinclude_HEADERS += LightApp_Plot2dSelector.h
86 dist_libLightApp_la_SOURCES = \
87 LightApp_AboutDlg.cxx \
88 LightApp_Application.cxx \
89 LightApp_DataModel.cxx \
90 LightApp_DataObject.cxx \
91 LightApp_DataOwner.cxx \
92 LightApp_DataSubOwner.cxx \
94 LightApp_Displayer.cxx \
96 LightApp_EventFilter.cxx \
97 LightApp_HDFDriver.cxx \
99 LightApp_ModuleAction.cxx \
100 LightApp_ModuleDlg.cxx \
101 LightApp_NameDlg.cxx \
102 LightApp_OBSelector.cxx \
103 LightApp_Operation.cxx \
104 LightApp_Selection.cxx \
105 LightApp_SelectionMgr.cxx \
106 LightApp_ShowHideOp.cxx \
108 LightApp_SwitchOp.cxx \
109 LightApp_Preferences.cxx \
110 LightApp_PreferencesDlg.cxx \
111 LightApp_WgViewModel.cxx \
112 LightApp_FullScreenHelper.cxx
115 dist_libLightApp_la_SOURCES += LightApp_PyInterp.cxx
118 # LightApp_OBFilter.cxx
121 if ENABLE_SALOMEOBJECT
122 dist_libLightApp_la_SOURCES += LightApp_VTKSelector.cxx
126 dist_libLightApp_la_SOURCES += LightApp_OCCSelector.cxx
129 dist_libLightApp_la_SOURCES += LightApp_GLSelector.cxx
131 if ENABLE_PLOT2DVIEWER
132 dist_libLightApp_la_SOURCES += LightApp_Plot2dSelector.cxx
136 LightApp_AboutDlg_moc.cxx \
137 LightApp_Application_moc.cxx \
138 LightApp_DataModel_moc.cxx \
139 LightApp_Dialog_moc.cxx \
140 LightApp_OBSelector_moc.cxx \
141 LightApp_Operation_moc.cxx \
142 LightApp_Module_moc.cxx \
143 LightApp_ModuleAction_moc.cxx \
144 LightApp_ModuleDlg_moc.cxx \
145 LightApp_NameDlg_moc.cxx \
146 LightApp_SelectionMgr_moc.cxx \
147 LightApp_ShowHideOp_moc.cxx \
148 LightApp_Study_moc.cxx \
149 LightApp_SwitchOp_moc.cxx \
150 LightApp_Preferences_moc.cxx \
151 LightApp_PreferencesDlg_moc.cxx \
152 LightApp_WgViewModel_moc.cxx
155 if ENABLE_SALOMEOBJECT
156 MOC_FILES += LightApp_VTKSelector_moc.cxx
160 MOC_FILES += LightApp_OCCSelector_moc.cxx
163 MOC_FILES += LightApp_GLSelector_moc.cxx
165 if ENABLE_PLOT2DVIEWER
166 MOC_FILES += LightApp_Plot2dSelector_moc.cxx
168 nodist_libLightApp_la_SOURCES = $(MOC_FILES) $(QRC_FILES)
169 dist_salomeres_DATA = \
170 resources/icon_about.png \
171 resources/icon_applogo.png \
172 resources/icon_default.png \
173 resources/icon_module.png \
174 resources/icon_module_big.png \
175 resources/icon_select.png \
176 resources/LightApp.ini \
177 resources/LightApp.xml
179 nodist_salomeres_DATA = \
184 libLightApp_la_CPPFLAGS = $(PYTHON_INCLUDES) $(QT_INCLUDES) $(CAS_CPPFLAGS) \
185 $(HDF5_INCLUDES) @KERNEL_CXXFLAGS@ -I$(srcdir)/../SUIT -I$(srcdir)/../STD \
186 -I$(srcdir)/../CAM -I$(srcdir)/../ObjBrowser -I$(srcdir)/../LogWindow \
187 -I$(srcdir)/../Prs -I$(srcdir)/../Qtx -I$(srcdir)/../Event -I$(srcdir)/../Style \
188 -I$(srcdir)/../CASCatch
190 libLightApp_la_LDFLAGS = $(QT_MT_LIBS)
193 libLightApp_la_CPPFLAGS += $(VTK_INCLUDES) -I$(srcdir)/../VTKViewer
195 libLightApp_la_CPPFLAGS += -DDISABLE_VTKVIEWER
197 if ENABLE_PLOT2DVIEWER
198 libLightApp_la_CPPFLAGS += $(QWT_INCLUDES) -I$(srcdir)/../Plot2d
200 libLightApp_la_CPPFLAGS += -DDISABLE_PLOT2DVIEWER
203 libLightApp_la_CPPFLAGS += -I$(srcdir)/../OCCViewer
204 else !ENABLE_OCCVIEWER
205 libLightApp_la_CPPFLAGS += -DDISABLE_OCCVIEWER
208 libLightApp_la_CPPFLAGS += $(PYTHON_INCLUDES) -I$(srcdir)/../PyConsole -I$(srcdir)/../PyInterp \
209 -I$(srcdir)/../SUITApp
210 libLightApp_la_LDFLAGS += $(PYTHON_LIBS)
211 else !ENABLE_PYCONSOLE
212 libLightApp_la_CPPFLAGS += -DDISABLE_PYCONSOLE
215 libLightApp_la_CPPFLAGS += -I$(srcdir)/../GLViewer
216 else !ENABLE_GLVIEWER
217 libLightApp_la_CPPFLAGS += -DDISABLE_GLVIEWER
219 if ENABLE_SUPERVGRAPHVIEWER
220 libLightApp_la_CPPFLAGS += -I$(srcdir)/../SUPERVGraph
221 else !ENABLE_SUPERVGRAPHVIEWER
222 libLightApp_la_CPPFLAGS += -DDISABLE_SUPERVGRAPHVIEWER
224 ###VSR: QxGraph has been replaced by QxScene
225 ###libLightApp_la_CPPFLAGS += -I$(srcdir)/../QxGraph
226 if ENABLE_QXGRAPHVIEWER
227 libLightApp_la_CPPFLAGS += -I$(srcdir)/../QxScene
228 else !ENABLE_QXGRAPHVIEWER
229 libLightApp_la_CPPFLAGS += -DDISABLE_QXGRAPHVIEWER
232 if ENABLE_SALOMEOBJECT
234 libLightApp_la_CPPFLAGS += -I$(srcdir)/../OBJECT
235 if ENABLE_PLOT2DVIEWER
236 libLightApp_la_CPPFLAGS += -I$(srcdir)/../SPlot2d
239 libLightApp_la_CPPFLAGS += -I$(srcdir)/../SOCC
242 libLightApp_la_CPPFLAGS += -I$(srcdir)/../SVTK
244 else !ENABLE_SALOMEOBJECT
245 libLightApp_la_CPPFLAGS += -DDISABLE_SALOMEOBJECT
249 libLightApp_la_LIBADD = ../SUIT/libsuit.la ../STD/libstd.la ../CAM/libCAM.la \
250 ../LogWindow/libLogWindow.la $(CAS_KERNEL) \
251 ../Prs/libSalomePrs.la ../ObjBrowser/libObjBrowser.la ../Style/libSalomeStyle.la \
252 ../Event/libEvent.la \
253 $(HDF5_LIBS) $(KERNEL_LDFLAGS) -lSalomeHDFPersist -lSALOMELocalTrace
255 if ENABLE_SALOMEOBJECT
256 libLightApp_la_LIBADD += ../OBJECT/libSalomeObject.la
259 libLightApp_la_LIBADD += $(VTK_LIBS) ../VTKViewer/libVTKViewer.la
260 if ENABLE_SALOMEOBJECT
261 libLightApp_la_LIBADD += ../SVTK/libSVTK.la
265 libLightApp_la_LIBADD += ../OCCViewer/libOCCViewer.la
266 if ENABLE_SALOMEOBJECT
267 libLightApp_la_LIBADD += ../SOCC/libSOCC.la
271 libLightApp_la_LIBADD += ../GLViewer/libGLViewer.la
273 if ENABLE_PLOT2DVIEWER
274 libLightApp_la_LIBADD += ../Plot2d/libPlot2d.la
275 if ENABLE_SALOMEOBJECT
276 libLightApp_la_LIBADD += ../SPlot2d/libSPlot2d.la
281 libLightApp_la_LIBADD += ../PyInterp/libPyInterp.la ../PyConsole/libPyConsole.la \
282 ../SUITApp/libSUITApp.la
285 if ENABLE_SUPERVGRAPHVIEWER
286 libLightApp_la_LIBADD += ../SUPERVGraph/libSUPERVGraph.la
288 ###VSR: QxGraph has been replaced by QxScene
289 ###libLightApp_la_LIBADD += ../QxGraph/libQxGraph.la
290 if ENABLE_QXGRAPHVIEWER
291 libLightApp_la_LIBADD+= ../QxScene/libQxScene.la