hdf5: fix crashes on extraction of compound fields integer 64 bits ( signed and
[scilab.git] / scilab / modules / hdf5 / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2009 - DIGITEO - Allan CORNET
3 #
4 # Copyright (C) 2012 - 2016 - Scilab Enterprises
5 #
6 # This file is hereby licensed under the terms of the GNU GPL v2.0,
7 # pursuant to article 5.3.4 of the CeCILL v.2.1.
8 # This file was originally licensed under the terms of the CeCILL v2.1,
9 # and continues to be available under such terms.
10 # For more information, see the COPYING file which you should have received
11 # along with this program.
12
13 if GUI
14 if XCOS
15 # No GUI. Disable the Java build
16 USEANT=1
17 endif
18 endif
19
20
21 HDF5_SOURCES = \
22     src/c/h5_fileManagement.c \
23     src/c/h5_writeDataToFile.c \
24     src/c/h5_readDataFromFile.c \
25     src/c/h5_readDataFromFile_v1.c \
26     src/cpp/listvar_in_hdf5_v1.cpp
27
28 HDF5_CXX_SOURCES = \
29     src/cpp/H5Attribute.cpp \
30     src/cpp/H5AttributesList.cpp \
31     src/cpp/H5DataConverter.cpp \
32     src/cpp/H5Dataset.cpp \
33     src/cpp/H5Dataspace.cpp \
34     src/cpp/H5File.cpp \
35     src/cpp/H5Group.cpp \
36     src/cpp/H5Object.cpp \
37     src/cpp/H5Type.cpp \
38     src/cpp/H5DataFactory.cpp \
39     src/cpp/H5VariableScope.cpp \
40     src/cpp/H5SoftLink.cpp \
41     src/cpp/H5ExternalLink.cpp \
42     src/cpp/H5HardLink.cpp \
43     src/cpp/H5Link.cpp \
44     src/cpp/HDF5Scilab.cpp \
45     src/cpp/H5StringData.cpp \
46     src/cpp/H5ReferenceData.cpp \
47     src/cpp/H5CompoundData.cpp \
48     src/cpp/H5ArrayData.cpp \
49     src/cpp/H5VlenData.cpp \
50     src/cpp/H5Options.cpp \
51     src/cpp/handle_properties.cpp \
52     src/c/DllmainHdf5.c
53
54 GATEWAY_CXX_SOURCES = \
55     sci_gateway/cpp/hdf5_gw.cpp \
56     sci_gateway/cpp/sci_hdf5_save.cpp \
57     sci_gateway/cpp/sci_hdf5_load.cpp \
58     sci_gateway/cpp/sci_hdf5_load_v1.cpp \
59     sci_gateway/cpp/sci_hdf5_load_v2.cpp \
60     sci_gateway/cpp/sci_hdf5_load_v3.cpp \
61     sci_gateway/cpp/sci_hdf5_is_file.cpp \
62     sci_gateway/cpp/sci_hdf5_listvar.cpp \
63     sci_gateway/cpp/sci_hdf5_listvar_v2.cpp \
64     sci_gateway/cpp/sci_hdf5_listvar_v3.cpp \
65     sci_gateway/cpp/sci_hdf5_file_version.cpp \
66     sci_gateway/cpp/sci_h5dump.cpp \
67     sci_gateway/cpp/sci_h5open.cpp \
68     sci_gateway/cpp/sci_h5close.cpp \
69     sci_gateway/cpp/sci_h5read.cpp \
70     sci_gateway/cpp/sci_h5ls.cpp \
71     sci_gateway/cpp/sci_percent_H5Object_p.cpp \
72     sci_gateway/cpp/sci_percent_H5Object_e.cpp \
73     sci_gateway/cpp/sci_h5group.cpp \
74     sci_gateway/cpp/sci_h5rm.cpp \
75     sci_gateway/cpp/sci_h5dataset.cpp \
76     sci_gateway/cpp/sci_h5write.cpp \
77     sci_gateway/cpp/sci_h5attr.cpp \
78     sci_gateway/cpp/sci_h5ln.cpp \
79     sci_gateway/cpp/sci_h5readattr.cpp \
80     sci_gateway/cpp/sci_h5flush.cpp \
81     sci_gateway/cpp/sci_h5cp.cpp \
82     sci_gateway/cpp/sci_h5isfoo.cpp \
83     sci_gateway/cpp/sci_h5mount.cpp \
84     sci_gateway/cpp/sci_h5umount.cpp \
85     sci_gateway/cpp/sci_h5mv.cpp \
86     sci_gateway/cpp/sci_h5get.cpp \
87     sci_gateway/cpp/sci_h5label.cpp \
88     sci_gateway/cpp/sci_h5exists.cpp \
89     sci_gateway/cpp/sci_percent_H5Object_fieldnames.cpp
90
91 if GIWS
92 BUILT_SOURCES=giws
93 endif
94
95
96 #### hdf5 : include files ####
97 FORCE_HDF_1.8_API = \
98     -DH5Dopen_vers=2 \
99     -DH5Topen_vers=2 \
100     -DH5Dcreate_vers=2 \
101     -DH5Aiterate_vers=2 \
102     -DH5Gcreate_vers=2 \
103     -DH5Gopen_vers=2 \
104     -DH5Tget_array_dims_vers=2 \
105     -DH5Acreate_vers=2 -DNO_DEPRECATED_SYMBOLS
106
107 libscihdf5_la_CPPFLAGS = \
108     -I$(srcdir)/includes/ \
109     -I$(srcdir)/src/c/ \
110     -I$(srcdir)/src/cpp/ \
111     -I$(top_srcdir)/modules/ast/includes/ast/ \
112     -I$(top_srcdir)/modules/ast/includes/exps/ \
113     -I$(top_srcdir)/modules/ast/includes/operations/ \
114     -I$(top_srcdir)/modules/ast/includes/parse/ \
115     -I$(top_srcdir)/modules/ast/includes/symbol/ \
116     -I$(top_srcdir)/modules/ast/includes/system_env/ \
117     -I$(top_srcdir)/modules/ast/includes/types/ \
118     -I$(top_srcdir)/modules/ast/includes/analysis/ \
119     -I$(top_srcdir)/modules/threads/includes/ \
120     -I$(top_srcdir)/modules/dynamic_link/includes/ \
121     -I$(top_srcdir)/modules/output_stream/includes/ \
122     -I$(top_srcdir)/modules/api_scilab/includes/ \
123     -I$(top_srcdir)/modules/jvm/includes/ \
124     -I$(top_srcdir)/modules/commons/src/jni/ \
125     -I$(top_srcdir)/modules/localization/includes/ \
126     -I$(top_srcdir)/modules/fileio/includes/ \
127     -I$(top_srcdir)/modules/string/includes/ \
128     -I$(top_srcdir)/modules/console/includes/ \
129     -I$(top_srcdir)/modules/graphic_objects/includes/ \
130     -I$(top_srcdir)/modules/graphics/includes/ \
131     -I$(top_srcdir)/modules/io/includes/ \
132     $(JAVA_JNI_INCLUDE) \
133     $(HDF5_CFLAGS) \
134     $(AM_CPPFLAGS) \
135     $(FORCE_HDF_1.8_API)
136
137
138
139
140 #### hdf5 : gateway declaration ####
141 libscihdf5_la_sci_gatewaydir = $(mydatadir)/sci_gateway
142 libscihdf5_la_sci_gateway_DATA = sci_gateway/hdf5_gateway.xml
143
144 pkglib_LTLIBRARIES = libscihdf5.la
145 noinst_LTLIBRARIES =
146
147 noinst_LTLIBRARIES += libscihdf5-algo.la
148
149 # When Scilab is built with HDF5, we need some libraries for a workaround
150
151 libscihdf5_la_LDFLAGS = $(AM_LDFLAGS)
152
153 libscihdf5_algo_la_SOURCES = $(HDF5_SOURCES) $(HDF5_CXX_SOURCES)
154 libscihdf5_la_SOURCES = $(GATEWAY_CXX_SOURCES)
155 libscihdf5_algo_la_CPPFLAGS = $(libscihdf5_la_CPPFLAGS)
156
157 # For the code check (splint)
158 CHECK_SRC= $(HDF5_SOURCES) $(GATEWAY_CXX_SOURCES)
159 INCLUDE_FLAGS = $(libscihdf5_la_CPPFLAGS)
160
161 libscihdf5_la_LIBADD = libscihdf5-algo.la $(HDF5_LIBS)
162
163 #### Target ######
164 modulename=hdf5
165
166
167 #### hdf5 : Conf files ####
168 libscihdf5_la_rootdir = $(mydatadir)
169 libscihdf5_la_root_DATA =  license.txt
170
171
172 #### hdf5 : init scripts ####
173 libscihdf5_la_etcdir = $(mydatadir)/etc
174 libscihdf5_la_etc_DATA = \
175     etc/hdf5.quit \
176     etc/hdf5.start
177
178 #### hdf5 : test file ####
179 libscihdf5_la_testsampledatadir = $(mydatadir)/tests/sample_scilab_data
180 libscihdf5_la_testsampledata_DATA = \
181 tests/sample_scilab_data/booleanmatrix.sod \
182 tests/sample_scilab_data/booleanmatrix_v1.sod \
183 tests/sample_scilab_data/booleanscalar.sod \
184 tests/sample_scilab_data/booleanscalar_v1.sod \
185 tests/sample_scilab_data/booleansparse.sod \
186 tests/sample_scilab_data/booleansparse_v1.sod \
187 tests/sample_scilab_data/emptymatrix.sod \
188 tests/sample_scilab_data/emptysparse.sod \
189 tests/sample_scilab_data/emptysparse_v1.sod \
190 tests/sample_scilab_data/hypermatrixcomplex.sod \
191 tests/sample_scilab_data/hypermatrixcomplex_v1.sod \
192 tests/sample_scilab_data/hypermatrix.sod \
193 tests/sample_scilab_data/hypermatrix_v1.sod \
194 tests/sample_scilab_data/int16.sod \
195 tests/sample_scilab_data/int16_v1.sod \
196 tests/sample_scilab_data/int32.sod \
197 tests/sample_scilab_data/int32_v1.sod \
198 tests/sample_scilab_data/int8.sod \
199 tests/sample_scilab_data/int8_v1.sod \
200 tests/sample_scilab_data/list.sod \
201 tests/sample_scilab_data/list_v1.sod \
202 tests/sample_scilab_data/listnested.sod \
203 tests/sample_scilab_data/listnested_v1.sod \
204 tests/sample_scilab_data/matricedoublecomplex.sod \
205 tests/sample_scilab_data/matricedoublecomplex_v1.sod \
206 tests/sample_scilab_data/matricedoublecomplexscalar.sod \
207 tests/sample_scilab_data/matricedoublecomplexscalar_v1.sod \
208 tests/sample_scilab_data/matricedouble.sod \
209 tests/sample_scilab_data/matricedouble_v1.sod \
210 tests/sample_scilab_data/matricedoublescalar.sod \
211 tests/sample_scilab_data/matricedoublescalar_v1.sod \
212 tests/sample_scilab_data/matricestring.sod \
213 tests/sample_scilab_data/matricestring_v1.sod \
214 tests/sample_scilab_data/matricestringscalar.sod \
215 tests/sample_scilab_data/matricestringscalar_v1.sod \
216 tests/sample_scilab_data/mlist.sod \
217 tests/sample_scilab_data/mlist_v1.sod \
218 tests/sample_scilab_data/polynomialscoef.sod \
219 tests/sample_scilab_data/polynomialscoef_v1.sod \
220 tests/sample_scilab_data/polynomials.sod \
221 tests/sample_scilab_data/polynomials_v1.sod \
222 tests/sample_scilab_data/sparsematrix.sod \
223 tests/sample_scilab_data/sparsematrix_v1.sod \
224 tests/sample_scilab_data/tlist.sod \
225 tests/sample_scilab_data/tlist_v1.sod \
226 tests/sample_scilab_data/uint16.sod \
227 tests/sample_scilab_data/uint16_v1.sod \
228 tests/sample_scilab_data/uint32.sod \
229 tests/sample_scilab_data/uint32_v1.sod \
230 tests/sample_scilab_data/uint8.sod \
231 tests/sample_scilab_data/uint8_v1.sod \
232 tests/sample_scilab_data/undefinedelement.sod \
233 tests/sample_scilab_data/undefinedelement_v1.sod \
234 tests/sample_scilab_data/voidelement.sod \
235 tests/sample_scilab_data/voidelement_v1.sod
236
237 include $(top_srcdir)/Makefile.incl.am