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