x_choices: use "xchoicesi" as an helper gateway
[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 # Copyright (C) 2012 - 2016 - Scilab Enterprises
10 #
11 # This file is hereby licensed under the terms of the GNU GPL v2.0,
12 # pursuant to article 5.3.4 of the CeCILL v.2.1.
13 # This file was originally licensed under the terms of the CeCILL v2.1,
14 # and continues to be available under such terms.
15 # For more information, see the COPYING file which you should have received
16 # along with this program.
17 #
18
19 #### Target ######
20 modulename=gui
21
22
23 #### gui : Conf files ####
24 libscigui_la_rootdir = $(mydatadir)
25 libscigui_la_root_DATA =  license.txt
26
27
28 #### gui : init scripts ####
29 libscigui_la_etcdir = $(mydatadir)/etc
30 libscigui_la_etc_DATA = \
31         etc/gui.quit \
32         etc/gui.start \
33         etc/graphics_menubar.xml \
34         etc/graphics_toolbar.xml \
35         etc/helpbrowser_menubar.xml \
36         etc/main_menubar.xml \
37         etc/main_toolbar.xml \
38         etc/flexdock-themes.xml \
39         etc/integratedConfiguration.xml \
40         etc/simpleConfiguration.xml \
41         etc/XConfiguration-colors.xml \
42         etc/XConfiguration-colors.xsl \
43         etc/XConfiguration-font.xml \
44         etc/XConfiguration-font.xsl \
45         etc/XConfiguration-web.xml \
46         etc/XConfiguration-web.xsl \
47         etc/XConfiguration-toolbars.xml \
48         etc/XConfiguration-toolbars.xsl
49
50 #### gui : tree functions ####
51 MACROSDIRSEXT = macros/tree
52
53 GUI_C_SOURCES = \
54     src/c/buildMainWindowTitle.c \
55     src/c/getMainWindowTitle.c \
56     src/c/setMainWindowTitle.c \
57     src/c/addmenu.c \
58     src/c/CreateUimenu.c \
59     src/c/checkColorRange.c \
60     src/c/messageboxoptions.c \
61     src/c/ScilabTermination.c \
62     src/jni/ScilabTermination_wrap.c
63
64 GUI_CXX_SOURCES = \
65     src/cpp/InitializeGUI.cpp \
66     src/cpp/InitUIMenu.cpp \
67     src/jni/CallScilabBridge.cpp \
68     src/cpp/CreateUIControl.cpp \
69     src/jni/Jxclick.cpp \
70     src/jni/SwingView.cpp \
71     src/cpp/CallJxclick.cpp \
72     src/jni/Jxgetmouse.cpp \
73     src/cpp/CallJxgetmouse.cpp \
74     src/cpp/CallColorChooser.cpp \
75     src/cpp/CallFontChooser.cpp \
76     src/cpp/CallMessageBox.cpp \
77     src/cpp/CallHelpBrowser.cpp \
78     src/cpp/ContextMenu.cpp \
79     src/cpp/Widget.cpp \
80     src/cpp/SetUimenuLabel.cpp \
81     src/cpp/GetUimenuLabel.cpp \
82     src/cpp/GetUicontrolStyle.cpp \
83     src/cpp/SetUicontrolString.cpp \
84     src/cpp/GetUicontrolString.cpp \
85     src/cpp/SetUicontrolTooltipString.cpp \
86     src/cpp/GetUicontrolTooltipString.cpp \
87     src/cpp/SetUicontrolBackgroundColor.cpp \
88     src/cpp/GetUicontrolBackgroundColor.cpp \
89     src/cpp/SetUiobjectForegroundColor.cpp \
90     src/cpp/GetUiobjectForegroundColor.cpp \
91     src/cpp/SetUicontrolPosition.cpp \
92     src/cpp/GetUicontrolPosition.cpp \
93     src/cpp/SetUicontrolFontName.cpp \
94     src/cpp/GetUicontrolFontName.cpp \
95     src/cpp/SetUicontrolFontWeight.cpp \
96     src/cpp/GetUicontrolFontWeight.cpp \
97     src/cpp/SetUicontrolFontUnits.cpp \
98     src/cpp/GetUicontrolFontUnits.cpp \
99     src/cpp/SetUicontrolFontSize.cpp \
100     src/cpp/GetUicontrolFontSize.cpp \
101     src/cpp/SetUicontrolFontAngle.cpp \
102     src/cpp/GetUicontrolFontAngle.cpp \
103     src/cpp/SetUiobjectEnable.cpp \
104     src/cpp/GetUiobjectEnable.cpp \
105     src/cpp/SetUimenuChecked.cpp \
106     src/cpp/GetUimenuChecked.cpp \
107     src/cpp/SetUicontrolMin.cpp \
108     src/cpp/GetUicontrolMin.cpp \
109     src/cpp/SetUicontrolMax.cpp \
110     src/cpp/GetUicontrolMax.cpp \
111     src/cpp/SetUicontrolValue.cpp \
112     src/cpp/GetUicontrolValue.cpp \
113     src/cpp/SetUicontrolListboxTop.cpp \
114     src/cpp/GetUicontrolListboxTop.cpp \
115     src/cpp/SetUicontrolUnits.cpp \
116     src/cpp/GetUicontrolUnits.cpp \
117     src/cpp/SetUicontrolRelief.cpp \
118     src/cpp/GetUicontrolRelief.cpp \
119     src/cpp/SetUicontrolHorizontalAlignment.cpp \
120     src/cpp/GetUicontrolHorizontalAlignment.cpp \
121     src/cpp/SetUicontrolVerticalAlignment.cpp \
122     src/cpp/GetUicontrolVerticalAlignment.cpp \
123     src/cpp/SetUicontrolSliderStep.cpp \
124     src/cpp/GetUicontrolSliderStep.cpp \
125     src/cpp/SetUicontrolIcon.cpp \
126     src/cpp/GetUicontrolIcon.cpp \
127     src/cpp/SetConsoleShowHiddenHandles.cpp \
128     src/cpp/GetConsoleShowHiddenHandles.cpp \
129     src/cpp/UnitsConversion.cpp \
130     src/cpp/GetScreenProperty.cpp \
131     src/cpp/CallClipboard.cpp \
132     src/cpp/exportUserInterface.cpp \
133     src/jni/LookAndFeelManager.cpp \
134     src/jni/Juigetfile.cpp \
135     src/cpp/CallJuigetfile.cpp \
136     src/cpp/displaytree.cpp \
137     src/jni/ScilabDisplayTree.cpp \
138     src/jni/EditorManager.cpp \
139     src/jni/StartGED.cpp \
140     src/jni/StartPlotBrowser.cpp \
141     src/jni/DatatipManager.cpp \
142     src/jni/DatatipCreate.cpp \
143     src/jni/DatatipDelete.cpp \
144     src/jni/DatatipDrag.cpp \
145     src/jni/DatatipSetStyle.cpp \
146     src/jni/DatatipOrientation.cpp
147
148 GIWS_WRAPPERS = \
149     src/jni/SwingView.giws.xml \
150     src/jni/CallScilabBridge.giws.xml \
151     src/jni/Jxclick.giws.xml \
152     src/jni/Jxgetmouse.giws.xml \
153     src/jni/LookAndFeelManager.giws.xml \
154     src/jni/Juigetfile.giws.xml \
155     src/jni/ScilabDisplayTree.giws.xml \
156     src/jni/EditorManager.giws.xml \
157     src/jni/Datatip.giws.xml \
158     src/jni/StartGED.giws.xml \
159     src/jni/StartPlotBrowser.giws.xml
160
161 SWIG_WRAPPERS = src/jni/ScilabTermination.i
162
163 BUILT_SOURCES=
164 if GIWS
165 BUILT_SOURCES+=giws
166 endif
167 if SWIG
168 BUILT_SOURCES+=swig
169 endif
170
171 GATEWAY_C_SOURCES = \
172     sci_gateway/c/sci_x_choose.c \
173     sci_gateway/c/sci_x_choose_modeless.c \
174     sci_gateway/c/sci_unsetmenu.c \
175     sci_gateway/c/sci_delmenu.c \
176     sci_gateway/c/sci_setmenu.c \
177     sci_gateway/c/sci_toolbar.c \
178     sci_gateway/c/sci_uicontextmenu.c \
179     sci_gateway/c/sci_uicontrol.c \
180     sci_gateway/c/sci_uimenu.c \
181     sci_gateway/c/sci_uiwait.c \
182     sci_gateway/c/sci_mpopup.c \
183     sci_gateway/c/sci_messagebox.c \
184     sci_gateway/c/sci_waitbar.c \
185     sci_gateway/c/sci_progressionbar.c \
186     sci_gateway/c/sci_getcallbackobject.c \
187     sci_gateway/c/sci_exportUI.c \
188     sci_gateway/c/sci_figure.c
189
190 GATEWAY_CXX_SOURCES = \
191     sci_gateway/cpp/sci_printsetupbox.cpp \
192     sci_gateway/cpp/sci_toprint.cpp \
193     sci_gateway/cpp/sci_printfigure.cpp \
194     sci_gateway/cpp/sci_setlookandfeel.cpp \
195     sci_gateway/cpp/sci_getinstalledlookandfeels.cpp \
196     sci_gateway/cpp/sci_getlookandfeel.cpp \
197     sci_gateway/cpp/sci_uigetdir.cpp \
198     sci_gateway/cpp/sci_uigetfile.cpp \
199     sci_gateway/cpp/sci_uigetfont.cpp \
200     sci_gateway/cpp/sci_displaytree.cpp \
201     sci_gateway/cpp/sci_uiputfile.cpp \
202     sci_gateway/cpp/sci_about.cpp \
203     sci_gateway/cpp/sci_raise_window.cpp \
204     sci_gateway/cpp/sci_usecanvas.cpp \
205     sci_gateway/cpp/sci_helpbrowser.cpp \
206     sci_gateway/cpp/sci_fire_closing_finished.cpp \
207     sci_gateway/cpp/sci_useeditor.cpp \
208     sci_gateway/cpp/sci_openged.cpp \
209     sci_gateway/cpp/sci_datatipcreate.cpp \
210     sci_gateway/cpp/sci_datatipremove.cpp \
211     sci_gateway/cpp/sci_plotbrowser.cpp \
212     sci_gateway/cpp/sci_datatip_manager_mode.cpp \
213     sci_gateway/cpp/sci_datatip_toggle.cpp \
214     sci_gateway/cpp/sci_datatipmove.cpp \
215     sci_gateway/cpp/sci_datatip_set_style.cpp \
216     sci_gateway/cpp/sci_datatip_set_display.cpp \
217     sci_gateway/cpp/sci_datatip_set_interp.cpp \
218     sci_gateway/cpp/sci_datatip_set_orient.cpp \
219     sci_gateway/cpp/sci_saveGui.cpp \
220     sci_gateway/cpp/sci_loadGui.cpp \
221     sci_gateway/cpp/sci_xchoicesi.cpp \
222     sci_gateway/cpp/sci_uigetcolor.cpp \
223     sci_gateway/cpp/sci_ClipBoard.cpp \
224     sci_gateway/cpp/sci_x_mdialog.cpp \
225     sci_gateway/cpp/sci_x_dialog.cpp
226
227 libscigui_la_CPPFLAGS = \
228     -I$(srcdir)/includes/ \
229     -I$(srcdir)/src/cpp/ \
230     -I$(srcdir)/src/c/ \
231     -I$(srcdir)/src/jni/ \
232     -I$(top_srcdir)/modules/ast/includes/ast/ \
233     -I$(top_srcdir)/modules/ast/includes/exps/ \
234     -I$(top_srcdir)/modules/ast/includes/operations/ \
235     -I$(top_srcdir)/modules/ast/includes/parse/ \
236     -I$(top_srcdir)/modules/ast/includes/symbol/ \
237     -I$(top_srcdir)/modules/ast/includes/system_env/ \
238     -I$(top_srcdir)/modules/ast/includes/types/ \
239     -I$(top_srcdir)/modules/ast/includes/analysis/ \
240     -I$(top_srcdir)/modules/output_stream/includes \
241     -I$(top_srcdir)/modules/fileio/includes/ \
242     -I$(top_srcdir)/modules/graphics/includes/ \
243     -I$(top_srcdir)/modules/graphics/src/c/getHandleProperty/ \
244     -I$(top_srcdir)/modules/graphic_objects/includes/ \
245     -I$(top_srcdir)/modules/graphic_export/includes/ \
246     -I$(top_srcdir)/modules/jvm/includes/ \
247     -I$(top_srcdir)/modules/localization/includes/ \
248     -I$(top_srcdir)/modules/string/includes/ \
249     -I$(top_srcdir)/modules/api_scilab/includes \
250     -I$(top_srcdir)/modules/string/includes/ \
251     -I$(top_srcdir)/modules/commons/src/jni/ \
252     -I$(top_srcdir)/modules/dynamic_link/includes \
253     $(JAVA_JNI_INCLUDE) \
254     $(AM_CPPFLAGS)
255
256 # Without the GUI module
257 libscigui_disable_la_CPPFLAGS = \
258     -I$(srcdir)/includes/ \
259     -I$(top_srcdir)/modules/ast/includes/ast/ \
260     -I$(top_srcdir)/modules/ast/includes/exps/ \
261     -I$(top_srcdir)/modules/ast/includes/operations/ \
262     -I$(top_srcdir)/modules/ast/includes/parse/ \
263     -I$(top_srcdir)/modules/ast/includes/symbol/ \
264     -I$(top_srcdir)/modules/ast/includes/system_env/ \
265     -I$(top_srcdir)/modules/ast/includes/types/ \
266     -I$(top_srcdir)/modules/ast/includes/analysis/ \
267     -I$(top_srcdir)/modules/api_scilab/includes/ \
268     -I$(top_srcdir)/modules/localization/includes/ \
269     -I$(top_srcdir)/modules/output_stream/includes/ \
270     $(AM_CPPFLAGS)
271
272
273 GUI_DISABLE_C_SOURCES = src/nogui/nogui.c
274 libscigui_disable_la_SOURCES = $(GUI_DISABLE_C_SOURCES)
275
276
277 pkglib_LTLIBRARIES = libscigui-disable.la
278
279 if GUI
280 pkglib_LTLIBRARIES += libscigui.la
281 noinst_LTLIBRARIES = libscigui-algo.la
282 endif
283
284
285 libscigui_algo_la_SOURCES = $(GUI_C_SOURCES) $(GUI_CXX_SOURCES)
286 libscigui_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CXX_SOURCES)
287 libscigui_algo_la_CPPFLAGS = $(libscigui_la_CPPFLAGS)
288
289 # For the code check (splint)
290 CHECK_SRC= $(GUI_C_SOURCES) $(GATEWAY_C_SOURCES)
291 INCLUDE_FLAGS = $(libscigui_la_CPPFLAGS)
292
293 libscigui_la_LIBADD = libscigui-algo.la
294
295
296 #### gui : gateway declaration ####
297 libscigui_la_sci_gatewaydir = $(mydatadir)/sci_gateway
298 libscigui_la_sci_gateway_DATA = sci_gateway/gui_gateway.xml
299
300
301 #### gui : icons files ####
302 #
303 # Generated with:
304 #    $ find images/ -type f -printf "%p \\\\\n" -name *.svg -or -name *.gif -or -name *.jpg -or -name *.png |sort -u
305 libscigui_la_iconsdir=$(mydatadir)/
306
307 nobase_libscigui_la_icons_DATA = \
308 images/icons/16x16/actions/code-navigator.png \
309 images/icons/16x16/actions/color-fill.png \
310 images/icons/16x16/actions/document-new.png \
311 images/icons/16x16/actions/document-open.png \
312 images/icons/16x16/actions/document-open-sci.png \
313 images/icons/16x16/actions/document-print.png \
314 images/icons/16x16/actions/document-print-preview.png \
315 images/icons/16x16/actions/document-save-as.png \
316 images/icons/16x16/actions/document-save.png \
317 images/icons/16x16/actions/dynamic-blue-up.png \
318 images/icons/16x16/actions/edit-clear.png \
319 images/icons/16x16/actions/edit-copy.png \
320 images/icons/16x16/actions/edit-cut.png \
321 images/icons/16x16/actions/edit-delete.png \
322 images/icons/16x16/actions/edit-find.png \
323 images/icons/16x16/actions/edit-find-replace.png \
324 images/icons/16x16/actions/edit-paste.png \
325 images/icons/16x16/actions/edit-redo.png \
326 images/icons/16x16/actions/edit-select-all.png \
327 images/icons/16x16/actions/edit-undo.png \
328 images/icons/16x16/actions/execute-all.png \
329 images/icons/16x16/actions/filter.png \
330 images/icons/16x16/actions/format-text-bold.png \
331 images/icons/16x16/actions/go-bottom.png \
332 images/icons/16x16/actions/go-next.png \
333 images/icons/16x16/actions/go-previous.png \
334 images/icons/16x16/actions/go-top.png \
335 images/icons/16x16/actions/list-add.png \
336 images/icons/16x16/actions/list-remove.png \
337 images/icons/16x16/actions/longe.png \
338 images/icons/16x16/actions/long.png \
339 images/icons/16x16/actions/media-playback-start.png \
340 images/icons/16x16/actions/media-playback-stop.png \
341 images/icons/16x16/actions/plot.png \
342 images/icons/16x16/actions/save-and-execute.png \
343 images/icons/16x16/actions/scilab_search.png \
344 images/icons/16x16/actions/shorte.png \
345 images/icons/16x16/actions/short.png \
346 images/icons/16x16/actions/SizeColumnsToFit.png \
347 images/icons/16x16/actions/system-search.png \
348 images/icons/16x16/actions/transform-rotate.png \
349 images/icons/16x16/actions/tree-collapse.png \
350 images/icons/16x16/actions/variable-from-selection.png \
351 images/icons/16x16/actions/variable-new.png \
352 images/icons/16x16/actions/view-refresh.png \
353 images/icons/16x16/actions/window-new.png \
354 images/icons/16x16/actions/zoom-area-cursor.png \
355 images/icons/16x16/actions/zoom-fit-drawing.png \
356 images/icons/16x16/actions/zoom-fit-selection.png \
357 images/icons/16x16/actions/zoom-in.png \
358 images/icons/16x16/actions/zoom-original.png \
359 images/icons/16x16/actions/zoom-out.png \
360 images/icons/16x16/actions/data_modify.png \
361 images/icons/16x16/animations/process-working.png \
362 images/icons/16x16/apps/accessories-text-editor.png \
363 images/icons/16x16/apps/datatips.png \
364 images/icons/16x16/apps/help-browser.png \
365 images/icons/16x16/apps/rrze_table.png \
366 images/icons/16x16/apps/scilab.png \
367 images/icons/16x16/apps/utilities-system-monitor.png \
368 images/icons/16x16/categories/applications-system.png \
369 images/icons/16x16/categories/preferences-system.png \
370 images/icons/16x16/devices/media-floppy.png \
371 images/icons/16x16/devices/printer.png \
372 images/icons/16x16/emblems/emblem-important.png \
373 images/icons/16x16/emblems/emblem-readonly.png \
374 images/icons/16x16/mimetypes/application-pdf.png \
375 images/icons/16x16/mimetypes/binary.png \
376 images/icons/16x16/mimetypes/image-x-generic.png \
377 images/icons/16x16/mimetypes/package-x-generic.png \
378 images/icons/16x16/mimetypes/text-csv.png \
379 images/icons/16x16/mimetypes/text-html.png \
380 images/icons/16x16/mimetypes/text-x-generic.png \
381 images/icons/16x16/mimetypes/text-xml.png \
382 images/icons/16x16/mimetypes/application-mat.png \
383 images/icons/16x16/places/folder.png \
384 images/icons/16x16/places/folder-saved-search.png \
385 images/icons/16x16/places/scilab-folder.png \
386 images/icons/16x16/places/user-home.png \
387 images/icons/16x16/status/dialog-information.png \
388 images/icons/16x16/status/dialog-warning.png \
389 images/icons/16x16/status/error.png \
390 images/icons/16x16/status/folder-open.png \
391 images/icons/16x16/status/line-found.png \
392 images/icons/16x16/status/scilab-folder-open.png \
393 images/icons/16x16/status/user-home-open.png \
394 images/icons/32x32/actions/edit-clear.png \
395 images/icons/32x32/actions/tree-diagramm.png \
396 images/icons/32x32/actions/tree-diagramm-delete.png \
397 images/icons/32x32/apps/accessories-text-editor.png \
398 images/icons/32x32/apps/graphic-window.png \
399 images/icons/32x32/apps/rrze_table.png \
400 images/icons/32x32/apps/scilab.png \
401 images/icons/32x32/apps/system-search.png \
402 images/icons/32x32/apps/utilities-system-monitor.png \
403 images/icons/32x32/apps/preferences-system.png \
404 images/icons/32x32/emblems/emblem-readonly.png \
405 images/icons/48x48/emblems/emblem-readonly.png \
406 images/icons/64x40/mimetypes/application-x-scilab-champ.png \
407 images/icons/64x40/mimetypes/application-x-scilab-contour2d.png \
408 images/icons/64x40/mimetypes/application-x-scilab-grayplot.png \
409 images/icons/64x40/mimetypes/application-x-scilab-hist3d.png \
410 images/icons/64x40/mimetypes/application-x-scilab-histplot.png \
411 images/icons/64x40/mimetypes/application-x-scilab-Matplot.png \
412 images/icons/64x40/mimetypes/application-x-scilab-mesh.png \
413 images/icons/64x40/mimetypes/application-x-scilab-pie.png \
414 images/icons/64x40/mimetypes/application-x-scilab-plot2d.png \
415 images/icons/64x40/mimetypes/application-x-scilab-plot3d.png \
416 images/icons/64x40/mimetypes/application-x-scilab-Sgrayplot.png \
417 images/icons/64x40/mimetypes/application-x-scilab-surf.png \
418 images/icons/256x256/apps/accessories-text-editor.png \
419 images/icons/256x256/apps/puffin.png \
420 images/icons/256x256/apps/rrze_table.png \
421 images/icons/256x256/apps/system-search.png \
422 images/icons/256x256/apps/utilities-system-monitor.png \
423 images/icons/aboutscilab.png \
424 images/icons/check-icon.png \
425 images/icons/close-tab-on.png \
426 images/icons/close-tab.png \
427 images/icons/dock_help_active.png \
428 images/icons/dock_help_default.png \
429 images/icons/puff.png \
430 images/icons/rotate.png \
431 images/icons/scilab_close_active.png \
432 images/icons/scilab_close_default.png \
433 images/icons/undock_active.png \
434 images/icons/undock_default.png \
435 images/preferences/integrated.png \
436 images/preferences/simple.png
437
438
439 if GUI
440 USEANT=1
441 endif
442
443 include $(top_srcdir)/Makefile.incl.am