Enable helpbrowser within YaSp
[scilab.git] / scilab / modules / gui / Makefile.am
1 #
2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) INRIA   - 2006-2008 - Sylvestre Ledru
4 # Copyright (C) INRIA   - 2007 - Vincent COUVERT
5 # Copyright (C) DIGITEO - 2009 - Sylvestre Ledru
6 # Copyright (C) DIGITEO - 2009 - Pierre MARECHAL
7 # Copyright (C) DIGITEO - 2010 - ClĂ©ment DAVID
8 #
9 # This file must be used under the terms of the CeCILL.
10 # This source file is licensed as described in the file COPYING, which
11 # you should have received as part of this distribution.  The terms
12 # are also available at
13 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
14 #
15
16 #### Target ######
17 modulename=gui
18
19
20 #### gui : Conf files ####
21 libscigui_la_rootdir = $(mydatadir)
22 libscigui_la_root_DATA =  license.txt version.xml
23
24
25 #### gui : init scripts ####
26 libscigui_la_etcdir = $(mydatadir)/etc
27 libscigui_la_etc_DATA = etc/gui.quit \
28 etc/gui.start \
29 etc/graphics_menubar.xml \
30 etc/graphics_toolbar.xml \
31 etc/helpbrowser_menubar.xml \
32 etc/main_menubar.xml \
33 etc/main_toolbar.xml \
34 etc/flexdock-themes.xml
35
36 #### gui : tree functions ####
37 MACROSDIRSEXT = macros/tree
38
39 include $(top_srcdir)/Makefile.incl.am
40
41 GUI_C_SOURCES = \
42 src/c/TerminateGui.c \
43 src/c/buildMainWindowTitle.c \
44 src/c/getMainWindowTitle.c \
45 src/c/InitializeGUI.c \
46 src/c/setMainWindowTitle.c \
47 src/c/addmenu.c \
48 src/c/CreateUIControl.c \
49 src/c/CreateUimenu.c \
50 src/c/InitWaitBar.c \
51 src/c/InitProgressionBar.c \
52 src/c/CreateUIContextMenu.c \
53 src/c/UicontrolStyleToString.c \
54 src/c/checkColorRange.c \
55 src/c/messageboxoptions.c
56
57 GUI_CPP_SOURCES = src/cpp/InitUIMenu.cpp \
58 src/jni/CallScilabBridge.cpp \
59 src/jni/Jxclick.cpp \
60 src/cpp/DestroyUimenu.cpp \
61 src/cpp/DestroyUicontrol.cpp \
62 src/cpp/DestroyJavaUiobject.cpp \
63 src/cpp/DestroyWaitBar.cpp \
64 src/cpp/CallJxclick.cpp \
65 src/jni/Jxgetmouse.cpp \
66 src/cpp/CallJxgetmouse.cpp \
67 src/cpp/CallColorChooser.cpp \
68 src/cpp/CallFontChooser.cpp \
69 src/cpp/CallFigure.cpp \
70 src/cpp/CallMessageBox.cpp \
71 src/cpp/CallMainWindow.cpp \
72 src/cpp/CallWaitBar.cpp \
73 src/cpp/CallHelpBrowser.cpp \
74 src/cpp/PushButton.cpp \
75 src/cpp/EditBox.cpp \
76 src/cpp/Label.cpp \
77 src/cpp/CheckBox.cpp \
78 src/cpp/RadioButton.cpp \
79 src/cpp/Slider.cpp \
80 src/cpp/PopupMenu.cpp \
81 src/cpp/ContextMenu.cpp \
82 src/cpp/ListBox.cpp \
83 src/cpp/Frame.cpp \
84 src/cpp/Toolbar.cpp \
85 src/cpp/Widget.cpp \
86 src/cpp/SetUimenuLabel.cpp \
87 src/cpp/GetUimenuLabel.cpp \
88 src/cpp/GetUicontrolStyle.cpp \
89 src/cpp/SetUicontrolString.cpp \
90 src/cpp/GetUicontrolString.cpp \
91 src/cpp/SetUicontrolParent.cpp \
92 src/cpp/SetUicontrolBackgroundColor.cpp \
93 src/cpp/GetUicontrolBackgroundColor.cpp \
94 src/cpp/SetUiobjectForegroundColor.cpp \
95 src/cpp/GetUiobjectForegroundColor.cpp \
96 src/cpp/SetUicontrolPosition.cpp \
97 src/cpp/GetUicontrolPosition.cpp \
98 src/cpp/SetUicontrolFontName.cpp \
99 src/cpp/GetUicontrolFontName.cpp \
100 src/cpp/SetUicontrolFontWeight.cpp \
101 src/cpp/GetUicontrolFontWeight.cpp \
102 src/cpp/SetUicontrolFontUnits.cpp \
103 src/cpp/GetUicontrolFontUnits.cpp \
104 src/cpp/SetUicontrolFontSize.cpp \
105 src/cpp/GetUicontrolFontSize.cpp \
106 src/cpp/SetUicontrolFontAngle.cpp \
107 src/cpp/GetUicontrolFontAngle.cpp \
108 src/cpp/SetUiobjectCallback.cpp \
109 src/cpp/GetUiobjectCallback.cpp \
110 src/cpp/SetUiobjectTag.cpp \
111 src/cpp/GetUiobjectTag.cpp \
112 src/cpp/SetUiobjectEnable.cpp \
113 src/cpp/GetUiobjectEnable.cpp \
114 src/cpp/SetUimenuChecked.cpp \
115 src/cpp/GetUimenuChecked.cpp \
116 src/cpp/SetUicontrolMin.cpp \
117 src/cpp/GetUicontrolMin.cpp \
118 src/cpp/SetUicontrolMax.cpp \
119 src/cpp/GetUicontrolMax.cpp \
120 src/cpp/SetUicontrolValue.cpp \
121 src/cpp/GetUicontrolValue.cpp \
122 src/cpp/SetUicontrolListboxTop.cpp \
123 src/cpp/GetUicontrolListboxTop.cpp \
124 src/cpp/SetUicontrolUnits.cpp \
125 src/cpp/GetUicontrolUnits.cpp \
126 src/cpp/SetUicontrolRelief.cpp \
127 src/cpp/GetUicontrolRelief.cpp \
128 src/cpp/SetUicontrolHorizontalAlignment.cpp \
129 src/cpp/GetUicontrolHorizontalAlignment.cpp \
130 src/cpp/SetUicontrolVerticalAlignment.cpp \
131 src/cpp/GetUicontrolVerticalAlignment.cpp \
132 src/cpp/SetUicontrolSliderStep.cpp \
133 src/cpp/GetUicontrolSliderStep.cpp \
134 src/cpp/SetUiobjectVisible.cpp \
135 src/cpp/GetUiobjectVisible.cpp \
136 src/cpp/UnitsConversion.cpp \
137 src/cpp/GetScreenProperty.cpp \
138 src/cpp/CallClipboard.cpp \
139 src/cpp/exportUserInterface.cpp \
140 src/jni/LookAndFeelManager.cpp \
141 sci_gateway/cpp/sci_raise_window.cpp \
142 sci_gateway/cpp/sci_usecanvas.cpp \
143 src/jni/GiwsException.cpp \
144 src/jni/Juigetfile.cpp \
145 src/cpp/CallJuigetfile.cpp \
146 src/cpp/displaytree.cpp \
147 src/jni/ScilabDisplayTree.cpp
148
149
150 GIWS_WRAPPERS = \
151 src/jni/CallScilabBridge.giws.xml \
152 src/jni/Jxclick.giws.xml \
153 src/jni/Jxgetmouse.giws.xml \
154 src/jni/LookAndFeelManager.giws.xml \
155 src/jni/UIElementMapper.giws.xml \
156 src/jni/Juigetfile.giws.xml \
157 src/jni/ScilabDisplayTree.giws.xml
158
159
160 if GIWS
161 BUILT_SOURCES=giws
162 endif
163
164
165 GATEWAY_C_SOURCES = sci_gateway/c/sci_x_choice.c \
166 sci_gateway/c/gw_gui.c \
167 sci_gateway/c/sci_x_mdialog.c \
168 sci_gateway/c/sci_x_dialog.c \
169 sci_gateway/c/sci_x_choose.c \
170 sci_gateway/c/sci_x_choose_modeless.c \
171 sci_gateway/c/sci_unsetmenu.c \
172 sci_gateway/c/sci_delmenu.c \
173 sci_gateway/c/sci_setmenu.c \
174 sci_gateway/c/sci_ClipBoard.c \
175 sci_gateway/c/sci_toolbar.c \
176 sci_gateway/c/sci_uicontrol.c \
177 sci_gateway/c/sci_uicontextmenu.c \
178 sci_gateway/c/sci_uimenu.c \
179 sci_gateway/c/sci_uiwait.c \
180 sci_gateway/c/sci_mpopup.c \
181 sci_gateway/c/sci_messagebox.c \
182 sci_gateway/c/sci_waitbar.c \
183 sci_gateway/c/sci_progressionbar.c \
184 sci_gateway/c/sci_uigetfont.c \
185 sci_gateway/c/sci_uigetcolor.c \
186 sci_gateway/c/sci_getcallbackobject.c \
187 sci_gateway/c/sci_exportUI.c
188
189 GATEWAY_CPP_SOURCES = \
190 sci_gateway/cpp/sci_printsetupbox.cpp \
191 sci_gateway/cpp/sci_toprint.cpp \
192 sci_gateway/cpp/sci_printfigure.cpp \
193 sci_gateway/cpp/sci_setlookandfeel.cpp \
194 sci_gateway/cpp/sci_getinstalledlookandfeels.cpp \
195 sci_gateway/cpp/sci_getlookandfeel.cpp \
196 sci_gateway/cpp/sci_uigetdir.cpp \
197 sci_gateway/cpp/sci_uigetfile.cpp \
198 sci_gateway/cpp/sci_displaytree.cpp \
199 sci_gateway/cpp/sci_uiputfile.cpp \
200 sci_gateway/cpp/sci_about.cpp \
201 sci_gateway/cpp/sci_helpbrowser.cpp \
202 sci_gateway/cpp/gui_gw.cpp
203
204 libscigui_la_CFLAGS=    -I$(srcdir)/src/c/ \
205                         -I$(srcdir)/src/c/xsci/ \
206                         -I$(srcdir)/includes/ \
207                         -I$(top_srcdir)/modules/graphics/includes/ \
208                         -I$(top_srcdir)/libs/MALLOC/includes/ \
209                         -I$(top_srcdir)/modules/core/src/c/ \
210                         -I$(top_srcdir)/modules/string/includes/ \
211                         -I$(top_srcdir)/modules/tclsci/includes/ \
212                         -I$(top_srcdir)/modules/jvm/includes/ \
213                         -I$(top_srcdir)/modules/shell/includes/ \
214                         -I$(top_srcdir)/modules/fileio/includes/ \
215                         $(TCL_INC_PATH) \
216                         $(Tk_INC_PATH) \
217                         -I$(top_srcdir)/libs/doublylinkedlist/includes \
218                         -I$(top_srcdir)/libs/hashtable \
219                         -I$(top_srcdir)/modules/output_stream/includes \
220                         -I$(top_srcdir)/modules/dynamic_link/includes \
221                         -I$(srcdir)/src/cpp/ \
222                         -I$(top_srcdir)/modules/api_scilab/includes \
223                         -I$(top_srcdir)/modules/system_env/includes \
224                         -I$(top_srcdir)/modules/graphics/src/c/getHandleProperty/
225
226 libscigui_la_CFLAGS += $(JAVA_JNI_INCLUDE) \
227                         -I$(top_srcdir)/modules/jvm/includes/ \
228                         -I$(top_srcdir)/modules/renderer/includes/ \
229                         -I$(top_srcdir)/modules/string/includes/ \
230                         -I$(top_srcdir)/modules/system_env/includes/ \
231                         -I$(top_srcdir)/modules/operations/includes/
232
233 libscigui_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
234                         -I$(srcdir)/includes/ \
235                         -I$(srcdir)/src/cpp/ \
236                         -I$(srcdir)/src/c/ \
237                         -I$(srcdir)/src/jni/ \
238                         -I$(top_srcdir)/modules/jvm/includes/ \
239                         -I$(top_srcdir)/modules/fileio/includes/ \
240                         -I$(top_srcdir)/modules/renderer/src/jni/ \
241                         -I$(top_srcdir)/modules/renderer/includes/ \
242                         -I$(top_srcdir)/modules/renderer/src/cpp/ \
243                         -I$(top_srcdir)/modules/renderer/src/cpp/figureDrawing/ \
244                         -I$(top_srcdir)/modules/graphic_export/includes/ \
245                         -I$(top_srcdir)/libs/doublylinkedlist/includes/ \
246                         -I$(top_srcdir)/modules/output_stream/includes \
247                         -I$(top_srcdir)/modules/graphics/includes/ \
248                         -I$(top_srcdir)/modules/graphics/src/c/getHandleProperty/ \
249                         -I$(top_srcdir)/modules/graphic_export/includes/ \
250                         -I$(top_srcdir)/modules/string/includes/ \
251                         -I$(top_srcdir)/modules/api_scilab/includes \
252                         -I$(top_srcdir)/modules/operations/includes/ \
253                         -I$(top_srcdir)/modules/types/includes/ \
254                         -I$(top_srcdir)/modules/abstractSyntaxTree/includes/ \
255                         -I$(top_srcdir)/modules/system_env/includes/ \
256                         -I$(top_srcdir)/modules/symbol/includes/ \
257                         -I$(top_srcdir)/modules/types/includes/
258
259 # Without the GUI module
260 libscigui_disable_la_CFLAGS = -Iincludes/ \
261                         -I$(top_srcdir)/modules/api_scilab/includes \
262                         -I$(srcdir)/includes/ \
263                         -I$(top_srcdir)/modules/output_stream/includes
264
265 libscigui_disable_la_CPPFLAGS = -Iincludes/ \
266                                                                 -I$(top_srcdir)/modules/abstractSyntaxTree/includes/ \
267                                                                 -I$(top_srcdir)/modules/types/includes/
268
269 GUI_DISABLE_C_SOURCES = src/nogui/nogui.c
270 GUI_DISABLE_CPP_SOURCES = src/nogui/nogui_gw.cpp
271 libscigui_disable_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)
272 libscigui_disable_la_SOURCES = $(GUI_DISABLE_C_SOURCES) $(GUI_DISABLE_CPP_SOURCES)
273
274
275 pkglib_LTLIBRARIES = libscigui-disable.la
276
277 if GUI
278 pkglib_LTLIBRARIES += libscigui.la
279 endif
280
281 libscigui_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)  $(X_LIBS) $(X_EXTRA_LIBS)
282
283 libscigui_la_SOURCES = $(GUI_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(GUI_CPP_SOURCES)
284
285 # For the code check (splint)
286 CHECK_SRC= $(GUI_C_SOURCES) $(GATEWAY_C_SOURCES)
287 INCLUDE_FLAGS = $(libscigui_la_CFLAGS)
288
289 #  cyclic $(top_builddir)/modules/graphics/libscigraphics.la $(top_builddir)/modules/jvm/libscijvm.la
290 libscigui_la_LIBADD = $(top_builddir)/modules/renderer/libscirenderer.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
291
292
293 #### gui : gateway declaration ####
294 libscigui_la_sci_gatewaydir = $(mydatadir)/sci_gateway
295 libscigui_la_sci_gateway_DATA = sci_gateway/gui_gateway.xml
296
297
298 #### gui : icons files ####
299 #
300 # Generated with:
301 #    $ find images/ -type f -printf "%p \\\\\n" -name *.svg -or -name *.gif -or -name *.jpg -or -name *.png |sort -u
302 libscigui_la_iconsdir=$(mydatadir)/
303 nobase_libscigui_la_icons_DATA = images/icons/32x32/apps/accessories-text-editor.png \
304 images/icons/32x32/apps/rrze_table.png \
305 images/icons/32x32/apps/utilities-system-monitor.png \
306 images/icons/16x16/actions/go-bottom.png \
307 images/icons/16x16/actions/go-top.png \
308 images/icons/16x16/actions/view-refresh.png \
309 images/icons/aboutscilab.png \
310 images/icons/accessories-text-editor.png \
311 images/icons/applications-system.png \
312 images/icons/check-icon.png \
313 images/icons/close-tab.png \
314 images/icons/datatips.png \
315 images/icons/document-new.png \
316 images/icons/document-open.png \
317 images/icons/document-open-sci.png \
318 images/icons/document-print.png \
319 images/icons/document-print-preview.png \
320 images/icons/document-save-as.png \
321 images/icons/document-save.png \
322 images/icons/edit-copy.png \
323 images/icons/edit-cut.png \
324 images/icons/edit-delete.png \
325 images/icons/edit-find.png \
326 images/icons/edit-find-replace.png \
327 images/icons/edit-paste.png \
328 images/icons/edit-redo.png \
329 images/icons/edit-undo.png \
330 images/icons/emblem-readonly.png \
331 images/icons/folder.png \
332 images/icons/format-text-bold.png \
333 images/icons/graphic-window.png \
334 images/icons/help-browser.png \
335 images/icons/media-floppy.png \
336 images/icons/media-playback-start.png \
337 images/icons/package-x-generic.png \
338 images/icons/printer.png \
339 images/icons/process-working.png \
340 images/icons/puff.png \
341 images/icons/rotate.png \
342 images/icons/scilab_close_active.png \
343 images/icons/scilab_close_default.png \
344 images/icons/scilab.png \
345 images/icons/transform-rotate.png \
346 images/icons/undock_active.png \
347 images/icons/undock_default.png \
348 images/icons/utilities-system-monitor.png \
349 images/icons/window-new.png \
350 images/icons/zoom-area-cursor.png \
351 images/icons/zoom-fit-drawing.png \
352 images/icons/zoom-fit-selection.png \
353 images/icons/zoom-in.png \
354 images/icons/zoom-original.png \
355 images/icons/zoom-out.png
356
357 if GUI
358 USEANT=1
359 endif