1 # Copyright (C) 2007-2008 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
23 # Author : OCC team (OCN)
27 include $(top_srcdir)/adm_local/unix/make_common_starter.am
29 lib_LTLIBRARIES = libLightApp.la
31 salomeinclude_HEADERS = \
34 LightApp_Application.h \
35 LightApp_DataModel.h \
36 LightApp_DataObject.h \
37 LightApp_DataOwner.h \
38 LightApp_DataSubOwner.h \
40 LightApp_Displayer.h \
42 LightApp_EventFilter.h \
43 LightApp_HDFDriver.h \
45 LightApp_ModuleAction.h \
46 LightApp_ModuleDlg.h \
48 LightApp_OBSelector.h \
49 LightApp_Operation.h \
50 LightApp_Selection.h \
51 LightApp_SelectionMgr.h \
52 LightApp_ShowHideOp.h \
55 LightApp_Preferences.h \
56 LightApp_PreferencesDlg.h \
57 LightApp_UpdateFlags.h
62 if ENABLE_SALOMEOBJECT
63 salomeinclude_HEADERS += LightApp_VTKSelector.h
67 salomeinclude_HEADERS += LightApp_OCCSelector.h
70 salomeinclude_HEADERS += LightApp_GLSelector.h
72 if ENABLE_PLOT2DVIEWER
73 salomeinclude_HEADERS += LightApp_Plot2dSelector.h
76 dist_libLightApp_la_SOURCES = \
77 LightApp_AboutDlg.cxx \
78 LightApp_Application.cxx \
79 LightApp_DataModel.cxx \
80 LightApp_DataObject.cxx \
81 LightApp_DataOwner.cxx \
82 LightApp_DataSubOwner.cxx \
84 LightApp_Displayer.cxx \
86 LightApp_EventFilter.cxx \
87 LightApp_HDFDriver.cxx \
89 LightApp_ModuleAction.cxx \
90 LightApp_ModuleDlg.cxx \
91 LightApp_NameDlg.cxx \
92 LightApp_OBSelector.cxx \
93 LightApp_Operation.cxx \
94 LightApp_Selection.cxx \
95 LightApp_SelectionMgr.cxx \
96 LightApp_ShowHideOp.cxx \
98 LightApp_SwitchOp.cxx \
99 LightApp_Preferences.cxx \
100 LightApp_PreferencesDlg.cxx
102 # LightApp_OBFilter.cxx
105 if ENABLE_SALOMEOBJECT
106 dist_libLightApp_la_SOURCES += LightApp_VTKSelector.cxx
110 dist_libLightApp_la_SOURCES += LightApp_OCCSelector.cxx
113 dist_libLightApp_la_SOURCES += LightApp_GLSelector.cxx
115 if ENABLE_PLOT2DVIEWER
116 dist_libLightApp_la_SOURCES += LightApp_Plot2dSelector.cxx
120 LightApp_AboutDlg_moc.cxx \
121 LightApp_Application_moc.cxx \
122 LightApp_DataModel_moc.cxx \
123 LightApp_Dialog_moc.cxx \
124 LightApp_OBSelector_moc.cxx \
125 LightApp_Operation_moc.cxx \
126 LightApp_Module_moc.cxx \
127 LightApp_ModuleAction_moc.cxx \
128 LightApp_ModuleDlg_moc.cxx \
129 LightApp_NameDlg_moc.cxx \
130 LightApp_SelectionMgr_moc.cxx \
131 LightApp_ShowHideOp_moc.cxx \
132 LightApp_Study_moc.cxx \
133 LightApp_SwitchOp_moc.cxx \
134 LightApp_Preferences_moc.cxx \
135 LightApp_PreferencesDlg_moc.cxx
138 if ENABLE_SALOMEOBJECT
139 MOC_FILES += LightApp_VTKSelector_moc.cxx
143 MOC_FILES += LightApp_OCCSelector_moc.cxx
146 MOC_FILES += LightApp_GLSelector_moc.cxx
148 if ENABLE_PLOT2DVIEWER
149 MOC_FILES += LightApp_Plot2dSelector_moc.cxx
151 nodist_libLightApp_la_SOURCES = $(MOC_FILES)
153 dist_salomeres_DATA = \
154 resources/icon_about.png \
155 resources/icon_applogo.png \
156 resources/icon_default.png \
157 resources/icon_module.png \
158 resources/icon_module_big.png \
159 resources/icon_select.png \
160 resources/LightApp.ini \
161 resources/LightApp.xml
163 nodist_salomeres_DATA = \
167 libLightApp_la_CPPFLAGS = $(PYTHON_INCLUDES) $(QT_INCLUDES) $(CAS_CPPFLAGS) \
168 $(HDF5_INCLUDES) @KERNEL_CXXFLAGS@ -I$(srcdir)/../SUIT -I$(srcdir)/../STD \
169 -I$(srcdir)/../CAM -I$(srcdir)/../ObjBrowser -I$(srcdir)/../LogWindow \
170 -I$(srcdir)/../Prs -I$(srcdir)/../Qtx -I$(srcdir)/../Event -I$(srcdir)/../Style
171 libLightApp_la_LDFLAGS = $(QT_MT_LIBS)
174 libLightApp_la_CPPFLAGS += $(VTK_INCLUDES) -I$(srcdir)/../VTKViewer
176 libLightApp_la_CPPFLAGS += -DDISABLE_VTKVIEWER
178 if ENABLE_PLOT2DVIEWER
179 libLightApp_la_CPPFLAGS += $(QWT_INCLUDES) -I$(srcdir)/../Plot2d
181 libLightApp_la_CPPFLAGS += -DDISABLE_PLOT2DVIEWER
183 libLightApp_la_CPPFLAGS+= -I$(srcdir)/../QxScene
186 libLightApp_la_CPPFLAGS += -I$(srcdir)/../OCCViewer
187 else !ENABLE_OCCVIEWER
188 libLightApp_la_CPPFLAGS += -DDISABLE_OCCVIEWER
191 libLightApp_la_CPPFLAGS += $(PYTHON_INCLUDES) -I$(srcdir)/../PyConsole -I$(srcdir)/../PyInterp
192 libLightApp_la_LDFLAGS += $(PYTHON_LIBS)
193 else !ENABLE_PYCONSOLE
194 libLightApp_la_CPPFLAGS += -DDISABLE_PYCONSOLE
197 libLightApp_la_CPPFLAGS += -I$(srcdir)/../GLViewer
198 else !ENABLE_GLVIEWER
199 libLightApp_la_CPPFLAGS += -DDISABLE_GLVIEWER
201 if ENABLE_SUPERVGRAPHVIEWER
202 libLightApp_la_CPPFLAGS += -I$(srcdir)/../SUPERVGraph
203 else !ENABLE_SUPERVGRAPHVIEWER
204 libLightApp_la_CPPFLAGS += -DDISABLE_SUPERVGRAPHVIEWER
206 if ENABLE_QXGRAPHVIEWER
207 libLightApp_la_CPPFLAGS += -I$(srcdir)/../QxGraph
208 else !ENABLE_QXGRAPHVIEWER
209 libLightApp_la_CPPFLAGS += -DDISABLE_QXGRAPHVIEWER
212 if ENABLE_SALOMEOBJECT
214 libLightApp_la_CPPFLAGS += -I$(srcdir)/../OBJECT
215 if ENABLE_PLOT2DVIEWER
216 libLightApp_la_CPPFLAGS += -I$(srcdir)/../SPlot2d
219 libLightApp_la_CPPFLAGS += -I$(srcdir)/../SOCC
222 libLightApp_la_CPPFLAGS += -I$(srcdir)/../SVTK
224 else !ENABLE_SALOMEOBJECT
225 libLightApp_la_CPPFLAGS += -DDISABLE_SALOMEOBJECT
229 libLightApp_la_LIBADD = ../SUIT/libsuit.la ../STD/libstd.la ../CAM/libCAM.la \
230 ../LogWindow/libLogWindow.la $(CAS_KERNEL) \
231 ../Prs/libSalomePrs.la ../ObjBrowser/libObjBrowser.la ../Style/libSalomeStyle.la \
232 ../Event/libEvent.la \
233 $(HDF5_LIBS) $(KERNEL_LDFLAGS) -lSalomeHDFPersist -lSALOMELocalTrace
235 if ENABLE_SALOMEOBJECT
236 libLightApp_la_LIBADD += ../OBJECT/libSalomeObject.la
239 libLightApp_la_LIBADD += $(VTK_LIBS) ../VTKViewer/libVTKViewer.la
240 if ENABLE_SALOMEOBJECT
241 libLightApp_la_LIBADD += ../SVTK/libSVTK.la
245 libLightApp_la_LIBADD += ../OCCViewer/libOCCViewer.la
246 if ENABLE_SALOMEOBJECT
247 libLightApp_la_LIBADD += ../SOCC/libSOCC.la
251 libLightApp_la_LIBADD += ../GLViewer/libGLViewer.la
253 if ENABLE_PLOT2DVIEWER
254 libLightApp_la_LIBADD += ../Plot2d/libPlot2d.la
255 if ENABLE_SALOMEOBJECT
256 libLightApp_la_LIBADD += ../SPlot2d/libSPlot2d.la
260 libLightApp_la_LIBADD += ../PyInterp/libPyInterp.la ../PyConsole/libPyConsole.la
262 if ENABLE_SUPERVGRAPHVIEWER
263 libLightApp_la_LIBADD += ../SUPERVGraph/libSUPERVGraph.la
265 if ENABLE_QXGRAPHVIEWER
266 libLightApp_la_LIBADD += ../QxGraph/libQxGraph.la
268 libLightApp_la_LIBADD+= ../QxScene/libQxScene.la