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