]> SALOME platform Git repositories - modules/gui.git/blob - src/LightApp/LightApp.pro
Salome HOME
ffe32e5f926802fe2c600da1a0811a934f41a69b
[modules/gui.git] / src / LightApp / LightApp.pro
1 #  Copyright (C) 2007-2008  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 TEMPLATE = lib
23 TARGET = LightApp
24 DESTDIR = ../../lib
25 MOC_DIR = ../../moc
26 OBJECTS_DIR = ../../obj/$$TARGET
27
28 PYTHON_INCLUDES = $$(PYTHONHOME)/include/python2.4
29
30 QT_INCLUDES = $$(QTDIR)/include $$(QTDIR)/include/QtCore $$(QTDIR)/include/QtGui $$(QTDIR)/include/QtOpenGL $$(QTDIR)/include/QtXml
31
32 CASROOT = $$(CASROOT)
33 CAS_CPPFLAGS = $${CASROOT}/inc
34
35 HDF5_INCLUDES = $$(HDF5HOME)/include
36
37 KERNEL_CXXFLAGS = $$(KERNEL_ROOT_DIR)/include/salome
38
39 VTK_INCLUDES = $$(VTKHOME)/include/vtk
40
41 QWT_INCLUDES = $$(QWTHOME)/include
42
43 PYTHON_INCLUDES = $$(PYTHONHOME)/include/python2.4
44
45 INCLUDEPATH += $${PYTHON_INCLUDES} $${QT_INCLUDES} $${CAS_CPPFLAGS} $${HDF5_INCLUDES} $${KERNEL_CXXFLAGS} ../SUIT ../STD ../CAM ../LogWindow ../Prs ../Qtx ../Event #../ObjBrowser
46
47 #if ENABLE_VTKVIEWER
48   INCLUDEPATH += $${VTK_INCLUDES} ../VTKViewer
49 #else
50 #  DEFINES += DISABLE_VTKVIEWER
51 #endif
52
53 #if ENABLE_PLOT2DVIEWER
54   INCLUDEPATH += $${QWT_INCLUDES} ../Plot2d
55 #else
56 #  DEFINES += DISABLE_PLOT2DVIEWER
57 #endif
58
59 #if ENABLE_OCCVIEWER
60   INCLUDEPATH += ../OCCViewer
61 #else !ENABLE_OCCVIEWER
62 #  DEFINES += DISABLE_OCCVIEWER
63 #endif
64
65 #if ENABLE_PYCONSOLE
66   INCLUDEPATH += $${PYTHON_INCLUDES} ../PyConsole ../PyInterp
67 #else !ENABLE_PYCONSOLE
68 #  DEFINES += DISABLE_PYCONSOLE
69 #endif
70
71 #if ENABLE_GLVIEWER
72   INCLUDEPATH += ../GLViewer
73 #else !ENABLE_GLVIEWER
74 #  DEFINES += DISABLE_GLVIEWER
75 #endif
76
77 #if ENABLE_SUPERVGRAPHVIEWER
78   INCLUDEPATH += ../SUPERVGraph
79 #else !ENABLE_SUPERVGRAPHVIEWER
80 #  DEFINES += DISABLE_SUPERVGRAPHVIEWER
81 #endif
82
83 #if ENABLE_SALOMEOBJECT
84
85   INCLUDEPATH += ../OBJECT
86 #if ENABLE_PLOT2DVIEWER
87   INCLUDEPATH += ../SPlot2d
88 #endif
89
90 #if ENABLE_OCCVIEWER
91   INCLUDEPATH += ../SOCC
92 #endif
93
94 #if ENABLE_VTKVIEWER
95   INCLUDEPATH += ../SVTK
96 #endif
97
98 #else !ENABLE_SALOMEOBJECT
99 #  DEFINES += DISABLE_SALOMEOBJECT
100   
101 #endif
102
103 QT_MT_LIBS = -L$$(QTDIR)/lib -lQtCore -lQtXml -lQtGui -lQtOpenGL
104
105 CAS_KERNEL = -L$${CASROOT}/Linux/lib -lTKernel
106
107 HDF5_LIBS = -L$$(HDF5HOME)/lib -lhdf5
108
109 KERNEL_LDFLAGS = -L$$(KERNEL_ROOT_DIR)/lib/salome
110
111 PYTHON_LIBS = -L$$(PYTHONHOME)/lib/python2.4/config -lpython2.4 -ldl -lutil
112
113 LIBS += $${QT_MT_LIBS} -L../../lib -lsuit -lstd -lCAM -lLogWindow $${CAS_KERNEL} -lSalomePrs $${HDF5_LIBS} $${KERNEL_LDFLAGS} -lSalomeHDFPersist #-lObjBrowser
114
115 #if ENABLE_PYCONSOLE
116   LIBS += $${PYTHON_LIBS}
117 #endif
118
119 #if ENABLE_SALOMEOBJECT
120   LIBS += -lSalomeObject
121 #endif
122
123 #if ENABLE_VTKVIEWER
124   LIBS += -lVTKViewer
125 #if ENABLE_SALOMEOBJECT
126   LIBS += -lSVTK
127 #endif
128 #endif
129
130 #if ENABLE_OCCVIEWER
131   LIBS += -lOCCViewer
132 #if ENABLE_SALOMEOBJECT
133   LIBS += -lSOCC
134 #endif
135 #endif
136
137 #if ENABLE_GLVIEWER
138   LIBS += -lGLViewer
139 #endif
140
141 #if ENABLE_PLOT2DVIEWER
142   LIBS += -lPlot2d
143 #if ENABLE_SALOMEOBJECT
144   LIBS += -lSPlot2d
145 #endif
146 #endif
147
148 #if ENABLE_PYCONSOLE
149   LIBS += -lPyInterp -lPyConsole
150 #endif
151
152 #if ENABLE_SUPERVGRAPHVIEWER
153   LIBS += -lSUPERVGraph
154 #endif
155
156 CONFIG -= debug release debug_and_release
157 CONFIG += qt thread debug dll shared
158
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
161
162 HEADERS  = LightApp.h
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
191
192 #if ENABLE_VTKVIEWER
193 #if ENABLE_SALOMEOBJECT
194   HEADERS += LightApp_VTKSelector.h
195 #endif
196 #endif
197 #if ENABLE_OCCVIEWER
198   HEADERS += LightApp_OCCSelector.h
199 #endif
200 #if ENABLE_GLVIEWER
201   HEADERS += LightApp_GLSelector.h
202 #endif
203
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
230
231 #if ENABLE_VTKVIEWER
232 #if ENABLE_SALOMEOBJECT
233   SOURCES += LightApp_VTKSelector.cxx
234 #endif
235 #endif
236 #if ENABLE_OCCVIEWER
237   SOURCES += LightApp_OCCSelector.cxx
238 #endif
239 #if ENABLE_GLVIEWER
240   SOURCES += LightApp_GLSelector.cxx
241 #endif
242
243 TRANSLATIONS = resources/LightApp_images.ts \
244                resources/LightApp_msg_en.ts
245
246 ICONS   = resources/*.png
247
248 includes.files = $$HEADERS
249 includes.path = ../../include
250
251 resources.files = $$ICONS resources/*.qm
252 resources.path = ../../resources
253
254 INSTALLS += includes resources