1 # Copyright (C) 2005 CEA/DEN, EDF R&D, OPEN CASCADE, PRINCIPIA R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/
20 # Author : OCC team (OCN)
24 top_srcdir=@top_srcdir@
27 VPATH=.:@srcdir@:@srcdir@/resources
33 EXPORT_HEADERS= LightApp.h \
35 LightApp_Application.h \
36 LightApp_DataModel.h \
37 LightApp_DataObject.h \
38 LightApp_DataOwner.h \
39 LightApp_DataSubOwner.h \
41 LightApp_Displayer.h \
43 LightApp_HDFDriver.h \
45 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_RootObject.h \
58 LightApp_UpdateFlags.h \
59 LightApp_WidgetContainer.h
61 ifneq ($(DISABLE_VTKVIEWER),yes)
62 ifneq ($(DISABLE_SALOMEOBJECT),yes)
63 EXPORT_HEADERS+= LightApp_VTKSelector.h
66 ifneq ($(DISABLE_OCCVIEWER),yes)
67 EXPORT_HEADERS+= LightApp_OCCSelector.h
69 ifneq ($(DISABLE_GLVIEWER),yes)
70 EXPORT_HEADERS+= LightApp_GLSelector.h
73 # .po files to transform in .qm
74 PO_FILES = LightApp_images.po \
80 LIB_SRC= LightApp_AboutDlg.cxx \
81 LightApp_Application.cxx \
82 LightApp_DataModel.cxx \
83 LightApp_DataObject.cxx \
84 LightApp_DataOwner.cxx \
85 LightApp_DataSubOwner.cxx \
87 LightApp_Displayer.cxx \
89 LightApp_HDFDriver.cxx \
91 LightApp_ModuleDlg.cxx \
92 LightApp_NameDlg.cxx \
93 LightApp_OBFilter.cxx \
94 LightApp_OBSelector.cxx \
95 LightApp_Operation.cxx \
96 LightApp_Selection.cxx \
97 LightApp_SelectionMgr.cxx \
98 LightApp_ShowHideOp.cxx \
100 LightApp_SwitchOp.cxx \
101 LightApp_Preferences.cxx \
102 LightApp_PreferencesDlg.cxx \
103 LightApp_WidgetContainer.cxx
105 ifneq ($(DISABLE_VTKVIEWER),yes)
106 ifneq ($(DISABLE_SALOMEOBJECT),yes)
107 LIB_SRC+= LightApp_VTKSelector.cxx
110 ifneq ($(DISABLE_OCCVIEWER),yes)
111 LIB_SRC+= LightApp_OCCSelector.cxx
113 ifneq ($(DISABLE_GLVIEWER),yes)
114 LIB_SRC+= LightApp_GLSelector.cxx
117 LIB_MOC = LightApp_AboutDlg.h \
118 LightApp_Application.h \
119 LightApp_DataModel.h \
121 LightApp_OBSelector.h \
122 LightApp_Operation.h \
124 LightApp_ModuleDlg.h \
126 LightApp_SelectionMgr.h \
127 LightApp_ShowHideOp.h \
129 LightApp_SwitchOp.h \
130 LightApp_Preferences.h \
131 LightApp_PreferencesDlg.h \
132 LightApp_WidgetContainer.h
134 ifneq ($(DISABLE_VTKVIEWER),yes)
135 ifneq ($(DISABLE_SALOMEOBJECT),yes)
136 LIB_MOC+= LightApp_VTKSelector.h
139 ifneq ($(DISABLE_OCCVIEWER),yes)
140 LIB_MOC+= LightApp_OCCSelector.h
142 ifneq ($(DISABLE_GLVIEWER),yes)
143 LIB_MOC+= LightApp_GLSelector.h
146 RESOURCES_FILES = icon_about.png \
150 icon_module_big.png \
155 CPPFLAGS+=$(PYTHON_INCLUDES) $(QT_INCLUDES) $(OCC_INCLUDES) \
156 $(HDF5_INCLUDES) $(KERNEL_CXXFLAGS)
158 ifneq ($(DISABLE_VTKVIEWER),yes)
159 CPPFLAGS+= $(VTK_INCLUDES)
161 CPPFLAGS+= -DDISABLE_VTKVIEWER
163 ifneq ($(DISABLE_PLOT2DVIEWER),yes)
164 CPPFLAGS+= $(QWT_INCLUDES)
166 CPPFLAGS+= -DDISABLE_PLOT2DVIEWER
168 ifeq ($(DISABLE_OCCVIEWER),yes)
169 CPPFLAGS+= -DDISABLE_OCCVIEWER
171 ifneq ($(DISABLE_PYCONSOLE),yes)
172 CPPFLAGS+= $(PYTHON_INCLUDES)
174 CPPFLAGS+= -DDISABLE_PYCONSOLE
176 ifeq ($(DISABLE_GLVIEWER),yes)
177 CPPFLAGS+= -DDISABLE_GLVIEWER
179 ifeq ($(DISABLE_SUPERVGRAPHVIEWER),yes)
180 CPPFLAGS+= -DDISABLE_SUPERVGRAPHVIEWER
182 ifeq ($(DISABLE_SALOMEOBJECT),yes)
183 CPPFLAGS+= -DDISABLE_SALOMEOBJECT
186 LDFLAGS+=$(QT_MT_LIBS)
187 ifneq ($(DISABLE_PYCONSOLE),yes)
188 LDFLAGS+= $(PYTHON_LIBS)
191 LIBS+= -lsuit -lstd -lCAM -lObjBrowser -lLogWindow $(CAS_KERNEL) -lSalomePrs \
192 $(HDF5_LIBS) $(KERNEL_LDFLAGS) -lSalomeHDFPersist
194 ifneq ($(DISABLE_SALOMEOBJECT),yes)
195 LIBS+= -lSalomeObject
197 ifneq ($(DISABLE_VTKVIEWER),yes)
199 ifneq ($(DISABLE_SALOMEOBJECT),yes)
203 ifneq ($(DISABLE_OCCVIEWER),yes)
205 ifneq ($(DISABLE_SALOMEOBJECT),yes)
209 ifneq ($(DISABLE_GLVIEWER),yes)
212 ifneq ($(DISABLE_PLOT2DVIEWER),yes)
214 ifneq ($(DISABLE_SALOMEOBJECT),yes)
218 ifneq ($(DISABLE_PYCONSOLE),yes)
219 LIBS+= -lPyInterp -lPythonConsole
221 ifneq ($(DISABLE_SUPERVGRAPHVIEWER),yes)