Merge remote-tracking branch 'origin/master' into 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.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
135 GIWS_WRAPPERS = \
136 src/jni/SwingView.giws.xml \
137 src/jni/CallScilabBridge.giws.xml \
138 src/jni/Jxclick.giws.xml \
139 src/jni/Jxgetmouse.giws.xml \
140 src/jni/LookAndFeelManager.giws.xml \
141 src/jni/UIElementMapper.giws.xml \
142 src/jni/Juigetfile.giws.xml \
143 src/jni/ScilabDisplayTree.giws.xml
144
145 SWIG_WRAPPERS = src/jni/ScilabTermination.i 
146
147 BUILT_SOURCES=
148 if GIWS
149 BUILT_SOURCES+=giws
150 endif
151 if SWIG
152 BUILT_SOURCES+=swig
153 endif
154
155 GATEWAY_C_SOURCES = sci_gateway/c/sci_x_choice.c \
156 sci_gateway/c/gw_gui.c \
157 sci_gateway/c/sci_x_mdialog.c \
158 sci_gateway/c/sci_x_dialog.c \
159 sci_gateway/c/sci_x_choose.c \
160 sci_gateway/c/sci_x_choose_modeless.c \
161 sci_gateway/c/sci_unsetmenu.c \
162 sci_gateway/c/sci_delmenu.c \
163 sci_gateway/c/sci_setmenu.c \
164 sci_gateway/c/sci_ClipBoard.c \
165 sci_gateway/c/sci_toolbar.c \
166 sci_gateway/c/sci_uicontextmenu.c \
167 sci_gateway/c/sci_uicontrol.c \
168 sci_gateway/c/sci_uimenu.c \
169 sci_gateway/c/sci_uiwait.c \
170 sci_gateway/c/sci_mpopup.c \
171 sci_gateway/c/sci_messagebox.c \
172 sci_gateway/c/sci_waitbar.c \
173 sci_gateway/c/sci_progressionbar.c \
174 sci_gateway/c/sci_uigetfont.c \
175 sci_gateway/c/sci_uigetcolor.c \
176 sci_gateway/c/sci_getcallbackobject.c \
177 sci_gateway/c/sci_exportUI.c
178
179 GATEWAY_CXX_SOURCES = \
180 sci_gateway/cpp/sci_printsetupbox.cpp \
181 sci_gateway/cpp/sci_toprint.cpp \
182 sci_gateway/cpp/sci_printfigure.cpp \
183 sci_gateway/cpp/sci_setlookandfeel.cpp \
184 sci_gateway/cpp/sci_getinstalledlookandfeels.cpp \
185 sci_gateway/cpp/sci_getlookandfeel.cpp \
186 sci_gateway/cpp/sci_uigetdir.cpp \
187 sci_gateway/cpp/sci_uigetfile.cpp \
188 sci_gateway/cpp/sci_displaytree.cpp \
189 sci_gateway/cpp/sci_uiputfile.cpp \
190 sci_gateway/cpp/sci_about.cpp \
191 sci_gateway/cpp/sci_raise_window.cpp \
192 sci_gateway/cpp/sci_usecanvas.cpp \
193 sci_gateway/cpp/sci_helpbrowser.cpp \
194 sci_gateway/cpp/gui_gw.cpp \
195 sci_gateway/cpp/sci_fire_closing_finished.cpp
196
197 libscigui_la_CPPFLAGS = \
198 -I$(srcdir)/includes/ \
199 -I$(srcdir)/src/cpp/ \
200 -I$(srcdir)/src/c/ \
201 -I$(srcdir)/src/jni/ \
202 -I$(top_srcdir)/modules/output_stream/includes \
203 -I$(top_srcdir)/modules/fileio/includes/ \
204 -I$(top_srcdir)/modules/graphics/includes/ \
205 -I$(top_srcdir)/modules/graphics/src/c/getHandleProperty/ \
206 -I$(top_srcdir)/modules/graphic_objects/includes/ \
207 -I$(top_srcdir)/modules/graphic_export/includes/ \
208 -I$(top_srcdir)/modules/jvm/includes/ \
209 -I$(top_srcdir)/modules/localization/includes/ \
210 -I$(top_srcdir)/modules/string/includes/ \
211 -I$(top_srcdir)/modules/api_scilab/includes \
212 -I$(top_srcdir)/modules/operations/includes/ \
213 -I$(top_srcdir)/modules/types/includes/ \
214 -I$(top_srcdir)/modules/ast/includes/ \
215 -I$(top_srcdir)/modules/system_env/includes/ \
216 -I$(top_srcdir)/modules/symbol/includes/ \
217 -I$(top_srcdir)/modules/types/includes/ \
218 -I$(top_srcdir)/modules/string/includes/ \
219 -I$(top_srcdir)/modules/types/includes/ \
220 -I$(top_srcdir)/modules/commons/src/jni/ \
221 -I$(top_srcdir)/modules/dynamic_link/includes \
222 $(JAVA_JNI_INCLUDE) \
223 $(AM_CPPFLAGS)
224
225 # Without the GUI module
226 libscigui_disable_la_CPPFLAGS = \
227 -I$(srcdir)/includes/ \
228 -I$(top_srcdir)/modules/api_scilab/includes/ \
229 -I$(top_srcdir)/modules/localization/includes/ \
230 -I$(top_srcdir)/modules/output_stream/includes/ \
231 -I$(top_srcdir)/modules/types/includes/ \
232 -I$(top_srcdir)/modules/ast/includes/ \
233 $(AM_CPPFLAGS)
234
235
236 GUI_DISABLE_C_SOURCES = src/nogui/nogui.c
237 GUI_DISABLE_CXX_SOURCES = src/nogui/nogui_gw.cpp
238 libscigui_disable_la_SOURCES = $(GUI_DISABLE_C_SOURCES) $(GUI_DISABLE_CXX_SOURCES)
239
240
241 pkglib_LTLIBRARIES = libscigui-disable.la
242
243 if GUI
244 pkglib_LTLIBRARIES += libscigui.la
245 noinst_LTLIBRARIES = libscigui-algo.la
246 endif
247
248
249 libscigui_algo_la_SOURCES = $(GUI_C_SOURCES) $(GUI_CXX_SOURCES)
250 libscigui_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CXX_SOURCES)
251 libscigui_algo_la_CPPFLAGS = $(libscigui_la_CPPFLAGS)
252
253 # For the code check (splint)
254 CHECK_SRC= $(GUI_C_SOURCES) $(GATEWAY_C_SOURCES)
255 INCLUDE_FLAGS = $(libscigui_la_CPPFLAGS)
256
257 libscigui_la_LIBADD = libscigui-algo.la
258
259
260 #### gui : gateway declaration ####
261 libscigui_la_sci_gatewaydir = $(mydatadir)/sci_gateway
262 libscigui_la_sci_gateway_DATA = sci_gateway/gui_gateway.xml
263
264
265 #### gui : icons files ####
266 #
267 # Generated with:
268 #    $ find images/ -type f -printf "%p \\\\\n" -name *.svg -or -name *.gif -or -name *.jpg -or -name *.png |sort -u
269 libscigui_la_iconsdir=$(mydatadir)/
270 nobase_libscigui_la_icons_DATA = images/icons/16x16/actions/document-new.png \
271 images/icons/16x16/actions/code-navigator.png \
272 images/icons/16x16/actions/document-open.png \
273 images/icons/16x16/actions/document-open-sci.png \
274 images/icons/16x16/actions/document-print.png \
275 images/icons/16x16/actions/document-print-preview.png \
276 images/icons/16x16/actions/document-save-as.png \
277 images/icons/16x16/actions/document-save.png \
278 images/icons/16x16/actions/dynamic-blue-up.png \
279 images/icons/16x16/actions/edit-clear.png \
280 images/icons/16x16/actions/edit-copy.png \
281 images/icons/16x16/actions/edit-cut.png \
282 images/icons/16x16/actions/edit-delete.png \
283 images/icons/16x16/actions/edit-find.png \
284 images/icons/16x16/actions/edit-find-replace.png \
285 images/icons/16x16/actions/edit-paste.png \
286 images/icons/16x16/actions/edit-redo.png \
287 images/icons/16x16/actions/edit-select-all.png \
288 images/icons/16x16/actions/edit-undo.png \
289 images/icons/16x16/actions/execute-all.png \
290 images/icons/16x16/actions/filter.png \
291 images/icons/16x16/actions/format-text-bold.png \
292 images/icons/16x16/actions/go-bottom.png \
293 images/icons/16x16/actions/go-next.png \
294 images/icons/16x16/actions/go-previous.png \
295 images/icons/16x16/actions/go-top.png \
296 images/icons/16x16/actions/list-add.png \
297 images/icons/16x16/actions/list-remove.png \
298 images/icons/16x16/actions/longe.png \
299 images/icons/16x16/actions/long.png \
300 images/icons/16x16/actions/media-playback-start.png \
301 images/icons/16x16/actions/plot.png \
302 images/icons/16x16/actions/save-and-execute.png \
303 images/icons/16x16/actions/scilab_search.png \
304 images/icons/16x16/actions/shorte.png \
305 images/icons/16x16/actions/short.png \
306 images/icons/16x16/actions/SizeColumnsToFit.png \
307 images/icons/16x16/actions/system-search.png \
308 images/icons/16x16/actions/transform-rotate.png \
309 images/icons/16x16/actions/variable-from-selection.png \
310 images/icons/16x16/actions/variable-new.png \
311 images/icons/16x16/actions/view-refresh.png \
312 images/icons/16x16/actions/window-new.png \
313 images/icons/16x16/actions/zoom-area-cursor.png \
314 images/icons/16x16/actions/zoom-fit-drawing.png \
315 images/icons/16x16/actions/zoom-fit-selection.png \
316 images/icons/16x16/actions/zoom-in.png \
317 images/icons/16x16/actions/zoom-original.png \
318 images/icons/16x16/actions/zoom-out.png \
319 images/icons/16x16/animations/process-working.png \
320 images/icons/16x16/apps/accessories-text-editor.png \
321 images/icons/16x16/apps/datatips.png \
322 images/icons/16x16/apps/help-browser.png \
323 images/icons/16x16/apps/rrze_table.png \
324 images/icons/16x16/apps/scilab.png \
325 images/icons/16x16/apps/utilities-system-monitor.png \
326 images/icons/16x16/categories/applications-system.png \
327 images/icons/16x16/categories/preferences-system.png \
328 images/icons/16x16/devices/media-floppy.png \
329 images/icons/16x16/devices/printer.png \
330 images/icons/16x16/emblems/emblem-important.png \
331 images/icons/16x16/emblems/emblem-readonly.png \
332 images/icons/16x16/mimetypes/application-pdf.png \
333 images/icons/16x16/mimetypes/binary.png \
334 images/icons/16x16/mimetypes/image-x-generic.png \
335 images/icons/16x16/mimetypes/package-x-generic.png \
336 images/icons/16x16/mimetypes/text-csv.png \
337 images/icons/16x16/mimetypes/text-html.png \
338 images/icons/16x16/mimetypes/text-x-generic.png \
339 images/icons/16x16/mimetypes/text-xml.png \
340 images/icons/16x16/places/folder.png \
341 images/icons/16x16/places/folder-saved-search.png \
342 images/icons/16x16/places/scilab-folder.png \
343 images/icons/16x16/places/user-home.png \
344 images/icons/16x16/status/dialog-information.png \
345 images/icons/16x16/status/dialog-warning.png \
346 images/icons/16x16/status/error.png \
347 images/icons/16x16/status/folder-open.png \
348 images/icons/16x16/status/line-found.png \
349 images/icons/16x16/status/scilab-folder-open.png \
350 images/icons/16x16/status/user-home-open.png \
351 images/icons/256x256/apps/accessories-text-editor.png \
352 images/icons/256x256/apps/puffin.png \
353 images/icons/256x256/apps/rrze_table.png \
354 images/icons/256x256/apps/system-search.png \
355 images/icons/256x256/apps/utilities-system-monitor.png \
356 images/icons/32x32/actions/edit-clear.png \
357 images/icons/32x32/apps/accessories-text-editor.png \
358 images/icons/32x32/apps/graphic-window.png \
359 images/icons/32x32/apps/rrze_table.png \
360 images/icons/32x32/apps/scilab.png \
361 images/icons/32x32/apps/system-search.png \
362 images/icons/32x32/apps/utilities-system-monitor.png \
363 images/icons/32x32/emblems/emblem-readonly.png \
364 images/icons/48x48/emblems/emblem-readonly.png \
365 images/icons/64x40/mimetypes/application-x-scilab-champ.png \
366 images/icons/64x40/mimetypes/application-x-scilab-contour2d.png \
367 images/icons/64x40/mimetypes/application-x-scilab-grayplot.png \
368 images/icons/64x40/mimetypes/application-x-scilab-hist3d.png \
369 images/icons/64x40/mimetypes/application-x-scilab-histplot.png \
370 images/icons/64x40/mimetypes/application-x-scilab-Matplot.png \
371 images/icons/64x40/mimetypes/application-x-scilab-mesh.png \
372 images/icons/64x40/mimetypes/application-x-scilab-pie.png \
373 images/icons/64x40/mimetypes/application-x-scilab-plot2d.png \
374 images/icons/64x40/mimetypes/application-x-scilab-plot3d.png \
375 images/icons/64x40/mimetypes/application-x-scilab-Sgrayplot.png \
376 images/icons/64x40/mimetypes/application-x-scilab-surf.png \
377 images/icons/aboutscilab.png \
378 images/icons/check-icon.png \
379 images/icons/close-tab-on.png \
380 images/icons/close-tab.png \
381 images/icons/dock_help_active.png \
382 images/icons/dock_help_default.png \
383 images/icons/puff.png \
384 images/icons/rotate.png \
385 images/icons/scilab_close_active.png \
386 images/icons/scilab_close_default.png \
387 images/icons/undock_active.png \
388 images/icons/undock_default.png \
389 images/preferences/integrated.png \
390 images/preferences/simple.png
391
392
393 if GUI
394 USEANT=1
395 endif
396
397 include $(top_srcdir)/Makefile.incl.am