Salome HOME
[bos #42109][CEA] (2024) Import med and show python console shortcuts does not work...
[modules/gui.git] / LightApp / Makefile.am
1 # Copyright (C) 2007-2012  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
23 #  File   : Makefile.in
24 #  Author : OCC team (OCN)
25 #  Module : LightApp
26
27 include $(top_srcdir)/adm_local/unix/make_common_starter.am
28
29 EXTRA_DIST += images
30
31 QRC_FILES = qrc_LightApp.cxx
32
33 lib_LTLIBRARIES = libLightApp.la
34
35 salomeinclude_HEADERS =                 \
36         LightApp.h                      \
37         LightApp_AboutDlg.h             \
38         LightApp_Application.h          \
39         LightApp_DataModel.h            \
40         LightApp_DataObject.h           \
41         LightApp_DataOwner.h            \
42         LightApp_DataSubOwner.h         \
43         LightApp_Dialog.h               \
44         LightApp_Displayer.h            \
45         LightApp_Driver.h               \
46         LightApp_EventFilter.h          \
47         LightApp_HDFDriver.h            \
48         LightApp_Module.h               \
49         LightApp_ModuleAction.h         \
50         LightApp_ModuleDlg.h            \
51         LightApp_NameDlg.h              \
52         LightApp_OBSelector.h           \
53         LightApp_Operation.h            \
54         LightApp_Selection.h            \
55         LightApp_SelectionMgr.h         \
56         LightApp_ShowHideOp.h           \
57         LightApp_Study.h                \
58         LightApp_SwitchOp.h             \
59         LightApp_Preferences.h          \
60         LightApp_PreferencesDlg.h       \
61         LightApp_UpdateFlags.h          \
62         LightApp_WgViewModel.h          \
63         LightApp_FullScreenHelper.h
64
65 if ENABLE_PYCONSOLE
66   salomeinclude_HEADERS += LightApp_PyInterp.h
67 endif
68
69 #       LightApp_OBFilter.h
70
71 if ENABLE_VTKVIEWER
72 if ENABLE_SALOMEOBJECT
73   salomeinclude_HEADERS += LightApp_VTKSelector.h
74 endif
75 endif
76 if ENABLE_OCCVIEWER
77   salomeinclude_HEADERS += LightApp_OCCSelector.h
78 endif
79 if ENABLE_GLVIEWER
80   salomeinclude_HEADERS += LightApp_GLSelector.h
81 endif
82 if ENABLE_PLOT2DVIEWER
83   salomeinclude_HEADERS += LightApp_Plot2dSelector.h
84 endif
85
86 dist_libLightApp_la_SOURCES =           \
87         LightApp_AboutDlg.cxx           \
88         LightApp_Application.cxx        \
89         LightApp_DataModel.cxx          \
90         LightApp_DataObject.cxx         \
91         LightApp_DataOwner.cxx          \
92         LightApp_DataSubOwner.cxx       \
93         LightApp_Dialog.cxx             \
94         LightApp_Displayer.cxx          \
95         LightApp_Driver.cxx             \
96         LightApp_EventFilter.cxx        \
97         LightApp_HDFDriver.cxx          \
98         LightApp_Module.cxx             \
99         LightApp_ModuleAction.cxx       \
100         LightApp_ModuleDlg.cxx          \
101         LightApp_NameDlg.cxx            \
102         LightApp_OBSelector.cxx         \
103         LightApp_Operation.cxx          \
104         LightApp_Selection.cxx          \
105         LightApp_SelectionMgr.cxx       \
106         LightApp_ShowHideOp.cxx         \
107         LightApp_Study.cxx              \
108         LightApp_SwitchOp.cxx           \
109         LightApp_Preferences.cxx        \
110         LightApp_PreferencesDlg.cxx     \
111         LightApp_WgViewModel.cxx        \
112         LightApp_FullScreenHelper.cxx
113
114 if ENABLE_PYCONSOLE
115   dist_libLightApp_la_SOURCES += LightApp_PyInterp.cxx
116 endif
117
118 #       LightApp_OBFilter.cxx
119
120 if ENABLE_VTKVIEWER
121 if ENABLE_SALOMEOBJECT
122   dist_libLightApp_la_SOURCES += LightApp_VTKSelector.cxx
123 endif
124 endif
125 if ENABLE_OCCVIEWER
126   dist_libLightApp_la_SOURCES += LightApp_OCCSelector.cxx
127 endif
128 if ENABLE_GLVIEWER
129   dist_libLightApp_la_SOURCES += LightApp_GLSelector.cxx
130 endif
131 if ENABLE_PLOT2DVIEWER
132   dist_libLightApp_la_SOURCES += LightApp_Plot2dSelector.cxx
133 endif
134
135 MOC_FILES =                             \
136         LightApp_AboutDlg_moc.cxx       \
137         LightApp_Application_moc.cxx    \
138         LightApp_DataModel_moc.cxx      \
139         LightApp_Dialog_moc.cxx         \
140         LightApp_OBSelector_moc.cxx     \
141         LightApp_Operation_moc.cxx      \
142         LightApp_Module_moc.cxx         \
143         LightApp_ModuleAction_moc.cxx   \
144         LightApp_ModuleDlg_moc.cxx      \
145         LightApp_NameDlg_moc.cxx        \
146         LightApp_SelectionMgr_moc.cxx   \
147         LightApp_ShowHideOp_moc.cxx     \
148         LightApp_Study_moc.cxx          \
149         LightApp_SwitchOp_moc.cxx       \
150         LightApp_Preferences_moc.cxx    \
151         LightApp_PreferencesDlg_moc.cxx \
152         LightApp_WgViewModel_moc.cxx
153
154 if ENABLE_VTKVIEWER
155 if ENABLE_SALOMEOBJECT
156   MOC_FILES += LightApp_VTKSelector_moc.cxx
157 endif
158 endif
159 if ENABLE_OCCVIEWER
160   MOC_FILES += LightApp_OCCSelector_moc.cxx
161 endif
162 if ENABLE_GLVIEWER
163   MOC_FILES += LightApp_GLSelector_moc.cxx
164 endif
165 if ENABLE_PLOT2DVIEWER
166   MOC_FILES += LightApp_Plot2dSelector_moc.cxx
167 endif
168 nodist_libLightApp_la_SOURCES = $(MOC_FILES) $(QRC_FILES)
169 dist_salomeres_DATA =                   \
170         resources/icon_about.png        \
171         resources/icon_applogo.png      \
172         resources/icon_default.png      \
173         resources/icon_module.png       \
174         resources/icon_module_big.png   \
175         resources/icon_select.png       \
176         resources/LightApp.ini          \
177         resources/LightApp.xml
178
179 nodist_salomeres_DATA =         \
180         LightApp_images.qm      \
181         LightApp_msg_en.qm      \
182         LightApp_msg_fr.qm
183
184 libLightApp_la_CPPFLAGS = $(PYTHON_INCLUDES) $(QT_INCLUDES) $(CAS_CPPFLAGS)             \
185         $(HDF5_INCLUDES) @KERNEL_CXXFLAGS@ -I$(srcdir)/../SUIT -I$(srcdir)/../STD       \
186         -I$(srcdir)/../CAM -I$(srcdir)/../ObjBrowser -I$(srcdir)/../LogWindow           \
187         -I$(srcdir)/../Prs -I$(srcdir)/../Qtx -I$(srcdir)/../Event -I$(srcdir)/../Style \
188         -I$(srcdir)/../CASCatch
189
190 libLightApp_la_LDFLAGS = $(QT_MT_LIBS)
191
192 if ENABLE_VTKVIEWER
193   libLightApp_la_CPPFLAGS += $(VTK_INCLUDES) -I$(srcdir)/../VTKViewer
194 else
195   libLightApp_la_CPPFLAGS += -DDISABLE_VTKVIEWER
196 endif
197 if ENABLE_PLOT2DVIEWER
198   libLightApp_la_CPPFLAGS += $(QWT_INCLUDES) -I$(srcdir)/../Plot2d
199 else
200   libLightApp_la_CPPFLAGS += -DDISABLE_PLOT2DVIEWER
201 endif
202 if ENABLE_OCCVIEWER
203   libLightApp_la_CPPFLAGS += -I$(srcdir)/../OCCViewer
204 else !ENABLE_OCCVIEWER
205   libLightApp_la_CPPFLAGS += -DDISABLE_OCCVIEWER
206 endif
207 if ENABLE_PYCONSOLE
208   libLightApp_la_CPPFLAGS += $(PYTHON_INCLUDES) -I$(srcdir)/../PyConsole -I$(srcdir)/../PyInterp \
209                              -I$(srcdir)/../SUITApp
210   libLightApp_la_LDFLAGS += $(PYTHON_LIBS)
211 else !ENABLE_PYCONSOLE
212   libLightApp_la_CPPFLAGS += -DDISABLE_PYCONSOLE
213 endif
214 if ENABLE_GLVIEWER
215   libLightApp_la_CPPFLAGS += -I$(srcdir)/../GLViewer
216 else !ENABLE_GLVIEWER
217   libLightApp_la_CPPFLAGS += -DDISABLE_GLVIEWER
218 endif
219 if ENABLE_SUPERVGRAPHVIEWER
220   libLightApp_la_CPPFLAGS += -I$(srcdir)/../SUPERVGraph
221 else !ENABLE_SUPERVGRAPHVIEWER
222   libLightApp_la_CPPFLAGS += -DDISABLE_SUPERVGRAPHVIEWER
223 endif
224 ###VSR: QxGraph has been replaced by QxScene
225 ###libLightApp_la_CPPFLAGS += -I$(srcdir)/../QxGraph
226 if ENABLE_QXGRAPHVIEWER
227   libLightApp_la_CPPFLAGS += -I$(srcdir)/../QxScene
228 else !ENABLE_QXGRAPHVIEWER
229   libLightApp_la_CPPFLAGS += -DDISABLE_QXGRAPHVIEWER
230 endif
231
232 if ENABLE_SALOMEOBJECT
233
234   libLightApp_la_CPPFLAGS += -I$(srcdir)/../OBJECT
235 if ENABLE_PLOT2DVIEWER
236   libLightApp_la_CPPFLAGS += -I$(srcdir)/../SPlot2d
237 endif
238 if ENABLE_OCCVIEWER
239   libLightApp_la_CPPFLAGS += -I$(srcdir)/../SOCC
240 endif
241 if ENABLE_VTKVIEWER
242   libLightApp_la_CPPFLAGS += -I$(srcdir)/../SVTK
243 endif
244 else !ENABLE_SALOMEOBJECT
245   libLightApp_la_CPPFLAGS += -DDISABLE_SALOMEOBJECT
246
247 endif
248
249 libLightApp_la_LIBADD = ../SUIT/libsuit.la ../STD/libstd.la ../CAM/libCAM.la                    \
250         ../LogWindow/libLogWindow.la $(CAS_KERNEL)                                              \
251         ../Prs/libSalomePrs.la ../ObjBrowser/libObjBrowser.la ../Style/libSalomeStyle.la        \
252         ../Event/libEvent.la                                                                    \
253         $(HDF5_LIBS) $(KERNEL_LDFLAGS) -lSalomeHDFPersist -lSALOMELocalTrace
254
255 if ENABLE_SALOMEOBJECT
256   libLightApp_la_LIBADD += ../OBJECT/libSalomeObject.la
257 endif
258 if ENABLE_VTKVIEWER
259   libLightApp_la_LIBADD +=  $(VTK_LIBS) ../VTKViewer/libVTKViewer.la
260 if ENABLE_SALOMEOBJECT
261   libLightApp_la_LIBADD += ../SVTK/libSVTK.la
262 endif
263 endif
264 if ENABLE_OCCVIEWER
265   libLightApp_la_LIBADD += ../OCCViewer/libOCCViewer.la
266 if ENABLE_SALOMEOBJECT
267   libLightApp_la_LIBADD += ../SOCC/libSOCC.la
268 endif
269 endif
270 if ENABLE_GLVIEWER
271   libLightApp_la_LIBADD += ../GLViewer/libGLViewer.la
272 endif
273 if ENABLE_PLOT2DVIEWER
274   libLightApp_la_LIBADD += ../Plot2d/libPlot2d.la
275 if ENABLE_SALOMEOBJECT
276   libLightApp_la_LIBADD += ../SPlot2d/libSPlot2d.la
277 endif
278 endif
279
280 if ENABLE_PYCONSOLE
281   libLightApp_la_LIBADD += ../PyInterp/libPyInterp.la ../PyConsole/libPyConsole.la \
282                            ../SUITApp/libSUITApp.la
283 endif
284
285 if ENABLE_SUPERVGRAPHVIEWER
286   libLightApp_la_LIBADD += ../SUPERVGraph/libSUPERVGraph.la
287 endif
288 ###VSR: QxGraph has been replaced by QxScene
289 ###libLightApp_la_LIBADD += ../QxGraph/libQxGraph.la
290 if ENABLE_QXGRAPHVIEWER
291   libLightApp_la_LIBADD+= ../QxScene/libQxScene.la
292 endif