4630a3ee7378a0c1f9002e58d9f680847fb7e524
[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/ui_data.quit \
25         etc/ui_data.start \
26         etc/variablebrowser_menubar.xml \
27         etc/variableeditor_menubar.xml \
28         etc/XConfiguration-variables.xml \
29         etc/XConfiguration-variables.xsl
30
31 UI_DATA_JNI_SOURCES = \
32     src/jni/BrowseVar.cpp \
33     src/jni/EditVar.cpp \
34         src/jni/FileBrowser.cpp
35
36 UI_DATA_C_SOURCES = \
37     src/jni/ui_data_wrap.c \
38     src/c/PutScilabVariable.c
39
40 UI_DATA_CXX_SOURCES = \
41     src/cpp/BrowseVarManager.cpp \
42     src/cpp/FileBrowserChDir.cpp
43
44 GIWS_WRAPPERS = \
45     src/jni/BrowseVar.giws.xml \
46     src/jni/EditVar.giws.xml \
47     src/jni/FileBrowser.giws.xml
48
49 SWIG_WRAPPERS = \
50     src/jni/ui_data.i
51
52 BUILT_SOURCES=
53 if GIWS
54 BUILT_SOURCES+=giws
55 endif
56 if SWIG
57 BUILT_SOURCES+=swig
58 endif
59
60
61 GATEWAY_CXX_SOURCES = \
62     sci_gateway/cpp/sci_editvar.cpp \
63     sci_gateway/cpp/sci_browsevar.cpp \
64     sci_gateway/cpp/sci_filebrowser.cpp \
65     sci_gateway/cpp/sci_updatebrowsevar.cpp \
66     sci_gateway/cpp/sci_closeEditvar.cpp \
67     sci_gateway/cpp/ui_data_gw.cpp
68
69
70 libsciui_data_la_CPPFLAGS = \
71     $(JAVA_JNI_INCLUDE) \
72     -I$(srcdir)/includes/ \
73     -I$(srcdir)/src/cpp/ \
74     -I$(srcdir)/src/c/ \
75     -I$(srcdir)/src/jni/ \
76     -I$(top_srcdir)/modules/ast/includes/ast/ \
77     -I$(top_srcdir)/modules/ast/includes/exps/ \
78     -I$(top_srcdir)/modules/ast/includes/operations/ \
79     -I$(top_srcdir)/modules/ast/includes/parse/ \
80     -I$(top_srcdir)/modules/ast/includes/symbol/ \
81     -I$(top_srcdir)/modules/ast/includes/system_env/ \
82     -I$(top_srcdir)/modules/ast/includes/types/ \
83     -I$(top_srcdir)/modules/ast/includes/analysis/ \
84     -I$(top_srcdir)/modules/jvm/includes/ \
85     -I$(top_srcdir)/modules/output_stream/includes/ \
86     -I$(top_srcdir)/modules/commons/src/jni/ \
87     -I$(top_srcdir)/modules/localization/includes/ \
88     -I$(top_srcdir)/modules/api_scilab/includes/ \
89     -I$(top_srcdir)/modules/fileio/includes/ \
90     -I$(top_srcdir)/modules/string/includes/ \
91     -I$(top_srcdir)/modules/dynamic_link/includes/ \
92     -I$(top_srcdir)/modules/threads/includes/ \
93     -I$(top_srcdir)/modules/console/includes/ \
94     $(AM_CPPFLAGS)
95
96 # Without the ui_data module
97 libsciui_data_disable_la_CPPFLAGS = \
98     -I$(srcdir)/includes/ \
99     -I$(top_srcdir)/modules/ast/includes/ast/ \
100     -I$(top_srcdir)/modules/ast/includes/exps/ \
101     -I$(top_srcdir)/modules/ast/includes/operations/ \
102     -I$(top_srcdir)/modules/ast/includes/parse/ \
103     -I$(top_srcdir)/modules/ast/includes/symbol/ \
104     -I$(top_srcdir)/modules/ast/includes/system_env/ \
105     -I$(top_srcdir)/modules/ast/includes/types/ \
106     -I$(top_srcdir)/modules/ast/includes/analysis/ \
107     -I$(top_srcdir)/modules/localization/includes/ \
108     -I$(top_srcdir)/modules/output_stream/includes \
109     $(AM_CPPFLAGS)
110
111 UI_DATA_DISABLE_C_SOURCES = src/noui_data/noui_data.c
112 UI_DATA_DISABLE_CXX_SOURCES = src/noui_data/noui_data_gw.cpp
113 libsciui_data_disable_la_SOURCES = $(UI_DATA_DISABLE_C_SOURCES) $(UI_DATA_DISABLE_CXX_SOURCES)
114
115 pkglib_LTLIBRARIES = libsciui_data-disable.la
116
117 if GUI
118 pkglib_LTLIBRARIES += libsciui_data.la
119 noinst_LTLIBRARIES = libsciui_data-algo.la
120 endif
121
122 libsciui_data_la_LDFLAGS = $(AM_LDFLAGS)
123
124 libsciui_data_algo_la_SOURCES = $(UI_DATA_C_SOURCES) $(UI_DATA_JNI_SOURCES) $(UI_DATA_CXX_SOURCES)
125 libsciui_data_la_SOURCES = $(GATEWAY_CXX_SOURCES)
126 libsciui_data_algo_la_CPPFLAGS = $(libsciui_data_la_CPPFLAGS)
127
128 # For the code check (splint)
129 CHECK_SRC= $(UI_DATA_C_SOURCES)
130 INCLUDE_FLAGS = $(libsciui_data_la_CPPFLAGS)
131
132 libsciui_data_la_LIBADD = libsciui_data-algo.la $(X_LIBS) $(X_EXTRA_LIBS)
133
134
135 #### ui_data : gateway declaration ####
136 libsciui_data_la_sci_gatewaydir = $(mydatadir)/sci_gateway
137
138 #### ui_data : icons files ####
139 #
140 # Generated with:
141 #    $ find images/ -type f -printf "%p \\\\\n" -name *.svg -or -name *.gif -or -name *.jpg -or -name *.png |sort -u
142 libsciui_data_la_iconsdir=$(mydatadir)/
143 nobase_libsciui_data_la_icons_DATA = \
144 images/icons/16x16/mimetypes/array_up.png \
145 images/icons/16x16/mimetypes/boolean.png \
146 images/icons/16x16/mimetypes/cell.png \
147 images/icons/16x16/mimetypes/double.png \
148 images/icons/16x16/mimetypes/fptr.png \
149 images/icons/16x16/mimetypes/function.png \
150 images/icons/16x16/mimetypes/handle.png \
151 images/icons/16x16/mimetypes/int.png \
152 images/icons/16x16/mimetypes/list.png \
153 images/icons/16x16/mimetypes/mlist.png \
154 images/icons/16x16/mimetypes/noicon.png \
155 images/icons/16x16/mimetypes/object.png \
156 images/icons/16x16/mimetypes/polynomial.png \
157 images/icons/16x16/mimetypes/sparse.png \
158 images/icons/16x16/mimetypes/string.png \
159 images/icons/16x16/mimetypes/timeseries.png \
160 images/icons/16x16/mimetypes/tlist.png \
161 images/icons/16x16/mimetypes/uint.png \
162 images/icons/16x16/mimetypes/user.png
163
164 if GUI
165 USEANT=1
166 endif
167
168 include $(top_srcdir)/Makefile.incl.am