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
26 OBJECTS_DIR = ../../obj/$$TARGET
28 PYTHON_INCLUDES = $$(PYTHONHOME)/include/python2.4
30 QT_INCLUDES = $$(QTDIR)/include $$(QTDIR)/include/QtCore $$(QTDIR)/include/QtGui $$(QTDIR)/include/QtOpenGL $$(QTDIR)/include/QtXml
33 CAS_CPPFLAGS = $${CASROOT}/inc
35 HDF5_INCLUDES = $$(HDF5HOME)/include
37 KERNEL_CXXFLAGS = $$(KERNEL_ROOT_DIR)/include/salome
39 VTK_INCLUDES = $$(VTKHOME)/include/vtk
41 QWT_INCLUDES = $$(QWTHOME)/include
43 PYTHON_INCLUDES = $$(PYTHONHOME)/include/python2.4
45 INCLUDEPATH += $${PYTHON_INCLUDES} $${QT_INCLUDES} $${CAS_CPPFLAGS} $${HDF5_INCLUDES} $${KERNEL_CXXFLAGS} ../SUIT ../STD ../CAM ../LogWindow ../Prs ../Qtx ../Event #../ObjBrowser
48 INCLUDEPATH += $${VTK_INCLUDES} ../VTKViewer
50 # DEFINES += DISABLE_VTKVIEWER
53 #if ENABLE_PLOT2DVIEWER
54 INCLUDEPATH += $${QWT_INCLUDES} ../Plot2d
56 # DEFINES += DISABLE_PLOT2DVIEWER
60 INCLUDEPATH += ../OCCViewer
61 #else !ENABLE_OCCVIEWER
62 # DEFINES += DISABLE_OCCVIEWER
66 INCLUDEPATH += $${PYTHON_INCLUDES} ../PyConsole ../PyInterp
67 #else !ENABLE_PYCONSOLE
68 # DEFINES += DISABLE_PYCONSOLE
72 INCLUDEPATH += ../GLViewer
73 #else !ENABLE_GLVIEWER
74 # DEFINES += DISABLE_GLVIEWER
77 #if ENABLE_SUPERVGRAPHVIEWER
78 INCLUDEPATH += ../SUPERVGraph
79 #else !ENABLE_SUPERVGRAPHVIEWER
80 # DEFINES += DISABLE_SUPERVGRAPHVIEWER
83 #if ENABLE_SALOMEOBJECT
85 INCLUDEPATH += ../OBJECT
86 #if ENABLE_PLOT2DVIEWER
87 INCLUDEPATH += ../SPlot2d
91 INCLUDEPATH += ../SOCC
95 INCLUDEPATH += ../SVTK
98 #else !ENABLE_SALOMEOBJECT
99 # DEFINES += DISABLE_SALOMEOBJECT
103 QT_MT_LIBS = -L$$(QTDIR)/lib -lQtCore -lQtXml -lQtGui -lQtOpenGL
105 CAS_KERNEL = -L$${CASROOT}/Linux/lib -lTKernel
107 HDF5_LIBS = -L$$(HDF5HOME)/lib -lhdf5
109 KERNEL_LDFLAGS = -L$$(KERNEL_ROOT_DIR)/lib/salome
111 PYTHON_LIBS = -L$$(PYTHONHOME)/lib/python2.4/config -lpython2.4 -ldl -lutil
113 LIBS += $${QT_MT_LIBS} -L../../lib -lsuit -lstd -lCAM -lLogWindow $${CAS_KERNEL} -lSalomePrs $${HDF5_LIBS} $${KERNEL_LDFLAGS} -lSalomeHDFPersist #-lObjBrowser
116 LIBS += $${PYTHON_LIBS}
119 #if ENABLE_SALOMEOBJECT
120 LIBS += -lSalomeObject
125 #if ENABLE_SALOMEOBJECT
132 #if ENABLE_SALOMEOBJECT
141 #if ENABLE_PLOT2DVIEWER
143 #if ENABLE_SALOMEOBJECT
149 LIBS += -lPyInterp -lPyConsole
152 #if ENABLE_SUPERVGRAPHVIEWER
153 LIBS += -lSUPERVGraph
156 CONFIG -= debug release debug_and_release
157 CONFIG += qt thread debug dll shared
159 win32:DEFINES += WIN32
160 DEFINES += LIGHTAPP_EXPORTS OCC_VERSION_MAJOR=6 OCC_VERSION_MINOR=1 OCC_VERSION_MAINTENANCE=1 LIN LINTEL CSFDB No_exception HAVE_CONFIG_H HAVE_LIMITS_H HAVE_WOK_CONFIG_H OCC_CONVERT_SIGNALS
163 HEADERS += LightApp_AboutDlg.h
164 HEADERS += LightApp_Application.h
165 HEADERS += LightApp_DataModel.h
166 HEADERS += LightApp_DataObject.h
167 HEADERS += LightApp_DataOwner.h
168 HEADERS += LightApp_DataSubOwner.h
169 HEADERS += LightApp_Dialog.h
170 HEADERS += LightApp_Displayer.h
171 HEADERS += LightApp_Driver.h
172 HEADERS += LightApp_EventFilter.h
173 HEADERS += LightApp_HDFDriver.h
174 HEADERS += LightApp_Module.h
175 HEADERS += LightApp_ModuleAction.h
176 HEADERS += LightApp_ModuleDlg.h
177 HEADERS += LightApp_NameDlg.h
178 #HEADERS += LightApp_OBFilter.h
179 HEADERS += LightApp_OBSelector.h
180 HEADERS += LightApp_Operation.h
181 HEADERS += LightApp_Selection.h
182 HEADERS += LightApp_SelectionMgr.h
183 HEADERS += LightApp_ShowHideOp.h
184 HEADERS += LightApp_Study.h
185 HEADERS += LightApp_SwitchOp.h
186 HEADERS += LightApp_Preferences.h
187 HEADERS += LightApp_PreferencesDlg.h
188 HEADERS += LightApp_RootObject.h
189 HEADERS += LightApp_UpdateFlags.h
190 HEADERS += LightApp_WidgetContainer.h
193 #if ENABLE_SALOMEOBJECT
194 HEADERS += LightApp_VTKSelector.h
198 HEADERS += LightApp_OCCSelector.h
201 HEADERS += LightApp_GLSelector.h
204 SOURCES = LightApp_AboutDlg.cxx
205 SOURCES += LightApp_Application.cxx
206 SOURCES += LightApp_DataModel.cxx
207 SOURCES += LightApp_DataObject.cxx
208 SOURCES += LightApp_DataOwner.cxx
209 SOURCES += LightApp_DataSubOwner.cxx
210 SOURCES += LightApp_Dialog.cxx
211 SOURCES += LightApp_Displayer.cxx
212 SOURCES += LightApp_Driver.cxx
213 SOURCES += LightApp_EventFilter.cxx
214 SOURCES += LightApp_HDFDriver.cxx
215 SOURCES += LightApp_Module.cxx
216 SOURCES += LightApp_ModuleAction.cxx
217 SOURCES += LightApp_ModuleDlg.cxx
218 SOURCES += LightApp_NameDlg.cxx
219 #SOURCES += LightApp_OBFilter.cxx
220 SOURCES += LightApp_OBSelector.cxx
221 SOURCES += LightApp_Operation.cxx
222 SOURCES += LightApp_Selection.cxx
223 SOURCES += LightApp_SelectionMgr.cxx
224 SOURCES += LightApp_ShowHideOp.cxx
225 SOURCES += LightApp_Study.cxx
226 SOURCES += LightApp_SwitchOp.cxx
227 SOURCES += LightApp_Preferences.cxx
228 SOURCES += LightApp_PreferencesDlg.cxx
229 SOURCES += LightApp_WidgetContainer.cxx
232 #if ENABLE_SALOMEOBJECT
233 SOURCES += LightApp_VTKSelector.cxx
237 SOURCES += LightApp_OCCSelector.cxx
240 SOURCES += LightApp_GLSelector.cxx
243 TRANSLATIONS = resources/LightApp_images.ts \
244 resources/LightApp_msg_en.ts
246 ICONS = resources/*.png
248 includes.files = $$HEADERS
249 includes.path = ../../include
251 resources.files = $$ICONS resources/*.qm
252 resources.path = ../../resources
254 INSTALLS += includes resources