Fix tests in hdf5 module:
[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 # This file must be used under the terms of the CeCILL.
5 # This source file is licensed as described in the file COPYING, which
6 # you should have received as part of this distribution.  The terms
7 # are also available at
8 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10 if GUI
11 if XCOS
12 # No GUI. Disable the Java build
13 USEANT=1
14 endif
15 endif
16
17
18 HDF5_SOURCES = src/c/h5_fileManagement.c \
19 src/c/h5_writeDataToFile.c \
20 src/c/h5_readDataFromFile.c \
21 src/c/h5_readDataFromFile_v1.c \
22 src/cpp/import_from_hdf5_v1.cpp \
23 src/cpp/listvar_in_hdf5_v1.cpp
24
25
26
27 GATEWAY_C_SOURCES = sci_gateway/c/gw_hdf5.c
28
29 GATEWAY_CXX_SOURCES = sci_gateway/cpp/sci_export_to_hdf5.cpp \
30 sci_gateway/cpp/sci_import_from_hdf5.cpp \
31 sci_gateway/cpp/sci_is_hdf5_file.cpp \
32 sci_gateway/cpp/sci_listvar_in_hdf5.cpp
33
34 if GIWS
35 BUILT_SOURCES=giws
36 endif
37
38
39 #### hdf5 : include files ####
40
41 libscihdf5_la_CPPFLAGS = -I$(srcdir)/includes/ \
42                                 -I$(srcdir)/src/c/ \
43                                 -I$(srcdir)/src/cpp/ \
44                                 -I$(srcdir)/src/jni/ \
45                                 -I$(top_srcdir)/libs/MALLOC/includes/ \
46                                 -I$(top_srcdir)/modules/output_stream/includes/ \
47                                 -I$(top_srcdir)/modules/api_scilab/includes/ \
48                 -I$(top_srcdir)/modules/jvm/includes/ \
49                 -I$(top_srcdir)/modules/commons/src/jni/ \
50                                 -I$(top_srcdir)/modules/localization/includes/ \
51                                 -I$(top_srcdir)/modules/fileio/includes/ \
52                                 $(JAVA_JNI_INCLUDE) \
53                                 $(HDF5_CFLAGS) \
54                                 $(AM_CPPFLAGS)
55
56
57 #### hdf5 : gateway declaration ####
58 libscihdf5_la_sci_gatewaydir = $(mydatadir)/sci_gateway
59 libscihdf5_la_sci_gateway_DATA = sci_gateway/hdf5_gateway.xml
60
61 pkglib_LTLIBRARIES = libscihdf5.la
62 noinst_LTLIBRARIES =
63
64 noinst_LTLIBRARIES += libscihdf5-algo.la
65
66 # When Scilab is built with HDF5, we need some libraries for a workaround
67
68 libscihdf5_la_LDFLAGS = $(HDF5_LIBS) $(AM_LDFLAGS)
69
70 libscihdf5_algo_la_SOURCES = $(HDF5_SOURCES)
71 libscihdf5_la_SOURCES = $(GATEWAY_CXX_SOURCES) $(GATEWAY_C_SOURCES)
72 libscihdf5_algo_la_CPPFLAGS = $(libscihdf5_la_CPPFLAGS)
73
74 # For the code check (splint)
75 CHECK_SRC= $(HDF5_SOURCES) $(GATEWAY_CXX_SOURCES)
76 INCLUDE_FLAGS = $(libscihdf5_la_CPPFLAGS)
77
78 libscihdf5_la_LIBADD = libscihdf5-algo.la
79
80 #### Target ######
81 modulename=hdf5
82
83
84 #### hdf5 : Conf files ####
85 libscihdf5_la_rootdir = $(mydatadir)
86 libscihdf5_la_root_DATA =  license.txt
87
88
89 #### hdf5 : init scripts ####
90 libscihdf5_la_etcdir = $(mydatadir)/etc
91 libscihdf5_la_etc_DATA = etc/hdf5.quit etc/hdf5.start
92
93 #### hdf5 : test file ####
94 libscihdf5_la_testsampledatadir = $(mydatadir)/tests/sample_scilab_data
95 libscihdf5_la_testsampledata_DATA = \
96 tests/sample_scilab_data/booleanmatrix.sod \
97 tests/sample_scilab_data/booleanmatrix_v1.sod \
98 tests/sample_scilab_data/booleanscalar.sod \
99 tests/sample_scilab_data/booleanscalar_v1.sod \
100 tests/sample_scilab_data/booleansparse.sod \
101 tests/sample_scilab_data/booleansparse_v1.sod \
102 tests/sample_scilab_data/emptymatrix.sod \
103 tests/sample_scilab_data/emptysparse.sod \
104 tests/sample_scilab_data/emptysparse_v1.sod \
105 tests/sample_scilab_data/hypermatrixcomplex.sod \
106 tests/sample_scilab_data/hypermatrixcomplex_v1.sod \
107 tests/sample_scilab_data/hypermatrix.sod \
108 tests/sample_scilab_data/hypermatrix_v1.sod \
109 tests/sample_scilab_data/int16.sod \
110 tests/sample_scilab_data/int16_v1.sod \
111 tests/sample_scilab_data/int32.sod \
112 tests/sample_scilab_data/int32_v1.sod \
113 tests/sample_scilab_data/int8.sod \
114 tests/sample_scilab_data/int8_v1.sod \
115 tests/sample_scilab_data/list.sod \
116 tests/sample_scilab_data/list_v1.sod \
117 tests/sample_scilab_data/listnested.sod \
118 tests/sample_scilab_data/listnested_v1.sod \
119 tests/sample_scilab_data/matricedoublecomplex.sod \
120 tests/sample_scilab_data/matricedoublecomplex_v1.sod \
121 tests/sample_scilab_data/matricedoublecomplexscalar.sod \
122 tests/sample_scilab_data/matricedoublecomplexscalar_v1.sod \
123 tests/sample_scilab_data/matricedouble.sod \
124 tests/sample_scilab_data/matricedouble_v1.sod \
125 tests/sample_scilab_data/matricedoublescalar.sod \
126 tests/sample_scilab_data/matricedoublescalar_v1.sod \
127 tests/sample_scilab_data/matricestring.sod \
128 tests/sample_scilab_data/matricestring_v1.sod \
129 tests/sample_scilab_data/matricestringscalar.sod \
130 tests/sample_scilab_data/matricestringscalar_v1.sod \
131 tests/sample_scilab_data/mlist.sod \
132 tests/sample_scilab_data/mlist_v1.sod \
133 tests/sample_scilab_data/polynomialscoef.sod \
134 tests/sample_scilab_data/polynomialscoef_v1.sod \
135 tests/sample_scilab_data/polynomials.sod \
136 tests/sample_scilab_data/polynomials_v1.sod \
137 tests/sample_scilab_data/sparsematrix.sod \
138 tests/sample_scilab_data/sparsematrix_v1.sod \
139 tests/sample_scilab_data/tlist.sod \
140 tests/sample_scilab_data/tlist_v1.sod \
141 tests/sample_scilab_data/uint16.sod \
142 tests/sample_scilab_data/uint16_v1.sod \
143 tests/sample_scilab_data/uint32.sod \
144 tests/sample_scilab_data/uint32_v1.sod \
145 tests/sample_scilab_data/uint8.sod \
146 tests/sample_scilab_data/uint8_v1.sod \
147 tests/sample_scilab_data/undefinedelement.sod \
148 tests/sample_scilab_data/undefinedelement_v1.sod \
149 tests/sample_scilab_data/voidelement.sod \
150 tests/sample_scilab_data/voidelement_v1.sod
151
152 include $(top_srcdir)/Makefile.incl.am