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