Add the newsfeed files to the build
[scilab.git] / scilab / modules / ui_data / Makefile.am
1 #
2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) DIGITEO - 2010 - Allan CORNET
4 #
5 # This file must be used under the terms of the CeCILL.
6 # This source file is licensed as described in the file COPYING, which
7 # you should have received as part of this distribution.  The terms
8 # are also available at
9 # http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
10 #
11
12 #### Target ######
13 modulename=ui_data
14
15
16 #### ui_data : Conf files ####
17 libsciui_data_la_rootdir = $(mydatadir)
18 libsciui_data_la_root_DATA =  license.txt
19
20
21 #### ui_data : init scripts ####
22 libsciui_data_la_etcdir = $(mydatadir)/etc
23 libsciui_data_la_etc_DATA = \
24         etc/newsfeed.css \
25         etc/newsfeed.xml \
26         etc/ui_data.quit \
27         etc/ui_data.start \
28         etc/variablebrowser_menubar.xml \
29         etc/variableeditor_menubar.xml \
30         etc/XConfiguration-variables.xml \
31         etc/XConfiguration-variables.xsl
32
33 UI_DATA_JNI_SOURCES = \
34     src/jni/BrowseVar.cpp \
35     src/jni/EditVar.cpp \
36         src/jni/FileBrowser.cpp
37
38 UI_DATA_C_SOURCES = \
39     src/jni/ui_data_wrap.c \
40     src/c/PutScilabVariable.c
41
42 UI_DATA_CXX_SOURCES = \
43     src/cpp/BrowseVarManager.cpp \
44     src/cpp/FileBrowserChDir.cpp
45
46 GIWS_WRAPPERS = \
47     src/jni/BrowseVar.giws.xml \
48     src/jni/EditVar.giws.xml \
49     src/jni/FileBrowser.giws.xml
50
51 SWIG_WRAPPERS = \
52     src/jni/ui_data.i
53
54 BUILT_SOURCES=
55 if GIWS
56 BUILT_SOURCES+=giws
57 endif
58 if SWIG
59 BUILT_SOURCES+=swig
60 endif
61
62
63 GATEWAY_CXX_SOURCES = \
64     sci_gateway/cpp/sci_editvar.cpp \
65     sci_gateway/cpp/sci_browsevar.cpp \
66     sci_gateway/cpp/sci_filebrowser.cpp \
67     sci_gateway/cpp/sci_updatebrowsevar.cpp \
68     sci_gateway/cpp/sci_closeEditvar.cpp \
69     sci_gateway/cpp/ui_data_gw.cpp
70
71
72 libsciui_data_la_CPPFLAGS = \
73     $(JAVA_JNI_INCLUDE) \
74     -I$(srcdir)/includes/ \
75     -I$(srcdir)/src/cpp/ \
76     -I$(srcdir)/src/c/ \
77     -I$(srcdir)/src/jni/ \
78     -I$(top_srcdir)/modules/ast/includes/ast/ \
79     -I$(top_srcdir)/modules/ast/includes/exps/ \
80     -I$(top_srcdir)/modules/ast/includes/operations/ \
81     -I$(top_srcdir)/modules/ast/includes/parse/ \
82     -I$(top_srcdir)/modules/ast/includes/symbol/ \
83     -I$(top_srcdir)/modules/ast/includes/system_env/ \
84     -I$(top_srcdir)/modules/ast/includes/types/ \
85     -I$(top_srcdir)/modules/ast/includes/analysis/ \
86     -I$(top_srcdir)/modules/jvm/includes/ \
87     -I$(top_srcdir)/modules/output_stream/includes/ \
88     -I$(top_srcdir)/modules/commons/src/jni/ \
89     -I$(top_srcdir)/modules/localization/includes/ \
90     -I$(top_srcdir)/modules/api_scilab/includes/ \
91     -I$(top_srcdir)/modules/fileio/includes/ \
92     -I$(top_srcdir)/modules/string/includes/ \
93     -I$(top_srcdir)/modules/dynamic_link/includes/ \
94     -I$(top_srcdir)/modules/threads/includes/ \
95     -I$(top_srcdir)/modules/console/includes/ \
96     $(AM_CPPFLAGS)
97
98 # Without the ui_data module
99 libsciui_data_disable_la_CPPFLAGS = \
100     -I$(srcdir)/includes/ \
101     -I$(top_srcdir)/modules/ast/includes/ast/ \
102     -I$(top_srcdir)/modules/ast/includes/exps/ \
103     -I$(top_srcdir)/modules/ast/includes/operations/ \
104     -I$(top_srcdir)/modules/ast/includes/parse/ \
105     -I$(top_srcdir)/modules/ast/includes/symbol/ \
106     -I$(top_srcdir)/modules/ast/includes/system_env/ \
107     -I$(top_srcdir)/modules/ast/includes/types/ \
108     -I$(top_srcdir)/modules/ast/includes/analysis/ \
109     -I$(top_srcdir)/modules/localization/includes/ \
110     -I$(top_srcdir)/modules/output_stream/includes \
111     $(AM_CPPFLAGS)
112
113 UI_DATA_DISABLE_C_SOURCES = src/noui_data/noui_data.c
114 UI_DATA_DISABLE_CXX_SOURCES = src/noui_data/noui_data_gw.cpp
115 libsciui_data_disable_la_SOURCES = $(UI_DATA_DISABLE_C_SOURCES) $(UI_DATA_DISABLE_CXX_SOURCES)
116
117 pkglib_LTLIBRARIES = libsciui_data-disable.la
118
119 if GUI
120 pkglib_LTLIBRARIES += libsciui_data.la
121 noinst_LTLIBRARIES = libsciui_data-algo.la
122 endif
123
124 libsciui_data_la_LDFLAGS = $(AM_LDFLAGS)
125
126 libsciui_data_algo_la_SOURCES = $(UI_DATA_C_SOURCES) $(UI_DATA_JNI_SOURCES) $(UI_DATA_CXX_SOURCES)
127 libsciui_data_la_SOURCES = $(GATEWAY_CXX_SOURCES)
128 libsciui_data_algo_la_CPPFLAGS = $(libsciui_data_la_CPPFLAGS)
129
130 # For the code check (splint)
131 CHECK_SRC= $(UI_DATA_C_SOURCES)
132 INCLUDE_FLAGS = $(libsciui_data_la_CPPFLAGS)
133
134 libsciui_data_la_LIBADD = libsciui_data-algo.la $(X_LIBS) $(X_EXTRA_LIBS)
135
136
137 #### ui_data : gateway declaration ####
138 libsciui_data_la_sci_gatewaydir = $(mydatadir)/sci_gateway
139
140 #### ui_data : icons files ####
141 #
142 # Generated with:
143 #    $ find images/ -type f -printf "%p \\\\\n" -name *.svg -or -name *.gif -or -name *.jpg -or -name *.png |sort -u
144 libsciui_data_la_iconsdir=$(mydatadir)/
145 nobase_libsciui_data_la_icons_DATA = \
146 images/icons/16x16/mimetypes/array_up.png \
147 images/icons/16x16/mimetypes/boolean.png \
148 images/icons/16x16/mimetypes/cell.png \
149 images/icons/16x16/mimetypes/double.png \
150 images/icons/16x16/mimetypes/fptr.png \
151 images/icons/16x16/mimetypes/function.png \
152 images/icons/16x16/mimetypes/handle.png \
153 images/icons/16x16/mimetypes/int.png \
154 images/icons/16x16/mimetypes/list.png \
155 images/icons/16x16/mimetypes/mlist.png \
156 images/icons/16x16/mimetypes/noicon.png \
157 images/icons/16x16/mimetypes/object.png \
158 images/icons/16x16/mimetypes/polynomial.png \
159 images/icons/16x16/mimetypes/sparse.png \
160 images/icons/16x16/mimetypes/string.png \
161 images/icons/16x16/mimetypes/timeseries.png \
162 images/icons/16x16/mimetypes/tlist.png \
163 images/icons/16x16/mimetypes/uint.png \
164 images/icons/16x16/mimetypes/user.png
165
166 if GUI
167 USEANT=1
168 endif
169
170 include $(top_srcdir)/Makefile.incl.am