New Java Help Browser for Scilab.
[scilab.git] / scilab / modules / gui / Makefile.am
1 ##########
2 ### Sylvestre Ledru <sylvestre.ledru@inria.fr>
3 ### INRIA - Scilab 2006
4 ### Vincent COUVERT <vincent.couvert@inria.fr>
5 ### INRIA - Scilab 2008
6 ##########
7
8 include $(top_srcdir)/Makefile.incl.am
9
10 if GUI
11 GUI_C_SOURCES = \
12 src/c/getlookandfeel.c \
13 src/c/setlookandfeel.c \
14 src/c/getinstalledlookandfeels.c \
15 src/c/TerminateGui.c \
16 src/c/buildMainWindowTitle.c \
17 src/c/getMainWindowTitle.c \
18 src/c/getScreenProperties.c \
19 src/c/InitializeGUI.c \
20 src/c/setMainWindowTitle.c \
21 src/c/addmenu.c \
22 src/c/CreateUIControl.c \
23 src/c/InitWaitBar.c \
24 src/c/InitProgressionBar.c \
25 src/c/CreateUIContextMenu.c \
26 src/c/UicontrolStyleToString.c \
27 src/c/messageboxoptions.c
28
29 GUI_CPP_SOURCES = src/cpp/InitUIMenu.cpp \
30 src/jni/CallScilabBridge.cpp \
31 src/jni/Jxclick.cpp \
32 src/cpp/DestroyUIControl.cpp \
33 src/cpp/DestroyWaitBar.cpp \
34 src/cpp/CallJxclick.cpp \
35 src/jni/Jxgetmouse.cpp \
36 src/cpp/CallJxgetmouse.cpp \
37 src/cpp/CallFileChooser.cpp \
38 src/cpp/CallFigure.cpp \
39 src/cpp/CallMessageBox.cpp \
40 src/cpp/CallWaitBar.cpp \
41 src/cpp/CallHelpBrowser.cpp \
42 src/cpp/PushButton.cpp \
43 src/cpp/EditBox.cpp \
44 src/cpp/Label.cpp \
45 src/cpp/CheckBox.cpp \
46 src/cpp/RadioButton.cpp \
47 src/cpp/Slider.cpp \
48 src/cpp/PopupMenu.cpp \
49 src/cpp/ContextMenu.cpp \
50 src/cpp/ListBox.cpp \
51 src/cpp/Frame.cpp \
52 src/cpp/Toolbar.cpp \
53 src/cpp/SetUimenuLabel.cpp \
54 src/cpp/GetUimenuLabel.cpp \
55 src/cpp/GetUicontrolStyle.cpp \
56 src/cpp/SetUicontrolString.cpp \
57 src/cpp/GetUicontrolString.cpp \
58 src/cpp/SetUicontrolParent.cpp \
59 src/cpp/SetUicontrolBackgroundColor.cpp \
60 src/cpp/GetUicontrolBackgroundColor.cpp \
61 src/cpp/SetUiobjectForegroundColor.cpp \
62 src/cpp/GetUiobjectForegroundColor.cpp \
63 src/cpp/SetUicontrolPosition.cpp \
64 src/cpp/GetUicontrolPosition.cpp \
65 src/cpp/SetUicontrolFontName.cpp \
66 src/cpp/GetUicontrolFontName.cpp \
67 src/cpp/SetUicontrolFontWeight.cpp \
68 src/cpp/GetUicontrolFontWeight.cpp \
69 src/cpp/SetUicontrolFontUnits.cpp \
70 src/cpp/GetUicontrolFontUnits.cpp \
71 src/cpp/SetUicontrolFontSize.cpp \
72 src/cpp/GetUicontrolFontSize.cpp \
73 src/cpp/SetUicontrolFontAngle.cpp \
74 src/cpp/GetUicontrolFontAngle.cpp \
75 src/cpp/SetUiobjectCallback.cpp \
76 src/cpp/GetUiobjectCallback.cpp \
77 src/cpp/SetUiobjectTag.cpp \
78 src/cpp/GetUiobjectTag.cpp \
79 src/cpp/SetUicontrolMin.cpp \
80 src/cpp/GetUicontrolMin.cpp \
81 src/cpp/SetUicontrolMax.cpp \
82 src/cpp/GetUicontrolMax.cpp \
83 src/cpp/SetUicontrolValue.cpp \
84 src/cpp/GetUicontrolValue.cpp \
85 src/cpp/SetUicontrolListboxTop.cpp \
86 src/cpp/GetUicontrolListboxTop.cpp \
87 src/cpp/SetUicontrolUnits.cpp \
88 src/cpp/GetUicontrolUnits.cpp \
89 src/cpp/SetUicontrolRelief.cpp \
90 src/cpp/GetUicontrolRelief.cpp \
91 src/cpp/SetUicontrolHorizontalAlignment.cpp \
92 src/cpp/GetUicontrolHorizontalAlignment.cpp \
93 src/cpp/SetUicontrolVerticalAlignment.cpp \
94 src/cpp/GetUicontrolVerticalAlignment.cpp \
95 src/cpp/SetUicontrolSliderStep.cpp \
96 src/cpp/GetUicontrolSliderStep.cpp
97
98 GIWS_WRAPPERS = \
99 src/jni/CallScilabBridge.giws.xml \
100 src/jni/FileChooser.giws.xml \
101 src/jni/Jxclick.giws.xml \
102 src/jni/Jxgetmouse.giws.xml \
103 src/jni/SwingScilabMenu.giws.xml \
104 src/jni/UIElementMapper.giws.xml
105
106 GATEWAY_C_SOURCES = sci_gateway/c/sci_x_choice.c \
107 sci_gateway/c/gw_gui.c \
108 sci_gateway/c/sci_x_mdialog.c \
109 sci_gateway/c/sci_x_dialog.c \
110 sci_gateway/c/sci_raise_window.c \
111 sci_gateway/c/sci_x_choose.c \
112 sci_gateway/c/sci_x_choose_modeless.c \
113 sci_gateway/c/sci_xgetfile.c \
114 sci_gateway/c/sci_unsetmenu.c \
115 sci_gateway/c/sci_delmenu.c \
116 sci_gateway/c/sci_setmenu.c \
117 sci_gateway/c/sci_getlookandfeel.c \
118 sci_gateway/c/sci_getinstalledlookandfeels.c \
119 sci_gateway/c/sci_setlookandfeel.c \
120 sci_gateway/c/sci_ClipBoard.c \
121 sci_gateway/c/sci_toolbar.c \
122 sci_gateway/c/sci_uigetdir.c \
123 sci_gateway/c/sci_uicontrol.c \
124 sci_gateway/c/sci_uicontextmenu.c \
125 sci_gateway/c/sci_uimenu.c \
126 sci_gateway/c/sci_uiwait.c \
127 sci_gateway/c/sci_mpopup.c \
128 sci_gateway/c/sci_messagebox.c \
129 sci_gateway/c/sci_waitbar.c \
130 sci_gateway/c/sci_progressionbar.c \
131 sci_gateway/c/sci_help.c
132
133 libscigui_la_CFLAGS=    -Isrc/c/ \
134                         -Isrc/c/xsci/ \
135                         -Iincludes/ \
136                         -I$(top_srcdir)/modules/graphics/includes/ \
137                         -I$(top_srcdir)/libs/MALLOC/includes/ \
138                         -I$(top_srcdir)/modules/core/src/c/ \
139                         -I$(top_srcdir)/modules/string/includes/ \
140                         -I$(top_srcdir)/modules/tclsci/includes/ \
141                         -I$(top_srcdir)/modules/jvm/includes/ \
142                         -I$(top_srcdir)/modules/shell/includes/ \
143                         $(TCL_INC_PATH) \
144                         $(Tk_INC_PATH) \
145                         -I$(top_srcdir)/libs/doublylinkedlist/includes \
146                         -I$(top_srcdir)/libs/hashtable \
147                         -I$(top_srcdir)/modules/output_stream/includes \
148                         -I$(top_srcdir)/modules/dynamic_link/includes \
149                         -Isrc/cpp/ \
150                         -I$(top_srcdir)/modules/graphics/src/c/getHandleProperty/
151
152 libscigui_la_CFLAGS += $(JAVA_JNI_INCLUDE) -I$(top_srcdir)/modules/jvm/includes/ -I$(top_srcdir)/modules/string/includes/
153
154 libscigui_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) -Iincludes/ -Isrc/cpp/ -Isrc/c/ -Isrc/jni/ \
155                         -I$(top_srcdir)/modules/jvm/includes/ \
156                         -I$(top_srcdir)/modules/renderer/src/jni/ \
157                         -I$(top_srcdir)/modules/renderer/includes/ \
158                         -I$(top_srcdir)/modules/renderer/src/cpp/ \
159                         -I$(top_srcdir)/modules/renderer/src/cpp/figureDrawing/ \
160                         -I$(top_srcdir)/modules/graphic_export/includes/ \
161                         -I$(top_srcdir)/libs/doublylinkedlist/includes/ \
162                         -I$(top_srcdir)/modules/output_stream/includes \
163                         -I$(top_srcdir)/modules/graphics/includes/ \
164                         -I$(top_srcdir)/modules/graphics/src/c/getHandleProperty/ \
165                         -Isrc/jni/ \
166                         -I$(top_srcdir)/modules/graphic_export/includes/ \
167                         -I$(top_srcdir)/modules/string/includes/
168
169 else
170 libscigui_la_CFLAGS=                    -Iincludes/ \
171                         -I$(top_srcdir)/modules/output_stream/includes
172
173 GUI_C_SOURCES = src/nogui/nogui.c
174
175 endif
176
177 pkglib_LTLIBRARIES = libscigui.la
178
179 libscigui_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS) $(X_LIBS) $(X_EXTRA_LIBS)
180
181 libscigui_la_SOURCES = $(GUI_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(GUI_CPP_SOURCES)
182
183 #  cyclic $(top_builddir)/modules/graphics/libscigraphics.la $(top_builddir)/modules/jvm/libscijvm.la
184 libscigui_la_LIBADD = $(top_builddir)/modules/renderer/libscirenderer.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
185 #### Target ######
186 modulename=gui
187
188 #### gui : Conf files ####
189 libscigui_la_rootdir = $(mydatadir)
190 libscigui_la_root_DATA = changelog.txt license.txt readme.txt version.xml
191
192 #### gui : init scripts ####
193 libscigui_la_etcdir = $(mydatadir)/etc
194 libscigui_la_etc_DATA = etc/gui.quit \
195 etc/gui.start \
196 etc/graphics_menubar.xml \
197 etc/graphics_toolbar.xml \
198 etc/main_menubar.xml \
199 etc/main_toolbar.xml \
200 etc/flexdock-themes.xml
201
202
203 #### gui : gateway declaration ####
204 libscigui_la_sci_gatewaydir = $(mydatadir)/sci_gateway
205 libscigui_la_sci_gateway_DATA = sci_gateway/gui_gateway.xml
206
207
208 #### gui : include files ####
209 libscigui_la_includedir=$(pkgincludedir)/gui
210 libscigui_la_include_HEADERS = includes/gw_gui.h \
211 includes/sci_raise_window.h \
212 includes/GraphicWindow.h \
213 includes/InitializeGUI.h \
214 includes/CallFileChooser.h \
215 includes/CallFigure.h \
216 includes/CallJxclick.h \
217 includes/CallJxgetmouse.h \
218 includes/CallMessageBox.h \
219 includes/CheckBox.h \
220 includes/ContextMenu.h \
221 includes/DestroyUIControl.h \
222 includes/EditBox.h \
223 includes/Frame.h \
224 includes/GetScreenProperty.h \
225 includes/GetUicontrolBackgroundColor.h \
226 includes/GetUicontrolFontAngle.h \
227 includes/GetUicontrolFontName.h \
228 includes/GetUicontrolFontSize.h \
229 includes/GetUicontrolFontUnits.h \
230 includes/GetUicontrolFontWeight.h \
231 includes/GetUicontrolHorizontalAlignment.h \
232 includes/GetUicontrolListboxTop.h \
233 includes/GetUicontrolMax.h \
234 includes/GetUicontrolMin.h \
235 includes/GetUicontrolPosition.h \
236 includes/GetUicontrolRelief.h \
237 includes/GetUicontrolSliderStep.h \
238 includes/GetUicontrolString.h \
239 includes/GetUicontrolStyle.h \
240 includes/GetUicontrolUnits.h \
241 includes/GetUicontrolValue.h \
242 includes/GetUicontrolVerticalAlignment.h \
243 includes/GetUimenuLabel.h \
244 includes/GetUiobjectCallback.h \
245 includes/GetUiobjectForegroundColor.h \
246 includes/GetUiobjectTag.h \
247 includes/InitUIMenu.h \
248 includes/Label.h \
249 includes/ListBox.h \
250 includes/PopupMenu.h \
251 includes/PushButton.h \
252 includes/RadioButton.h \
253 includes/sci_mpopup.h \
254 includes/sci_uicontextmenu.h \
255 includes/sci_uicontrol.h \
256 includes/sci_uimenu.h \
257 includes/sci_uiwait.h \
258 includes/SetUicontrolBackgroundColor.h \
259 includes/SetUicontrolFontAngle.h \
260 includes/SetUicontrolFontName.h \
261 includes/SetUicontrolFontSize.h \
262 includes/SetUicontrolFontUnits.h \
263 includes/SetUicontrolFontWeight.h \
264 includes/SetUicontrolHorizontalAlignment.h \
265 includes/SetUicontrolListboxTop.h \
266 includes/SetUicontrolMax.h \
267 includes/SetUicontrolMin.h \
268 includes/SetUicontrolParent.h \
269 includes/SetUicontrolPosition.h \
270 includes/SetUicontrolRelief.h \
271 includes/SetUicontrolSliderStep.h \
272 includes/SetUicontrolString.h \
273 includes/SetUicontrolUnits.h \
274 includes/SetUicontrolValue.h \
275 includes/SetUicontrolVerticalAlignment.h \
276 includes/SetUimenuLabel.h \
277 includes/SetUiobjectCallback.h \
278 includes/SetUiobjectForegroundColor.h \
279 includes/SetUiobjectTag.h \
280 includes/Slider.h \
281 includes/TerminateGui.h \
282 includes/write_scilab.h \
283 includes/Toolbar.h
284
285 #### gui : demos files ####
286 libscigui_la_demosdir=$(mydatadir)/demos/
287 libscigui_la_demos_DATA = demos/dialog.dem
288
289
290 ####¬†graphics : icons files ####
291 libscigui_la_iconsdir=$(mydatadir)/
292 nobase_libscigui_la_icons_DATA = images/icons/accessories-text-editor.png \
293 images/icons/document-open.png \
294 images/icons/edit-copy.png \
295 images/icons/edit-paste.png \
296 images/icons/folder.png \
297 images/icons/format-text-bold.png \
298 images/icons/help-browser.png \
299 images/icons/list-add.png \
300 images/icons/list-remove.png \
301 images/icons/printer.png \
302 images/icons/scilab.png \
303 images/icons/view-refresh.png \
304 images/icons/window-new.png
305
306
307 if GUI
308
309 USEANT=1
310
311 endif