Salome HOME
Join modifications from branch OCC_development_for_3_2_0a2
[modules/gui.git] / src / LightApp / Makefile.in
1 #  File   : Makefile.in
2 #  Author : OCC team (OCN)
3 #  Module : LightApp
4 #  $Header$
5
6 top_srcdir=@top_srcdir@
7 top_builddir=../..
8 srcdir=@srcdir@
9 VPATH=.:@srcdir@:@srcdir@/resources
10
11
12 @COMMENCE@
13
14 # header files 
15 EXPORT_HEADERS= LightApp.h \
16                 LightApp_AboutDlg.h \
17                 LightApp_Application.h \
18                 LightApp_DataModel.h \
19                 LightApp_DataObject.h \
20                 LightApp_DataOwner.h \
21                 LightApp_DataSubOwner.h \
22                 LightApp_Dialog.h \
23                 LightApp_Displayer.h \
24                 LightApp_Driver.h \
25                 LightApp_HDFDriver.h \
26                 LightApp_Module.h \
27                 LightApp_ModuleDlg.h \
28                 LightApp_NameDlg.h \
29                 LightApp_OBFilter.h \
30                 LightApp_OBSelector.h \
31                 LightApp_Operation.h \
32                 LightApp_Selection.h \
33                 LightApp_SelectionMgr.h \
34                 LightApp_ShowHideOp.h \
35                 LightApp_Study.h \
36                 LightApp_SwitchOp.h \
37                 LightApp_Preferences.h \
38                 LightApp_PreferencesDlg.h \
39                 LightApp_RootObject.h \
40                 LightApp_UpdateFlags.h \
41                 LightApp_WidgetContainer.h
42
43 ifneq ($(DISABLE_VTKVIEWER),yes)
44 ifneq ($(DISABLE_SALOMEOBJECT),yes)
45   EXPORT_HEADERS+= LightApp_VTKSelector.h
46 endif
47 endif
48 ifneq ($(DISABLE_OCCVIEWER),yes)
49   EXPORT_HEADERS+= LightApp_OCCSelector.h
50 endif
51 ifneq ($(DISABLE_GLVIEWER),yes)
52   EXPORT_HEADERS+= LightApp_GLSelector.h
53 endif
54
55 # .po files to transform in .qm
56 PO_FILES = LightApp_images.po \
57            LightApp_msg_en.po
58
59 # Libraries targets
60 LIB = libLightApp.la
61
62 LIB_SRC= LightApp_AboutDlg.cxx \
63          LightApp_Application.cxx \
64          LightApp_DataModel.cxx \
65          LightApp_DataObject.cxx \
66          LightApp_DataOwner.cxx \
67          LightApp_DataSubOwner.cxx \
68          LightApp_Dialog.cxx \
69          LightApp_Displayer.cxx \
70          LightApp_Driver.cxx \
71          LightApp_HDFDriver.cxx \
72          LightApp_Module.cxx \
73          LightApp_ModuleDlg.cxx \
74          LightApp_NameDlg.cxx \
75          LightApp_OBFilter.cxx \
76          LightApp_OBSelector.cxx \
77          LightApp_Operation.cxx \
78          LightApp_Selection.cxx \
79          LightApp_SelectionMgr.cxx \
80          LightApp_ShowHideOp.cxx \
81          LightApp_Study.cxx \
82          LightApp_SwitchOp.cxx \
83          LightApp_Preferences.cxx \
84          LightApp_PreferencesDlg.cxx \
85          LightApp_WidgetContainer.cxx
86
87 ifneq ($(DISABLE_VTKVIEWER),yes)
88 ifneq ($(DISABLE_SALOMEOBJECT),yes)
89   LIB_SRC+= LightApp_VTKSelector.cxx
90 endif
91 endif
92 ifneq ($(DISABLE_OCCVIEWER),yes)
93   LIB_SRC+= LightApp_OCCSelector.cxx
94 endif
95 ifneq ($(DISABLE_GLVIEWER),yes)
96   LIB_SRC+= LightApp_GLSelector.cxx
97 endif
98
99 LIB_MOC = LightApp_AboutDlg.h \
100           LightApp_Application.h \
101           LightApp_DataModel.h \
102           LightApp_Dialog.h \
103           LightApp_OBSelector.h \
104           LightApp_Operation.h \
105           LightApp_Module.h \
106           LightApp_ModuleDlg.h \
107           LightApp_NameDlg.h \
108           LightApp_SelectionMgr.h \
109           LightApp_ShowHideOp.h \
110           LightApp_Study.h \
111           LightApp_SwitchOp.h \
112           LightApp_Preferences.h \
113           LightApp_PreferencesDlg.h \
114           LightApp_WidgetContainer.h
115
116 ifneq ($(DISABLE_VTKVIEWER),yes)
117 ifneq ($(DISABLE_SALOMEOBJECT),yes)
118   LIB_MOC+= LightApp_VTKSelector.h
119 endif
120 endif
121 ifneq ($(DISABLE_OCCVIEWER),yes)
122   LIB_MOC+= LightApp_OCCSelector.h
123 endif
124 ifneq ($(DISABLE_GLVIEWER),yes)
125   LIB_MOC+= LightApp_GLSelector.h
126 endif
127
128 RESOURCES_FILES = icon_about.png \
129                   icon_applogo.png \
130                   icon_default.png \
131                   icon_module.png \
132                   icon_module_big.png \
133                   icon_select.png \
134                   LightApp.ini \
135                   LightApp.xml
136
137 CPPFLAGS+=$(PYTHON_INCLUDES) $(QT_INCLUDES) $(OCC_INCLUDES) \
138         $(HDF5_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
139
140 ifneq ($(DISABLE_VTKVIEWER),yes)
141   CPPFLAGS+= $(VTK_INCLUDES)
142 else
143   CPPFLAGS+= -DDISABLE_VTKVIEWER
144 endif
145 ifneq ($(DISABLE_PLOT2DVIEWER),yes)
146   CPPFLAGS+= $(QWT_INCLUDES)
147 else
148   CPPFLAGS+= -DDISABLE_PLOT2DVIEWER
149 endif
150 ifeq ($(DISABLE_OCCVIEWER),yes)
151   CPPFLAGS+= -DDISABLE_OCCVIEWER
152 endif
153 ifneq ($(DISABLE_PYCONSOLE),yes)
154   CPPFLAGS+= $(PYTHON_INCLUDES)
155 else
156   CPPFLAGS+= -DDISABLE_PYCONSOLE
157 endif
158 ifeq ($(DISABLE_GLVIEWER),yes)
159   CPPFLAGS+= -DDISABLE_GLVIEWER
160 endif
161 ifeq ($(DISABLE_SUPERVGRAPHVIEWER),yes)
162   CPPFLAGS+= -DDISABLE_SUPERVGRAPHVIEWER
163 endif
164 ifeq ($(DISABLE_SALOMEOBJECT),yes)
165   CPPFLAGS+= -DDISABLE_SALOMEOBJECT
166 endif
167
168 LDFLAGS+=$(QT_MT_LIBS)
169 ifneq ($(DISABLE_PYCONSOLE),yes)
170   LDFLAGS+= $(PYTHON_LIBS)
171 endif
172
173 LIBS+= -lsuit -lstd -lCAM -lObjBrowser -lLogWindow $(CAS_KERNEL) -lSalomePrs \
174         $(HDF5_LIBS) -L$(KERNEL_ROOT_DIR)/lib/salome -lSalomeHDFPersist
175
176 ifneq ($(DISABLE_SALOMEOBJECT),yes)
177   LIBS+= -lSalomeObject
178 endif
179 ifneq ($(DISABLE_VTKVIEWER),yes)
180   LIBS+= -lVTKViewer
181 ifneq ($(DISABLE_SALOMEOBJECT),yes)
182   LIBS+= -lSVTK
183 endif
184 endif
185 ifneq ($(DISABLE_OCCVIEWER),yes)
186   LIBS+= -lOCCViewer
187 ifneq ($(DISABLE_SALOMEOBJECT),yes)
188   LIBS+= -lSOCC
189 endif
190 endif
191 ifneq ($(DISABLE_GLVIEWER),yes)
192   LIBS+= -lGLViewer
193 endif
194 ifneq ($(DISABLE_PLOT2DVIEWER),yes)
195   LIBS+= -lPlot2d
196 ifneq ($(DISABLE_SALOMEOBJECT),yes)
197   LIBS+= -lSPlot2d
198 endif
199 endif
200 ifneq ($(DISABLE_PYCONSOLE),yes)
201   LIBS+= -lPyInterp -lPythonConsole
202 endif
203 ifneq ($(DISABLE_SUPERVGRAPHVIEWER),yes)
204   LIBS+= -lSUPERVGraph
205 endif
206
207 @CONCLUDE@