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)
28 include $(top_srcdir)/adm_local/unix/make_common_starter.am
32 QRC_FILES = qrc_LightApp.cxx
34 lib_LTLIBRARIES = libLightApp.la
36 salomeinclude_HEADERS = \
39 LightApp_Application.h \
40 LightApp_DataModel.h \
41 LightApp_DataObject.h \
42 LightApp_DataOwner.h \
43 LightApp_DataSubOwner.h \
45 LightApp_Displayer.h \
47 LightApp_EventFilter.h \
48 LightApp_HDFDriver.h \
50 LightApp_ModuleAction.h \
51 LightApp_ModuleDlg.h \
53 LightApp_OBSelector.h \
54 LightApp_Operation.h \
55 LightApp_Selection.h \
56 LightApp_SelectionMgr.h \
57 LightApp_ShowHideOp.h \
60 LightApp_Preferences.h \
61 LightApp_PreferencesDlg.h \
62 LightApp_UpdateFlags.h \
63 LightApp_WgViewModel.h \
64 LightApp_FullScreenHelper.h
67 salomeinclude_HEADERS += LightApp_PyInterp.h
73 if ENABLE_SALOMEOBJECT
74 salomeinclude_HEADERS += LightApp_VTKSelector.h
78 salomeinclude_HEADERS += LightApp_OCCSelector.h
81 salomeinclude_HEADERS += LightApp_GLSelector.h
83 if ENABLE_PLOT2DVIEWER
84 salomeinclude_HEADERS += LightApp_Plot2dSelector.h
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 \
95 LightApp_Displayer.cxx \
97 LightApp_EventFilter.cxx \
98 LightApp_HDFDriver.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 \
109 LightApp_SwitchOp.cxx \
110 LightApp_Preferences.cxx \
111 LightApp_PreferencesDlg.cxx \
112 LightApp_WgViewModel.cxx \
113 LightApp_FullScreenHelper.cxx
116 dist_libLightApp_la_SOURCES += LightApp_PyInterp.cxx
119 # LightApp_OBFilter.cxx
122 if ENABLE_SALOMEOBJECT
123 dist_libLightApp_la_SOURCES += LightApp_VTKSelector.cxx
127 dist_libLightApp_la_SOURCES += LightApp_OCCSelector.cxx
130 dist_libLightApp_la_SOURCES += LightApp_GLSelector.cxx
132 if ENABLE_PLOT2DVIEWER
133 dist_libLightApp_la_SOURCES += LightApp_Plot2dSelector.cxx
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
156 if ENABLE_SALOMEOBJECT
157 MOC_FILES += LightApp_VTKSelector_moc.cxx
161 MOC_FILES += LightApp_OCCSelector_moc.cxx
164 MOC_FILES += LightApp_GLSelector_moc.cxx
166 if ENABLE_PLOT2DVIEWER
167 MOC_FILES += LightApp_Plot2dSelector_moc.cxx
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
180 nodist_salomeres_DATA = \
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
191 libLightApp_la_LDFLAGS = $(QT_MT_LIBS)
194 libLightApp_la_CPPFLAGS += $(VTK_INCLUDES) -I$(srcdir)/../VTKViewer
196 libLightApp_la_CPPFLAGS += -DDISABLE_VTKVIEWER
198 if ENABLE_PLOT2DVIEWER
199 libLightApp_la_CPPFLAGS += $(QWT_INCLUDES) -I$(srcdir)/../Plot2d
201 libLightApp_la_CPPFLAGS += -DDISABLE_PLOT2DVIEWER
204 libLightApp_la_CPPFLAGS += -I$(srcdir)/../OCCViewer
205 else !ENABLE_OCCVIEWER
206 libLightApp_la_CPPFLAGS += -DDISABLE_OCCVIEWER
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
216 libLightApp_la_CPPFLAGS += -I$(srcdir)/../GLViewer
217 else !ENABLE_GLVIEWER
218 libLightApp_la_CPPFLAGS += -DDISABLE_GLVIEWER
220 if ENABLE_SUPERVGRAPHVIEWER
221 libLightApp_la_CPPFLAGS += -I$(srcdir)/../SUPERVGraph
222 else !ENABLE_SUPERVGRAPHVIEWER
223 libLightApp_la_CPPFLAGS += -DDISABLE_SUPERVGRAPHVIEWER
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
233 if ENABLE_SALOMEOBJECT
235 libLightApp_la_CPPFLAGS += -I$(srcdir)/../OBJECT
236 if ENABLE_PLOT2DVIEWER
237 libLightApp_la_CPPFLAGS += -I$(srcdir)/../SPlot2d
240 libLightApp_la_CPPFLAGS += -I$(srcdir)/../SOCC
243 libLightApp_la_CPPFLAGS += -I$(srcdir)/../SVTK
245 else !ENABLE_SALOMEOBJECT
246 libLightApp_la_CPPFLAGS += -DDISABLE_SALOMEOBJECT
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
256 if ENABLE_SALOMEOBJECT
257 libLightApp_la_LIBADD += ../OBJECT/libSalomeObject.la
260 libLightApp_la_LIBADD += $(VTK_LIBS) ../VTKViewer/libVTKViewer.la
261 if ENABLE_SALOMEOBJECT
262 libLightApp_la_LIBADD += ../SVTK/libSVTK.la
266 libLightApp_la_LIBADD += ../OCCViewer/libOCCViewer.la
267 if ENABLE_SALOMEOBJECT
268 libLightApp_la_LIBADD += ../SOCC/libSOCC.la
272 libLightApp_la_LIBADD += ../GLViewer/libGLViewer.la
274 if ENABLE_PLOT2DVIEWER
275 libLightApp_la_LIBADD += ../Plot2d/libPlot2d.la
276 if ENABLE_SALOMEOBJECT
277 libLightApp_la_LIBADD += ../SPlot2d/libSPlot2d.la
282 libLightApp_la_LIBADD += ../PyInterp/libPyInterp.la ../PyConsole/libPyConsole.la \
283 ../SUITApp/libSUITApp.la
286 if ENABLE_SUPERVGRAPHVIEWER
287 libLightApp_la_LIBADD += ../SUPERVGraph/libSUPERVGraph.la
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