Salome HOME
1d3892a19e73753b3c610880385cde91cc42d172
[modules/gui.git] / src / LightApp / Makefile.am
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 #  File   : Makefile.in
23 #  Author : OCC team (OCN)
24 #  Module : LightApp
25 #  $Header$
26 #
27 include $(top_srcdir)/adm_local/unix/make_common_starter.am
28
29 lib_LTLIBRARIES = libLightApp.la
30
31 salomeinclude_HEADERS =                 \
32         LightApp.h                      \
33         LightApp_AboutDlg.h             \
34         LightApp_Application.h          \
35         LightApp_DataModel.h            \
36         LightApp_DataObject.h           \
37         LightApp_DataOwner.h            \
38         LightApp_DataSubOwner.h         \
39         LightApp_Dialog.h               \
40         LightApp_Displayer.h            \
41         LightApp_Driver.h               \
42         LightApp_EventFilter.h          \
43         LightApp_HDFDriver.h            \
44         LightApp_Module.h               \
45         LightApp_ModuleAction.h         \
46         LightApp_ModuleDlg.h            \
47         LightApp_NameDlg.h              \
48         LightApp_OBSelector.h           \
49         LightApp_Operation.h            \
50         LightApp_Selection.h            \
51         LightApp_SelectionMgr.h         \
52         LightApp_ShowHideOp.h           \
53         LightApp_Study.h                \
54         LightApp_SwitchOp.h             \
55         LightApp_Preferences.h          \
56         LightApp_PreferencesDlg.h       \
57         LightApp_UpdateFlags.h
58
59 #       LightApp_OBFilter.h
60
61 if ENABLE_VTKVIEWER
62 if ENABLE_SALOMEOBJECT
63   salomeinclude_HEADERS += LightApp_VTKSelector.h
64 endif
65 endif
66 if ENABLE_OCCVIEWER
67   salomeinclude_HEADERS += LightApp_OCCSelector.h
68 endif
69 if ENABLE_GLVIEWER
70   salomeinclude_HEADERS += LightApp_GLSelector.h
71 endif
72 if ENABLE_PLOT2DVIEWER
73   salomeinclude_HEADERS += LightApp_Plot2dSelector.h
74 endif
75
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       \
83         LightApp_Dialog.cxx             \
84         LightApp_Displayer.cxx          \
85         LightApp_Driver.cxx             \
86         LightApp_EventFilter.cxx        \
87         LightApp_HDFDriver.cxx          \
88         LightApp_Module.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         \
97         LightApp_Study.cxx              \
98         LightApp_SwitchOp.cxx           \
99         LightApp_Preferences.cxx        \
100         LightApp_PreferencesDlg.cxx
101
102 #       LightApp_OBFilter.cxx
103
104 if ENABLE_VTKVIEWER
105 if ENABLE_SALOMEOBJECT
106   dist_libLightApp_la_SOURCES += LightApp_VTKSelector.cxx
107 endif
108 endif
109 if ENABLE_OCCVIEWER
110   dist_libLightApp_la_SOURCES += LightApp_OCCSelector.cxx
111 endif
112 if ENABLE_GLVIEWER
113   dist_libLightApp_la_SOURCES += LightApp_GLSelector.cxx
114 endif
115 if ENABLE_PLOT2DVIEWER
116   dist_libLightApp_la_SOURCES += LightApp_Plot2dSelector.cxx
117 endif
118
119 MOC_FILES =                             \
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
136
137 if ENABLE_VTKVIEWER
138 if ENABLE_SALOMEOBJECT
139   MOC_FILES += LightApp_VTKSelector_moc.cxx
140 endif
141 endif
142 if ENABLE_OCCVIEWER
143   MOC_FILES += LightApp_OCCSelector_moc.cxx
144 endif
145 if ENABLE_GLVIEWER
146   MOC_FILES += LightApp_GLSelector_moc.cxx
147 endif
148 if ENABLE_PLOT2DVIEWER
149   MOC_FILES += LightApp_Plot2dSelector_moc.cxx
150 endif
151 nodist_libLightApp_la_SOURCES = $(MOC_FILES)
152
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
162
163 nodist_salomeres_DATA =         \
164         LightApp_images.qm      \
165         LightApp_msg_en.qm
166
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)
172
173 if ENABLE_VTKVIEWER
174   libLightApp_la_CPPFLAGS += $(VTK_INCLUDES) -I$(srcdir)/../VTKViewer
175 else
176   libLightApp_la_CPPFLAGS += -DDISABLE_VTKVIEWER
177 endif
178 if ENABLE_PLOT2DVIEWER
179   libLightApp_la_CPPFLAGS += $(QWT_INCLUDES) -I$(srcdir)/../Plot2d
180 else
181   libLightApp_la_CPPFLAGS += -DDISABLE_PLOT2DVIEWER
182 endif
183 libLightApp_la_CPPFLAGS+= -I$(srcdir)/../QxScene
184
185 if ENABLE_OCCVIEWER
186   libLightApp_la_CPPFLAGS += -I$(srcdir)/../OCCViewer
187 else !ENABLE_OCCVIEWER
188   libLightApp_la_CPPFLAGS += -DDISABLE_OCCVIEWER
189 endif
190 if ENABLE_PYCONSOLE
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
195 endif
196 if ENABLE_GLVIEWER
197   libLightApp_la_CPPFLAGS += -I$(srcdir)/../GLViewer
198 else !ENABLE_GLVIEWER
199   libLightApp_la_CPPFLAGS += -DDISABLE_GLVIEWER
200 endif
201 if ENABLE_SUPERVGRAPHVIEWER
202   libLightApp_la_CPPFLAGS += -I$(srcdir)/../SUPERVGraph
203 else !ENABLE_SUPERVGRAPHVIEWER
204   libLightApp_la_CPPFLAGS += -DDISABLE_SUPERVGRAPHVIEWER
205 endif
206 if ENABLE_QXGRAPHVIEWER
207   libLightApp_la_CPPFLAGS += -I$(srcdir)/../QxGraph
208 else !ENABLE_QXGRAPHVIEWER
209   libLightApp_la_CPPFLAGS += -DDISABLE_QXGRAPHVIEWER
210 endif
211
212 if ENABLE_SALOMEOBJECT
213
214   libLightApp_la_CPPFLAGS += -I$(srcdir)/../OBJECT
215 if ENABLE_PLOT2DVIEWER
216   libLightApp_la_CPPFLAGS += -I$(srcdir)/../SPlot2d
217 endif
218 if ENABLE_OCCVIEWER
219   libLightApp_la_CPPFLAGS += -I$(srcdir)/../SOCC
220 endif
221 if ENABLE_VTKVIEWER
222   libLightApp_la_CPPFLAGS += -I$(srcdir)/../SVTK
223 endif
224 else !ENABLE_SALOMEOBJECT
225   libLightApp_la_CPPFLAGS += -DDISABLE_SALOMEOBJECT
226   
227 endif
228
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
234
235 if ENABLE_SALOMEOBJECT
236   libLightApp_la_LIBADD += ../OBJECT/libSalomeObject.la
237 endif
238 if ENABLE_VTKVIEWER
239   libLightApp_la_LIBADD +=  $(VTK_LIBS) ../VTKViewer/libVTKViewer.la
240 if ENABLE_SALOMEOBJECT
241   libLightApp_la_LIBADD += ../SVTK/libSVTK.la
242 endif
243 endif
244 if ENABLE_OCCVIEWER
245   libLightApp_la_LIBADD += ../OCCViewer/libOCCViewer.la
246 if ENABLE_SALOMEOBJECT
247   libLightApp_la_LIBADD += ../SOCC/libSOCC.la
248 endif
249 endif
250 if ENABLE_GLVIEWER
251   libLightApp_la_LIBADD += ../GLViewer/libGLViewer.la
252 endif
253 if ENABLE_PLOT2DVIEWER
254   libLightApp_la_LIBADD += ../Plot2d/libPlot2d.la
255 if ENABLE_SALOMEOBJECT
256   libLightApp_la_LIBADD += ../SPlot2d/libSPlot2d.la
257 endif
258 endif
259 if ENABLE_PYCONSOLE
260   libLightApp_la_LIBADD += ../PyInterp/libPyInterp.la ../PyConsole/libPyConsole.la
261 endif
262 if ENABLE_SUPERVGRAPHVIEWER
263   libLightApp_la_LIBADD += ../SUPERVGraph/libSUPERVGraph.la
264 endif
265 if ENABLE_QXGRAPHVIEWER
266   libLightApp_la_LIBADD += ../QxGraph/libQxGraph.la
267 endif
268   libLightApp_la_LIBADD+= ../QxScene/libQxScene.la