Merge remote branch 'origin/5.3'
[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 src/jni/GiwsException.cpp \
142 src/jni/Juigetfile.cpp \
143 src/cpp/CallJuigetfile.cpp \
144 src/cpp/displaytree.cpp \
145 src/jni/ScilabDisplayTree.cpp
146
147
148 GIWS_WRAPPERS = \
149 src/jni/CallScilabBridge.giws.xml \
150 src/jni/Jxclick.giws.xml \
151 src/jni/Jxgetmouse.giws.xml \
152 src/jni/LookAndFeelManager.giws.xml \
153 src/jni/UIElementMapper.giws.xml \
154 src/jni/Juigetfile.giws.xml \
155 src/jni/ScilabDisplayTree.giws.xml
156
157
158 if GIWS
159 BUILT_SOURCES=giws
160 endif
161
162
163 GATEWAY_C_SOURCES = sci_gateway/c/sci_x_choice.c \
164 sci_gateway/c/gw_gui.c \
165 sci_gateway/c/sci_x_mdialog.c \
166 sci_gateway/c/sci_x_dialog.c \
167 sci_gateway/c/sci_x_choose.c \
168 sci_gateway/c/sci_x_choose_modeless.c \
169 sci_gateway/c/sci_unsetmenu.c \
170 sci_gateway/c/sci_delmenu.c \
171 sci_gateway/c/sci_setmenu.c \
172 sci_gateway/c/sci_ClipBoard.c \
173 sci_gateway/c/sci_toolbar.c \
174 sci_gateway/c/sci_uicontrol.c \
175 sci_gateway/c/sci_uicontextmenu.c \
176 sci_gateway/c/sci_uimenu.c \
177 sci_gateway/c/sci_uiwait.c \
178 sci_gateway/c/sci_mpopup.c \
179 sci_gateway/c/sci_messagebox.c \
180 sci_gateway/c/sci_waitbar.c \
181 sci_gateway/c/sci_progressionbar.c \
182 sci_gateway/c/sci_helpbrowser.c \
183 sci_gateway/c/sci_uigetfont.c \
184 sci_gateway/c/sci_uigetcolor.c \
185 sci_gateway/c/sci_getcallbackobject.c \
186 sci_gateway/c/sci_exportUI.c
187
188 GATEWAY_CPP_SOURCES = \
189 sci_gateway/cpp/sci_printsetupbox.cpp \
190 sci_gateway/cpp/sci_toprint.cpp \
191 sci_gateway/cpp/sci_printfigure.cpp \
192 sci_gateway/cpp/sci_setlookandfeel.cpp \
193 sci_gateway/cpp/sci_getinstalledlookandfeels.cpp \
194 sci_gateway/cpp/sci_getlookandfeel.cpp \
195 sci_gateway/cpp/sci_uigetdir.cpp \
196 sci_gateway/cpp/sci_uigetfile.cpp \
197 sci_gateway/cpp/sci_displaytree.cpp \
198 sci_gateway/cpp/sci_uiputfile.cpp \
199 sci_gateway/cpp/sci_about.cpp \
200 sci_gateway/cpp/sci_raise_window.cpp \
201 sci_gateway/cpp/sci_usecanvas.cpp
202
203 libscigui_la_CFLAGS=    -I$(srcdir)/src/c/ \
204                         -I$(srcdir)/src/c/xsci/ \
205                         -I$(srcdir)/includes/ \
206                         -I$(top_srcdir)/modules/graphics/includes/ \
207                         -I$(top_srcdir)/libs/MALLOC/includes/ \
208                         -I$(top_srcdir)/modules/core/src/c/ \
209                         -I$(top_srcdir)/modules/string/includes/ \
210                         -I$(top_srcdir)/modules/tclsci/includes/ \
211                         -I$(top_srcdir)/modules/jvm/includes/ \
212                         -I$(top_srcdir)/modules/shell/includes/ \
213                         -I$(top_srcdir)/modules/fileio/includes/ \
214                         $(TCL_INC_PATH) \
215                         $(Tk_INC_PATH) \
216                         -I$(top_srcdir)/libs/doublylinkedlist/includes \
217                         -I$(top_srcdir)/libs/hashtable \
218                         -I$(top_srcdir)/modules/output_stream/includes \
219                         -I$(top_srcdir)/modules/dynamic_link/includes \
220                         -I$(srcdir)/src/cpp/ \
221                         -I$(top_srcdir)/modules/api_scilab/includes \
222                         -I$(top_srcdir)/modules/graphics/src/c/getHandleProperty/
223
224 libscigui_la_CFLAGS += $(JAVA_JNI_INCLUDE) \
225                         -I$(top_srcdir)/modules/jvm/includes/ \
226                         -I$(top_srcdir)/modules/renderer/includes/ \
227                         -I$(top_srcdir)/modules/string/includes/
228
229 libscigui_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
230                         -I$(srcdir)/includes/ \
231                         -I$(srcdir)/src/cpp/ \
232                         -I$(srcdir)/src/c/ \
233                         -I$(srcdir)/src/jni/ \
234                         -I$(top_srcdir)/modules/jvm/includes/ \
235                         -I$(top_srcdir)/modules/fileio/includes/ \
236                         -I$(top_srcdir)/modules/renderer/src/jni/ \
237                         -I$(top_srcdir)/modules/renderer/includes/ \
238                         -I$(top_srcdir)/modules/renderer/src/cpp/ \
239                         -I$(top_srcdir)/modules/renderer/src/cpp/figureDrawing/ \
240                         -I$(top_srcdir)/modules/graphic_export/includes/ \
241                         -I$(top_srcdir)/libs/doublylinkedlist/includes/ \
242                         -I$(top_srcdir)/modules/output_stream/includes \
243                         -I$(top_srcdir)/modules/graphics/includes/ \
244                         -I$(top_srcdir)/modules/graphics/src/c/getHandleProperty/ \
245                         -I$(top_srcdir)/modules/graphic_export/includes/ \
246                         -I$(top_srcdir)/modules/api_scilab/includes \
247                         -I$(top_srcdir)/modules/string/includes/
248
249
250 # Without the GUI module
251 libscigui_disable_la_CFLAGS = -Iincludes/ \
252                         -I$(top_srcdir)/modules/api_scilab/includes \
253                         -I$(srcdir)/includes/ \
254                         -I$(top_srcdir)/modules/output_stream/includes
255
256 GUI_DISABLE_C_SOURCES = src/nogui/nogui.c
257 libscigui_disable_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)
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 libscigui_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)  $(X_LIBS) $(X_EXTRA_LIBS)
269
270 libscigui_algo_la_SOURCES = $(GUI_C_SOURCES) $(GUI_CPP_SOURCES)
271 libscigui_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
272 libscigui_algo_la_CFLAGS = $(libscigui_la_CFLAGS)
273 libscigui_algo_la_CPPFLAGS = $(libscigui_la_CPPFLAGS)
274
275 # For the code check (splint)
276 CHECK_SRC= $(GUI_C_SOURCES) $(GATEWAY_C_SOURCES)
277 INCLUDE_FLAGS = $(libscigui_la_CFLAGS)
278
279 #  cyclic $(top_builddir)/modules/graphics/libscigraphics.la $(top_builddir)/modules/jvm/libscijvm.la
280 libscigui_la_LIBADD = libscigui-algo.la $(top_builddir)/modules/renderer/libscirenderer.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
281
282
283 #### gui : gateway declaration ####
284 libscigui_la_sci_gatewaydir = $(mydatadir)/sci_gateway
285 libscigui_la_sci_gateway_DATA = sci_gateway/gui_gateway.xml
286
287
288 #### gui : icons files ####
289 #
290 # Generated with:
291 #    $ find images/ -type f -printf "%p \\\\\n" -name *.svg -or -name *.gif -or -name *.jpg -or -name *.png |sort -u
292 libscigui_la_iconsdir=$(mydatadir)/
293 nobase_libscigui_la_icons_DATA = images/icons/32x32/apps/accessories-text-editor.png \
294 images/icons/32x32/apps/rrze_table.png \
295 images/icons/32x32/apps/utilities-system-monitor.png \
296 images/icons/32x32/apps/system-search.png \
297 images/icons/16x16/actions/go-bottom.png \
298 images/icons/16x16/actions/go-top.png \
299 images/icons/16x16/actions/view-refresh.png \
300 images/icons/16x16/search/folder.png \
301 images/icons/16x16/search/file.png \
302 images/icons/16x16/search/line-found.png \
303 images/icons/16x16/search/scilab-file.png \
304 images/icons/16x16/actions/save-and-execute.png \
305 images/icons/aboutscilab.png \
306 images/icons/accessories-text-editor.png \
307 images/icons/applications-system.png \
308 images/icons/check-icon.png \
309 images/icons/close-tab.png \
310 images/icons/datatips.png \
311 images/icons/document-new.png \
312 images/icons/document-open.png \
313 images/icons/document-open-sci.png \
314 images/icons/document-print.png \
315 images/icons/document-print-preview.png \
316 images/icons/document-save-as.png \
317 images/icons/document-save.png \
318 images/icons/edit-copy.png \
319 images/icons/edit-cut.png \
320 images/icons/edit-delete.png \
321 images/icons/edit-find.png \
322 images/icons/edit-find-replace.png \
323 images/icons/edit-paste.png \
324 images/icons/edit-redo.png \
325 images/icons/edit-undo.png \
326 images/icons/emblem-readonly.png \
327 images/icons/folder.png \
328 images/icons/format-text-bold.png \
329 images/icons/graphic-window.png \
330 images/icons/help-browser.png \
331 images/icons/media-floppy.png \
332 images/icons/media-playback-start.png \
333 images/icons/package-x-generic.png \
334 images/icons/printer.png \
335 images/icons/process-working.png \
336 images/icons/puff.png \
337 images/icons/rotate.png \
338 images/icons/scilab_close_active.png \
339 images/icons/scilab_close_default.png \
340 images/icons/scilab.png \
341 images/icons/transform-rotate.png \
342 images/icons/undock_active.png \
343 images/icons/undock_default.png \
344 images/icons/utilities-system-monitor.png \
345 images/icons/window-new.png \
346 images/icons/zoom-area-cursor.png \
347 images/icons/zoom-fit-drawing.png \
348 images/icons/zoom-fit-selection.png \
349 images/icons/zoom-in.png \
350 images/icons/zoom-original.png \
351 images/icons/zoom-out.png
352
353 if GUI
354 USEANT=1
355 endif