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