summaryrefslogtreecommitdiffstats
path: root/scilab/modules
diff options
context:
space:
mode:
authorAllan CORNET <allan.cornet@scilab.org>2009-07-10 11:38:47 +0200
committerAllan CORNET <allan.cornet@scilab.org>2009-07-10 11:38:47 +0200
commite15bd9a8022eedbdefd37850f01a2c60c6a57ea6 (patch)
tree223c68741c9f9924c3fa125d7cd1db80f0c013fa /scilab/modules
parent20e27668d6ce53bd5d48fa4742125a77f92eb97e (diff)
downloadscilab-e15bd9a8022eedbdefd37850f01a2c60c6a57ea6.zip
scilab-e15bd9a8022eedbdefd37850f01a2c60c6a57ea6.tar.gz
hdf5 module (windows)
Diffstat (limited to 'scilab/modules')
-rw-r--r--scilab/modules/Makefile.am6
-rw-r--r--scilab/modules/core/includes/callinterf.h1
-rw-r--r--scilab/modules/core/src/c/callinterf.c5
-rw-r--r--scilab/modules/fileio/Makefile.am28
-rw-r--r--scilab/modules/fileio/fileio.vcproj98
-rw-r--r--scilab/modules/fileio/includes/gw_fileio.h3
-rw-r--r--scilab/modules/fileio/sci_gateway/c/gw_fileio.c6
-rw-r--r--scilab/modules/fileio/sci_gateway/fileio_gateway.xml2
-rw-r--r--scilab/modules/fileio/src/c/DllmainFileio.c2
-rw-r--r--scilab/modules/hdf5/.gitignore5
-rw-r--r--scilab/modules/hdf5/Makefile.am67
-rw-r--r--scilab/modules/hdf5/build.xml24
-rw-r--r--scilab/modules/hdf5/changelog.txt8
-rw-r--r--scilab/modules/hdf5/etc/hdf5.quit8
-rw-r--r--scilab/modules/hdf5/etc/hdf5.start15
-rw-r--r--scilab/modules/hdf5/hdf5.iss53
-rw-r--r--scilab/modules/hdf5/includes/gw_hdf5.h22
-rw-r--r--scilab/modules/hdf5/includes/h5_attributeConstants.h (renamed from scilab/modules/fileio/includes/h5_attributeConstants.h)0
-rw-r--r--scilab/modules/hdf5/includes/h5_fileManagement.h (renamed from scilab/modules/fileio/includes/h5_fileManagement.h)0
-rw-r--r--scilab/modules/hdf5/includes/h5_readDataFromFile.h (renamed from scilab/modules/fileio/includes/h5_readDataFromFile.h)0
-rw-r--r--scilab/modules/hdf5/includes/h5_writeDataToFile.h (renamed from scilab/modules/fileio/includes/h5_writeDataToFile.h)0
-rw-r--r--scilab/modules/hdf5/license.txt9
-rw-r--r--scilab/modules/hdf5/macros/buildmacros.bat11
-rw-r--r--scilab/modules/hdf5/macros/buildmacros.sce16
-rw-r--r--scilab/modules/hdf5/macros/cleanmacros.bat13
-rw-r--r--scilab/modules/hdf5/readme.txt1
-rw-r--r--scilab/modules/hdf5/sci_gateway/c/gw_hdf5.c32
-rw-r--r--scilab/modules/hdf5/sci_gateway/cpp/sci_export_to_hdf5.cpp (renamed from scilab/modules/fileio/sci_gateway/cpp/sci_export_to_hdf5.cpp)2
-rw-r--r--scilab/modules/hdf5/sci_gateway/cpp/sci_import_from_hdf5.cpp (renamed from scilab/modules/fileio/sci_gateway/cpp/sci_import_from_hdf5.cpp)2
-rw-r--r--scilab/modules/hdf5/sci_gateway/cpp/sci_no_hdf5.cpp (renamed from scilab/modules/fileio/sci_gateway/cpp/sci_no_hdf5.cpp)0
-rw-r--r--scilab/modules/hdf5/sci_gateway/hdf5_gateway.xml35
-rw-r--r--scilab/modules/hdf5/src/c/DllmainHdf5.c35
-rw-r--r--scilab/modules/hdf5/src/c/LibScilab_Import.def11
-rw-r--r--scilab/modules/hdf5/src/c/h5_fileManagement.c (renamed from scilab/modules/fileio/src/c/h5_fileManagement.c)0
-rw-r--r--scilab/modules/hdf5/src/c/h5_readDataFromFile.c (renamed from scilab/modules/fileio/src/c/h5_readDataFromFile.c)0
-rw-r--r--scilab/modules/hdf5/src/c/h5_writeDataToFile.c (renamed from scilab/modules/fileio/src/c/h5_writeDataToFile.c)0
-rw-r--r--scilab/modules/hdf5/src/c/hdf5.rc97
-rw-r--r--scilab/modules/hdf5/src/c/hdf5.vcproj461
-rw-r--r--scilab/modules/hdf5/src/c/hdf5_header.def4
-rw-r--r--scilab/modules/hdf5/src/c/localization_Import.def7
-rw-r--r--scilab/modules/hdf5/src/c/resource.h0
-rw-r--r--scilab/modules/hdf5/src/java/hdf5-JAVA.vcproj115
-rw-r--r--scilab/modules/hdf5/version.xml21
43 files changed, 1094 insertions, 131 deletions
diff --git a/scilab/modules/Makefile.am b/scilab/modules/Makefile.am
index 9babc2a..d5eb528 100644
--- a/scilab/modules/Makefile.am
+++ b/scilab/modules/Makefile.am
@@ -80,7 +80,8 @@ demo_tools \
80genetic_algorithms \ 80genetic_algorithms \
81simulated_annealing \ 81simulated_annealing \
82parameters \ 82parameters \
83matio 83matio \
84hdf5
84 85
85#umfpack 86#umfpack
86 87
@@ -177,7 +178,8 @@ ENGINE_LIBS = $(top_builddir)/modules/fileio/libscifileio.la \
177 $(top_builddir)/modules/signal_processing/libscisignal_processing.la \ 178 $(top_builddir)/modules/signal_processing/libscisignal_processing.la \
178 $(top_builddir)/modules/interpolation/libsciinterpolation.la \ 179 $(top_builddir)/modules/interpolation/libsciinterpolation.la \
179 $(top_builddir)/modules/string/libscistring.la \ 180 $(top_builddir)/modules/string/libscistring.la \
180 $(top_builddir)/modules/functions/libscifunctions.la 181 $(top_builddir)/modules/functions/libscifunctions.la \
182 $(top_builddir)/modules/hdf5/libscihdf5.la
181 183
182OTHER_LIBS = $(top_builddir)/modules/fftw/libscifftw.la \ 184OTHER_LIBS = $(top_builddir)/modules/fftw/libscifftw.la \
183$(top_builddir)/modules/umfpack/libsciumfpack.la \ 185$(top_builddir)/modules/umfpack/libsciumfpack.la \
diff --git a/scilab/modules/core/includes/callinterf.h b/scilab/modules/core/includes/callinterf.h
index a94deca..9edf11f 100644
--- a/scilab/modules/core/includes/callinterf.h
+++ b/scilab/modules/core/includes/callinterf.h
@@ -83,6 +83,7 @@
83/* 59 */ #include "dynamic_gateways.h" /* matio */ 83/* 59 */ #include "dynamic_gateways.h" /* matio */
84/* 60 */ #include "dynamic_gateways.h" /* helptools */ 84/* 60 */ #include "dynamic_gateways.h" /* helptools */
85/* 61 */ #include "../../call_scilab/includes/gw_call_scilab.h" 85/* 61 */ #include "../../call_scilab/includes/gw_call_scilab.h"
86/* 62 */ #include "../../hdf5/includes/gw_hdf5.h"
86 87
87/*------------------------------------- 88/*-------------------------------------
88 * long jump to stop interface computation 89 * long jump to stop interface computation
diff --git a/scilab/modules/core/src/c/callinterf.c b/scilab/modules/core/src/c/callinterf.c
index 26bdcce..eb5dff7 100644
--- a/scilab/modules/core/src/c/callinterf.c
+++ b/scilab/modules/core/src/c/callinterf.c
@@ -33,7 +33,7 @@ static void sci_sigint_addinter(int n);
33 ** Watch out the positions are crutial !!! 33 ** Watch out the positions are crutial !!!
34 ** @TODO : Make this less crappy... 34 ** @TODO : Make this less crappy...
35 **/ 35 **/
36#define INTERFACES_MAX 61 36#define INTERFACES_MAX 62
37static OpTab Interfaces[INTERFACES_MAX] = { 37static OpTab Interfaces[INTERFACES_MAX] = {
38 /* 01 */ {gw_user}, /* free position may be used */ 38 /* 01 */ {gw_user}, /* free position may be used */
39 /* 02 */ {gw_linear_algebra}, 39 /* 02 */ {gw_linear_algebra},
@@ -95,7 +95,8 @@ static OpTab Interfaces[INTERFACES_MAX] = {
95 /* 58 */ {gw_dynamic_umfpack}, 95 /* 58 */ {gw_dynamic_umfpack},
96 /* 59 */ {gw_dynamic_matio}, 96 /* 59 */ {gw_dynamic_matio},
97 /* 60 */ {gw_dynamic_helptools}, 97 /* 60 */ {gw_dynamic_helptools},
98 /* 61 */ {gw_call_scilab} 98 /* 61 */ {gw_call_scilab},
99 /* 62 */ {gw_hdf5}
99}; 100};
100/*--------------------------------------------------------------------------*/ 101/*--------------------------------------------------------------------------*/
101static int sig_ok = 0; 102static int sig_ok = 0;
diff --git a/scilab/modules/fileio/Makefile.am b/scilab/modules/fileio/Makefile.am
index 393d031..9bdd7ac 100644
--- a/scilab/modules/fileio/Makefile.am
+++ b/scilab/modules/fileio/Makefile.am
@@ -84,32 +84,11 @@ sci_gateway/c/sci_newest.c \
84sci_gateway/c/sci_get_absolute_file_path.c \ 84sci_gateway/c/sci_get_absolute_file_path.c \
85sci_gateway/c/sci_getrelativefilename.c 85sci_gateway/c/sci_getrelativefilename.c
86 86
87if HDF5
88FILEIO_SOURCES += src/c/h5_fileManagement.c \
89src/c/h5_writeDataToFile.c \
90src/c/h5_readDataFromFile.c
91
92#GATEWAY_SOURCES += \
93#sci_gateway/c/sci_import_from_hdf5.c
94
95GATEWAY_CPP_SOURCES = \
96sci_gateway/cpp/sci_export_to_hdf5.cpp \
97sci_gateway/cpp/sci_import_from_hdf5.cpp
98
99else
100
101GATEWAY_CPP_SOURCES = \
102sci_gateway/cpp/sci_no_hdf5.cpp
103
104endif
105
106
107libscifileio_la_CXXFLAGS= -I$(srcdir)/includes/ \ 87libscifileio_la_CXXFLAGS= -I$(srcdir)/includes/ \
108 -I$(srcdir)/src/c/ \ 88 -I$(srcdir)/src/c/ \
109 -I$(top_srcdir)/libs/MALLOC/includes/ \ 89 -I$(top_srcdir)/libs/MALLOC/includes/ \
110 -I$(top_srcdir)/modules/api_scilab/includes \ 90 -I$(top_srcdir)/modules/api_scilab/includes \
111 -I$(top_srcdir)/modules/output_stream/includes \ 91 -I$(top_srcdir)/modules/output_stream/includes
112 $(HDF5_CFLAGS)
113 92
114libscifileio_la_CFLAGS= -I$(srcdir)/includes/ \ 93libscifileio_la_CFLAGS= -I$(srcdir)/includes/ \
115 -I$(srcdir)/src/c/ \ 94 -I$(srcdir)/src/c/ \
@@ -118,12 +97,11 @@ libscifileio_la_CFLAGS= -I$(srcdir)/includes/ \
118 -I$(top_srcdir)/modules/io/includes \ 97 -I$(top_srcdir)/modules/io/includes \
119 -I$(top_srcdir)/modules/api_scilab/includes \ 98 -I$(top_srcdir)/modules/api_scilab/includes \
120 -I$(top_srcdir)/modules/string/includes \ 99 -I$(top_srcdir)/modules/string/includes \
121 -I$(top_srcdir)/modules/localization/includes \ 100 -I$(top_srcdir)/modules/localization/includes
122 $(HDF5_CFLAGS)
123 101
124pkglib_LTLIBRARIES = libscifileio.la 102pkglib_LTLIBRARIES = libscifileio.la
125 103
126libscifileio_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(HDF5_LIBS) 104libscifileio_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
127 105
128libscifileio_la_SOURCES = $(FILEIO_SOURCES) $(GATEWAY_SOURCES) $(GATEWAY_CPP_SOURCES) 106libscifileio_la_SOURCES = $(FILEIO_SOURCES) $(GATEWAY_SOURCES) $(GATEWAY_CPP_SOURCES)
129 107
diff --git a/scilab/modules/fileio/fileio.vcproj b/scilab/modules/fileio/fileio.vcproj
index f2f99a5..54a8cd0 100644
--- a/scilab/modules/fileio/fileio.vcproj
+++ b/scilab/modules/fileio/fileio.vcproj
@@ -6,7 +6,7 @@
6 ProjectGUID="{4FC72D4A-80EE-4B1A-8724-0201C1A35621}" 6 ProjectGUID="{4FC72D4A-80EE-4B1A-8724-0201C1A35621}"
7 RootNamespace="fileio" 7 RootNamespace="fileio"
8 Keyword="Win32Proj" 8 Keyword="Win32Proj"
9 9 TargetFrameworkVersion="0"
10 > 10 >
11 <Platforms> 11 <Platforms>
12 <Platform 12 <Platform
@@ -44,8 +44,8 @@
44 <Tool 44 <Tool
45 Name="VCCLCompilerTool" 45 Name="VCCLCompilerTool"
46 Optimization="0" 46 Optimization="0"
47 AdditionalIncludeDirectories="includes;src/c;../../libs/MALLOC/includes;../../libs/hdf5/include;../windows_tools/includes;../api_scilab/includes;../core/includes;../string/includes;../output_stream/includes;../io/includes;../localization/includes;../../libs/intl" 47 AdditionalIncludeDirectories="includes;src/c;../../libs/MALLOC/includes;../windows_tools/includes;../api_scilab/includes;../core/includes;../string/includes;../output_stream/includes;../io/includes;../localization/includes;../../libs/intl"
48 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;FORDLL;_DEBUG;_WINDOWS;_USRDLL;FILEIO_EXPORTS;_HDF5USEDLL_;WIN32" 48 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;FORDLL;_DEBUG;_WINDOWS;_USRDLL;FILEIO_EXPORTS"
49 MinimalRebuild="true" 49 MinimalRebuild="true"
50 BasicRuntimeChecks="0" 50 BasicRuntimeChecks="0"
51 RuntimeLibrary="3" 51 RuntimeLibrary="3"
@@ -128,8 +128,8 @@
128 <Tool 128 <Tool
129 Name="VCCLCompilerTool" 129 Name="VCCLCompilerTool"
130 Optimization="0" 130 Optimization="0"
131 AdditionalIncludeDirectories="includes;src/c;../../libs/MALLOC/includes;../../libs/hdf5/include;../windows_tools/includes;../api_scilab/includes;../core/includes;../string/includes;../output_stream/includes;../io/includes;../localization/includes;../../libs/intl" 131 AdditionalIncludeDirectories="includes;src/c;../../libs/MALLOC/includes;../windows_tools/includes;../api_scilab/includes;../core/includes;../string/includes;../output_stream/includes;../io/includes;../localization/includes;../../libs/intl"
132 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;FORDLL;_DEBUG;_WINDOWS;_USRDLL;FILEIO_EXPORTS;_HDF5USEDLL_;WIN32" 132 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;FORDLL;_DEBUG;_WINDOWS;_USRDLL;FILEIO_EXPORTS"
133 MinimalRebuild="true" 133 MinimalRebuild="true"
134 BasicRuntimeChecks="0" 134 BasicRuntimeChecks="0"
135 RuntimeLibrary="3" 135 RuntimeLibrary="3"
@@ -214,8 +214,8 @@
214 InlineFunctionExpansion="1" 214 InlineFunctionExpansion="1"
215 FavorSizeOrSpeed="1" 215 FavorSizeOrSpeed="1"
216 WholeProgramOptimization="false" 216 WholeProgramOptimization="false"
217 AdditionalIncludeDirectories="includes;src/c;../../libs/MALLOC/includes;../../libs/hdf5/include;../windows_tools/includes;../api_scilab/includes;../core/includes;../string/includes;../output_stream/includes;../io/includes;../localization/includes;../../libs/intl" 217 AdditionalIncludeDirectories="includes;src/c;../../libs/MALLOC/includes;../windows_tools/includes;../api_scilab/includes;../core/includes;../string/includes;../output_stream/includes;../io/includes;../localization/includes;../../libs/intl"
218 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;FORDLL;NDEBUG;_WINDOWS;_USRDLL;FILEIO_EXPORTS;_HDF5USEDLL_;WIN32" 218 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;FORDLL;NDEBUG;_WINDOWS;_USRDLL;FILEIO_EXPORTS"
219 StringPooling="true" 219 StringPooling="true"
220 RuntimeLibrary="2" 220 RuntimeLibrary="2"
221 EnableEnhancedInstructionSet="0" 221 EnableEnhancedInstructionSet="0"
@@ -305,8 +305,8 @@
305 InlineFunctionExpansion="1" 305 InlineFunctionExpansion="1"
306 FavorSizeOrSpeed="1" 306 FavorSizeOrSpeed="1"
307 WholeProgramOptimization="false" 307 WholeProgramOptimization="false"
308 AdditionalIncludeDirectories="includes;src/c;../../libs/MALLOC/includes;../../libs/hdf5/include;../windows_tools/includes;../api_scilab/includes;../core/includes;../string/includes;../output_stream/includes;../io/includes;../localization/includes;../../libs/intl" 308 AdditionalIncludeDirectories="includes;src/c;../../libs/MALLOC/includes;../windows_tools/includes;../api_scilab/includes;../core/includes;../string/includes;../output_stream/includes;../io/includes;../localization/includes;../../libs/intl"
309 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;FORDLL;NDEBUG;_WINDOWS;_USRDLL;FILEIO_EXPORTS;_HDF5USEDLL_;WIN32" 309 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;FORDLL;NDEBUG;_WINDOWS;_USRDLL;FILEIO_EXPORTS"
310 StringPooling="true" 310 StringPooling="true"
311 RuntimeLibrary="2" 311 RuntimeLibrary="2"
312 EnableEnhancedInstructionSet="0" 312 EnableEnhancedInstructionSet="0"
@@ -465,18 +465,6 @@
465 > 465 >
466 </File> 466 </File>
467 <File 467 <File
468 RelativePath=".\src\c\h5_fileManagement.c"
469 >
470 </File>
471 <File
472 RelativePath=".\src\c\h5_readDataFromFile.c"
473 >
474 </File>
475 <File
476 RelativePath=".\src\c\h5_writeDataToFile.c"
477 >
478 </File>
479 <File
480 RelativePath=".\src\c\isdir.c" 468 RelativePath=".\src\c\isdir.c"
481 > 469 >
482 </File> 470 </File>
@@ -561,42 +549,6 @@
561 > 549 >
562 </File> 550 </File>
563 <File 551 <File
564 RelativePath=".\sci_gateway\cpp\sci_export_to_hdf5.cpp"
565 >
566 <FileConfiguration
567 Name="Debug|Win32"
568 >
569 <Tool
570 Name="VCCLCompilerTool"
571 CompileAs="0"
572 />
573 </FileConfiguration>
574 <FileConfiguration
575 Name="Debug|x64"
576 >
577 <Tool
578 Name="VCCLCompilerTool"
579 CompileAs="0"
580 />
581 </FileConfiguration>
582 <FileConfiguration
583 Name="Release|Win32"
584 >
585 <Tool
586 Name="VCCLCompilerTool"
587 CompileAs="0"
588 />
589 </FileConfiguration>
590 <FileConfiguration
591 Name="Release|x64"
592 >
593 <Tool
594 Name="VCCLCompilerTool"
595 CompileAs="0"
596 />
597 </FileConfiguration>
598 </File>
599 <File
600 RelativePath=".\sci_gateway\c\sci_fileext.c" 552 RelativePath=".\sci_gateway\c\sci_fileext.c"
601 > 553 >
602 </File> 554 </File>
@@ -649,18 +601,6 @@
649 > 601 >
650 </File> 602 </File>
651 <File 603 <File
652 RelativePath=".\sci_gateway\cpp\sci_import_from_hdf5.cpp"
653 >
654 <FileConfiguration
655 Name="Debug|x64"
656 >
657 <Tool
658 Name="VCCLCompilerTool"
659 CompileAs="0"
660 />
661 </FileConfiguration>
662 </File>
663 <File
664 RelativePath=".\sci_gateway\c\sci_isdir.c" 604 RelativePath=".\sci_gateway\c\sci_isdir.c"
665 > 605 >
666 </File> 606 </File>
@@ -843,22 +783,6 @@
843 > 783 >
844 </File> 784 </File>
845 <File 785 <File
846 RelativePath=".\includes\h5_attributeConstants.h"
847 >
848 </File>
849 <File
850 RelativePath=".\includes\h5_fileManagement.h"
851 >
852 </File>
853 <File
854 RelativePath=".\includes\h5_readDataFromFile.h"
855 >
856 </File>
857 <File
858 RelativePath=".\includes\h5_writeDataToFile.h"
859 >
860 </File>
861 <File
862 RelativePath=".\includes\isdir.h" 786 RelativePath=".\includes\isdir.h"
863 > 787 >
864 </File> 788 </File>
@@ -998,10 +922,6 @@
998 > 922 >
999 </File> 923 </File>
1000 <File 924 <File
1001 RelativePath="..\..\bin\hdf5dll.lib"
1002 >
1003 </File>
1004 <File
1005 RelativePath=".\Makefile.am" 925 RelativePath=".\Makefile.am"
1006 > 926 >
1007 </File> 927 </File>
diff --git a/scilab/modules/fileio/includes/gw_fileio.h b/scilab/modules/fileio/includes/gw_fileio.h
index 6f23b4a..b4fc879 100644
--- a/scilab/modules/fileio/includes/gw_fileio.h
+++ b/scilab/modules/fileio/includes/gw_fileio.h
@@ -51,9 +51,6 @@ int sci_fileinfo(char *fname,unsigned long fname_len);
51int sci_newest(char *fname,unsigned long fname_len); 51int sci_newest(char *fname,unsigned long fname_len);
52int sci_getrelativefilename(char *fname, unsigned long l); 52int sci_getrelativefilename(char *fname, unsigned long l);
53int sci_get_absolute_file_path(char *fname,unsigned long fname_len); 53int sci_get_absolute_file_path(char *fname,unsigned long fname_len);
54int sci_export_to_hdf5(char *fname,unsigned long fname_len);
55int sci_import_from_hdf5(char *fname,unsigned long fname_len);
56
57/*--------------------------------------------------------------------------*/ 54/*--------------------------------------------------------------------------*/
58#endif /* __GW_FILEIO_H__ */ 55#endif /* __GW_FILEIO_H__ */
59/*--------------------------------------------------------------------------*/ 56/*--------------------------------------------------------------------------*/
diff --git a/scilab/modules/fileio/sci_gateway/c/gw_fileio.c b/scilab/modules/fileio/sci_gateway/c/gw_fileio.c
index f275ec8e..1159bd8 100644
--- a/scilab/modules/fileio/sci_gateway/c/gw_fileio.c
+++ b/scilab/modules/fileio/sci_gateway/c/gw_fileio.c
@@ -17,7 +17,7 @@
17/*--------------------------------------------------------------------------*/ 17/*--------------------------------------------------------------------------*/
18/* interface function */ 18/* interface function */
19/*--------------------------------------------------------------------------*/ 19/*--------------------------------------------------------------------------*/
20#define FILEIO_TAB_SIZE 38 20#define FILEIO_TAB_SIZE 36
21static gw_generic_table Tab[FILEIO_TAB_SIZE]={ 21static gw_generic_table Tab[FILEIO_TAB_SIZE]={
22 {sci_mopen, "mopen"}, 22 {sci_mopen, "mopen"},
23 {sci_mputstr, "mputstr"}, 23 {sci_mputstr, "mputstr"},
@@ -54,9 +54,7 @@ static gw_generic_table Tab[FILEIO_TAB_SIZE]={
54 {sci_fileinfo,"fileinfo"}, 54 {sci_fileinfo,"fileinfo"},
55 {sci_newest,"newest"}, 55 {sci_newest,"newest"},
56 {sci_getrelativefilename,"getrelativefilename"}, 56 {sci_getrelativefilename,"getrelativefilename"},
57 {sci_get_absolute_file_path,"get_absolute_file_path"}, 57 {sci_get_absolute_file_path,"get_absolute_file_path"}
58 {sci_export_to_hdf5,"export_to_hdf5"},
59 {sci_import_from_hdf5,"import_from_hdf5"}
60 }; 58 };
61/*--------------------------------------------------------------------------*/ 59/*--------------------------------------------------------------------------*/
62int gw_fileio(void) 60int gw_fileio(void)
diff --git a/scilab/modules/fileio/sci_gateway/fileio_gateway.xml b/scilab/modules/fileio/sci_gateway/fileio_gateway.xml
index b45ecdb..f044885 100644
--- a/scilab/modules/fileio/sci_gateway/fileio_gateway.xml
+++ b/scilab/modules/fileio/sci_gateway/fileio_gateway.xml
@@ -70,6 +70,4 @@
70<PRIMITIVE gatewayId="34" primitiveId="34" primitiveName="newest" /> 70<PRIMITIVE gatewayId="34" primitiveId="34" primitiveName="newest" />
71<PRIMITIVE gatewayId="34" primitiveId="35" primitiveName="getrelativefilename" /> 71<PRIMITIVE gatewayId="34" primitiveId="35" primitiveName="getrelativefilename" />
72<PRIMITIVE gatewayId="34" primitiveId="36" primitiveName="get_absolute_file_path" /> 72<PRIMITIVE gatewayId="34" primitiveId="36" primitiveName="get_absolute_file_path" />
73<PRIMITIVE gatewayId="34" primitiveId="37" primitiveName="export_to_hdf5" />
74<PRIMITIVE gatewayId="34" primitiveId="38" primitiveName="import_from_hdf5" />
75</GATEWAY> 73</GATEWAY>
diff --git a/scilab/modules/fileio/src/c/DllmainFileio.c b/scilab/modules/fileio/src/c/DllmainFileio.c
index 47a2667..ce4a942 100644
--- a/scilab/modules/fileio/src/c/DllmainFileio.c
+++ b/scilab/modules/fileio/src/c/DllmainFileio.c
@@ -14,8 +14,6 @@
14#include <windows.h> 14#include <windows.h>
15/*--------------------------------------------------------------------------*/ 15/*--------------------------------------------------------------------------*/
16#pragma comment(lib,"../../bin/libintl.lib") 16#pragma comment(lib,"../../bin/libintl.lib")
17#pragma comment(lib,"../../bin/hdf5dll.lib")
18#pragma comment(lib,"../../bin/hdf5_cppdll.lib")
19/*--------------------------------------------------------------------------*/ 17/*--------------------------------------------------------------------------*/
20int WINAPI DllMain (HINSTANCE hInstance , DWORD reason, PVOID pvReserved) 18int WINAPI DllMain (HINSTANCE hInstance , DWORD reason, PVOID pvReserved)
21{ 19{
diff --git a/scilab/modules/hdf5/.gitignore b/scilab/modules/hdf5/.gitignore
new file mode 100644
index 0000000..981c9c0
--- /dev/null
+++ b/scilab/modules/hdf5/.gitignore
@@ -0,0 +1,5 @@
1#
2#generated .def files (windows)
3#
4src/c/integer.def
5
diff --git a/scilab/modules/hdf5/Makefile.am b/scilab/modules/hdf5/Makefile.am
new file mode 100644
index 0000000..2807327
--- /dev/null
+++ b/scilab/modules/hdf5/Makefile.am
@@ -0,0 +1,67 @@
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
11#### Target ####
12modulename=hdf5
13
14#### hdf5 : Conf files ####
15libscihdf5_la_rootdir = $(mydatadir)
16libscihdf5_la_root_DATA = changelog.txt license.txt readme.txt version.xml
17
18#### hdf5 : init scripts ####
19libscihdf5_la_etcdir = $(mydatadir)/etc
20libscihdf5_la_etc_DATA = etc/hdf5.quit etc/hdf5.start etc/hdf5_options.xml
21
22
23libscihdf5_la_CFLAGS= -I$(top_srcdir)/libs/MALLOC/includes/ \
24 -I$(top_srcdir)/modules/output_stream/includes/ \
25 -I$(top_srcdir)/modules/localization/includes/ \
26 -I$(top_srcdir)/modules/string/includes/ \
27 -I$(top_srcdir)/modules/fileio/includes/
28
29pkglib_LTLIBRARIES = libscihdf5-disable.la
30
31if GUI
32pkglib_LTLIBRARIES += libscihdf5.la
33endif
34
35libscihdf5_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) -lpthread $(XML_LIBS)
36
37
38libscihdf5_la_LIBADD = $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/dynamiclibrary/libscidynamiclibrary.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
39
40#### hdf5 : gateway declaration ####
41libscihdf5_la_sci_gatewaydir = $(mydatadir)/sci_gateway
42libscihdf5_la_sci_gateway_DATA = sci_gateway/hdf5_gateway.xml
43
44#### hdf5 : include files ####
45libscihdf5_la_includedir=$(pkgincludedir)/hdf5
46libscihdf5_la_include_HEADERS =
47
48GATEWAY_C_SOURCES =
49
50HDF5_C_SOURCES =
51
52USEANT=1
53
54libscihdf5_disable_la_SOURCES = src/nojvm/nojvm.c
55libscihdf5_disable_la_CFLAGS = -I$(srcdir)/includes/ \
56 -I$(top_srcdir)/modules/call_scilab/includes \
57 -I$(srcdir)/src/c \
58 -I$(top_srcdir)/modules/output_stream/includes/
59
60libscihdf5_la_SOURCES = $(JVM_C_SOURCES) $(GATEWAY_C_SOURCES)
61
62# For the code check (splint)
63CHECK_SRC= $(libscihdf5_la_SOURCES)
64INCLUDE_FLAGS = $(libscihdf5_la_CFLAGS)
65
66
67include $(top_srcdir)/Makefile.incl.am
diff --git a/scilab/modules/hdf5/build.xml b/scilab/modules/hdf5/build.xml
new file mode 100644
index 0000000..da1ed52
--- /dev/null
+++ b/scilab/modules/hdf5/build.xml
@@ -0,0 +1,24 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Allan CORNET
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13
14<project name="hdf5" default="jar">
15 <import file="../../build.incl.xml"/>
16
17 <property name="library.name" value="${library.action_binding.name}" />
18
19 <description>
20 Build the hdf5 Scilab module
21 </description>
22
23</project>
24
diff --git a/scilab/modules/hdf5/changelog.txt b/scilab/modules/hdf5/changelog.txt
new file mode 100644
index 0000000..1f964ad
--- /dev/null
+++ b/scilab/modules/hdf5/changelog.txt
@@ -0,0 +1,8 @@
1action_binding (0.1-1) stable; urgency=medium
2
3 * First version of the module
4 -- Vincent COUVERT Wed, 24 Oct 2007 15:46:08D +0200
5
6 * Based on module_skeleton
7 -- Sylvestre Ledru Tue, 13 Mar 2007 13:37:08D +0200
8 -- Allan CORNET Sun, 13 30 2007 13:37:08D +0200
diff --git a/scilab/modules/hdf5/etc/hdf5.quit b/scilab/modules/hdf5/etc/hdf5.quit
new file mode 100644
index 0000000..ca3134e
--- /dev/null
+++ b/scilab/modules/hdf5/etc/hdf5.quit
@@ -0,0 +1,8 @@
1// ====================================================================
2// This file contains command to be executed at the end
3// of a scilab session for gui module
4// Copyright DIGITEO 2009
5// ====================================================================
6// delete help chapter
7del_help_chapter('hdf5',%T);
8// ====================================================================
diff --git a/scilab/modules/hdf5/etc/hdf5.start b/scilab/modules/hdf5/etc/hdf5.start
new file mode 100644
index 0000000..9443b7b
--- /dev/null
+++ b/scilab/modules/hdf5/etc/hdf5.start
@@ -0,0 +1,15 @@
1// ====================================================================
2// gui module initialisation file
3// Copyright DIGITEO 2009
4// ====================================================================
5//Load functions libraries
6//load('SCI/modules/hdf5/macros/lib');
7// ====================================================================
8//add help chapter
9//add_module_help_chapter('hdf5');
10// ====================================================================
11//add demos
12//pathdemos = pathconvert(SCI+"/modules/hdf5/demos/hdf5.dem.gateway.sce",%f,%t);
13//add_demo(gettext("hdf5"),pathdemos);
14clear pathdemos;
15// ====================================================================
diff --git a/scilab/modules/hdf5/hdf5.iss b/scilab/modules/hdf5/hdf5.iss
new file mode 100644
index 0000000..b9a1e1a
--- /dev/null
+++ b/scilab/modules/hdf5/hdf5.iss
@@ -0,0 +1,53 @@
1;
2; Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3; Copyright (C) 2009 - DIGITEO - 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-en.txt
10;
11;##############################################################################################################
12; Script d'installation Inno Setup (5.2.1) pour scilab
13;##############################################################################################################
14;--------------------------------------------------------------------------------------------------------------
15; hdf5 module
16;--------------------------------------------------------------------------------------------------------------
17;
18#define HDF5 "hdf5"
19;
20Source: bin\scihdf5.dll; DestDir: {app}\bin; Components: {#COMPN_SCILAB}
21;
22;Source: modules\{#HDF5}\jar\org.scilab.modules.hdf5.jar;DestDir: {app}\modules\{#HDF5}\jar; Components: {#COMPN_SCILAB}
23;
24;Source: bin\nohdf5.dll; DestDir: {app}\bin; DestName: scihdf5.dll; Components: not ({#COMPN_ACTION_BINDING})
25;
26Source: modules\{#HDF5}\changelog.txt; DestDir: {app}\modules\{#HDF5}; Components: {#COMPN_SCILAB};
27Source: modules\{#HDF5}\license.txt; DestDir: {app}\modules\{#HDF5}; Components: {#COMPN_SCILAB}
28Source: modules\{#HDF5}\readme.txt; DestDir: {app}\modules\{#HDF5}; Components: {#COMPN_SCILAB}
29Source: modules\{#HDF5}\version.xml; DestDir: {app}\modules\{#HDF5}; Components: {#COMPN_SCILAB}
30;
31;Source: modules\{#HDF5}\sci_gateway\hdf5_gateway.xml; DestDir: {app}\modules\{#HDF5}\sci_gateway; Components: {#COMPN_SCILAB}
32;
33Source: modules\{#HDF5}\includes\*.h; DestDir: {app}\modules\{#HDF5}\includes; Components: {#COMPN_SCILAB}
34;
35;Source: modules\{#HDF5}\help\addchapter.sce; DestDir: {app}\modules\{#HDF5}\help; Flags: recursesubdirs; Components: {#COMPN_SCILAB}
36;
37Source: modules\{#HDF5}\etc\{#HDF5}.quit; DestDir: {app}\modules\{#HDF5}\etc; Components: {#COMPN_SCILAB}
38Source: modules\{#HDF5}\etc\{#HDF5}.start; DestDir: {app}\modules\{#HDF5}\etc; Components: {#COMPN_SCILAB}
39;
40;
41;Source: modules\{#HDF5}\macros\buildmacros.sce; DestDir: {app}\modules\{#HDF5}\macros; Components: {#COMPN_SCILAB}
42;Source: modules\{#HDF5}\macros\buildmacros.bat; DestDir: {app}\modules\{#HDF5}\macros; Components: {#COMPN_SCILAB}
43;Source: modules\{#HDF5}\macros\cleanmacros.bat; DestDir: {app}\modules\{#HDF5}\macros; Components: {#COMPN_SCILAB}
44;Source: modules\{#HDF5}\macros\*.bin; DestDir: {app}\modules\{#HDF5}\macros; Components: {#COMPN_SCILAB}
45;Source: modules\{#HDF5}\macros\*.sci; DestDir: {app}\modules\{#HDF5}\macros; Components: {#COMPN_SCILAB}
46;Source: modules\{#HDF5}\macros\lib; DestDir: {app}\modules\{#HDF5}\macros; Components: {#COMPN_SCILAB}
47;Source: modules\{#HDF5}\macros\names; DestDir: {app}\modules\{#HDF5}\macros; Components: {#COMPN_SCILAB}
48;
49;Source: modules\{#HDF5}\demos\*.*; DestDir: {app}\modules\{#HDF5}\demos; Flags: recursesubdirs; Components: {#COMPN_SCILAB}
50;
51;Source: modules\{#HDF5}\tests\*.*; DestDir: {app}\modules\{#HDF5}\tests; Flags: recursesubdirs; Components: {#COMPN_SCILAB} and {#COMPN_TESTS}
52;--------------------------------------------------------------------------------------------------------------
53
diff --git a/scilab/modules/hdf5/includes/gw_hdf5.h b/scilab/modules/hdf5/includes/gw_hdf5.h
new file mode 100644
index 0000000..609ee7d
--- /dev/null
+++ b/scilab/modules/hdf5/includes/gw_hdf5.h
@@ -0,0 +1,22 @@
1/*
2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2009 - DIGITEO - 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-en.txt
10 *
11 */
12/*--------------------------------------------------------------------------*/
13#ifndef __GW_HDF5_H__
14#define __GW_HDF5_H__
15/*--------------------------------------------------------------------------*/
16int gw_hdf5(void);
17/*--------------------------------------------------------------------------*/
18int sci_export_to_hdf5(char *fname,unsigned long fname_len);
19int sci_import_from_hdf5(char *fname,unsigned long fname_len);
20/*--------------------------------------------------------------------------*/
21#endif /* __GW_HDF5_H__ */
22/*--------------------------------------------------------------------------*/
diff --git a/scilab/modules/fileio/includes/h5_attributeConstants.h b/scilab/modules/hdf5/includes/h5_attributeConstants.h
index 53ea234..53ea234 100644
--- a/scilab/modules/fileio/includes/h5_attributeConstants.h
+++ b/scilab/modules/hdf5/includes/h5_attributeConstants.h
diff --git a/scilab/modules/fileio/includes/h5_fileManagement.h b/scilab/modules/hdf5/includes/h5_fileManagement.h
index 01ed325..01ed325 100644
--- a/scilab/modules/fileio/includes/h5_fileManagement.h
+++ b/scilab/modules/hdf5/includes/h5_fileManagement.h
diff --git a/scilab/modules/fileio/includes/h5_readDataFromFile.h b/scilab/modules/hdf5/includes/h5_readDataFromFile.h
index ac06da4..ac06da4 100644
--- a/scilab/modules/fileio/includes/h5_readDataFromFile.h
+++ b/scilab/modules/hdf5/includes/h5_readDataFromFile.h
diff --git a/scilab/modules/fileio/includes/h5_writeDataToFile.h b/scilab/modules/hdf5/includes/h5_writeDataToFile.h
index 7945879..7945879 100644
--- a/scilab/modules/fileio/includes/h5_writeDataToFile.h
+++ b/scilab/modules/hdf5/includes/h5_writeDataToFile.h
diff --git a/scilab/modules/hdf5/license.txt b/scilab/modules/hdf5/license.txt
new file mode 100644
index 0000000..9d8b3b8
--- /dev/null
+++ b/scilab/modules/hdf5/license.txt
@@ -0,0 +1,9 @@
1Copyright:
2Copyright (c) 2008 - DIGITEO
3
4License:
5This module must be used under the terms of the CeCILL.
6This module file is licensed as described in the file COPYING, which
7you should have received as part of this distribution. The terms
8are also available at
9http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
diff --git a/scilab/modules/hdf5/macros/buildmacros.bat b/scilab/modules/hdf5/macros/buildmacros.bat
new file mode 100644
index 0000000..1f23385
--- /dev/null
+++ b/scilab/modules/hdf5/macros/buildmacros.bat
@@ -0,0 +1,11 @@
1
2rem Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3rem Copyright (C) 2008 - INRIA
4rem
5rem This file must be used under the terms of the CeCILL.
6rem This source file is licensed as described in the file COPYING, which
7rem you should have received as part of this distribution. The terms
8rem are also available at
9rem http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10
11@..\..\..\bin\scilex -nwni -ns -e exec('buildmacros.sce');quit;
diff --git a/scilab/modules/hdf5/macros/buildmacros.sce b/scilab/modules/hdf5/macros/buildmacros.sce
new file mode 100644
index 0000000..ec502d3
--- /dev/null
+++ b/scilab/modules/hdf5/macros/buildmacros.sce
@@ -0,0 +1,16 @@
1
2// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr>
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-en.txt
10
11if (isdef('genlib') == %f) then
12 exec(SCI+'/modules/functions/scripts/buildmacros/loadgenlib.sce');
13end
14
15// genlib("hdf5lib","SCI/modules/hdf5/macros",%f,%t);
16
diff --git a/scilab/modules/hdf5/macros/cleanmacros.bat b/scilab/modules/hdf5/macros/cleanmacros.bat
new file mode 100644
index 0000000..6e6b7bc
--- /dev/null
+++ b/scilab/modules/hdf5/macros/cleanmacros.bat
@@ -0,0 +1,13 @@
1
2rem Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3rem Copyright (C) 2008 - INRIA
4rem
5rem This file must be used under the terms of the CeCILL.
6rem This source file is licensed as described in the file COPYING, which
7rem you should have received as part of this distribution. The terms
8rem are also available at
9rem http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10
11@del *.bin 2>NUL
12@del lib 2>NUL
13@del names 2>NUL
diff --git a/scilab/modules/hdf5/readme.txt b/scilab/modules/hdf5/readme.txt
new file mode 100644
index 0000000..785eeec
--- /dev/null
+++ b/scilab/modules/hdf5/readme.txt
@@ -0,0 +1 @@
README File
diff --git a/scilab/modules/hdf5/sci_gateway/c/gw_hdf5.c b/scilab/modules/hdf5/sci_gateway/c/gw_hdf5.c
new file mode 100644
index 0000000..bf3e9e8
--- /dev/null
+++ b/scilab/modules/hdf5/sci_gateway/c/gw_hdf5.c
@@ -0,0 +1,32 @@
1/*
2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2009 - DIGITEO - 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-en.txt
10 *
11 */
12/*--------------------------------------------------------------------------*/
13#include "gw_hdf5.h"
14#include "callFunctionFromGateway.h"
15#include "stack-c.h"
16/*--------------------------------------------------------------------------*/
17/* interface function */
18/*--------------------------------------------------------------------------*/
19#define HDF5_TAB_SIZE 2
20static gw_generic_table Tab[HDF5_TAB_SIZE]={
21 {sci_export_to_hdf5,"export_to_hdf5"},
22 {sci_import_from_hdf5,"import_from_hdf5"}
23 };
24/*--------------------------------------------------------------------------*/
25int gw_hdf5(void)
26{
27 Rhs = Max(0,Rhs);
28 callFunctionFromGateway(Tab, HDF5_TAB_SIZE);
29 return 0;
30}
31/*--------------------------------------------------------------------------*/
32
diff --git a/scilab/modules/fileio/sci_gateway/cpp/sci_export_to_hdf5.cpp b/scilab/modules/hdf5/sci_gateway/cpp/sci_export_to_hdf5.cpp
index af4814e..515011d 100644
--- a/scilab/modules/fileio/sci_gateway/cpp/sci_export_to_hdf5.cpp
+++ b/scilab/modules/hdf5/sci_gateway/cpp/sci_export_to_hdf5.cpp
@@ -14,7 +14,7 @@ extern "C"
14{ 14{
15#include <string.h> 15#include <string.h>
16#include <stdio.h> 16#include <stdio.h>
17#include "gw_fileio.h" 17#include "gw_hdf5.h"
18#include "stack-c.h" 18#include "stack-c.h"
19#include "MALLOC.h" 19#include "MALLOC.h"
20#include "Scierror.h" 20#include "Scierror.h"
diff --git a/scilab/modules/fileio/sci_gateway/cpp/sci_import_from_hdf5.cpp b/scilab/modules/hdf5/sci_gateway/cpp/sci_import_from_hdf5.cpp
index 99a587b..0669e6f 100644
--- a/scilab/modules/fileio/sci_gateway/cpp/sci_import_from_hdf5.cpp
+++ b/scilab/modules/hdf5/sci_gateway/cpp/sci_import_from_hdf5.cpp
@@ -14,7 +14,7 @@ extern "C"
14{ 14{
15#include <hdf5.h> 15#include <hdf5.h>
16#include <string.h> 16#include <string.h>
17#include "gw_fileio.h" 17#include "gw_hdf5.h"
18#include "stack-c.h" 18#include "stack-c.h"
19#include "MALLOC.h" 19#include "MALLOC.h"
20#include "Scierror.h" 20#include "Scierror.h"
diff --git a/scilab/modules/fileio/sci_gateway/cpp/sci_no_hdf5.cpp b/scilab/modules/hdf5/sci_gateway/cpp/sci_no_hdf5.cpp
index 8647c54..8647c54 100644
--- a/scilab/modules/fileio/sci_gateway/cpp/sci_no_hdf5.cpp
+++ b/scilab/modules/hdf5/sci_gateway/cpp/sci_no_hdf5.cpp
diff --git a/scilab/modules/hdf5/sci_gateway/hdf5_gateway.xml b/scilab/modules/hdf5/sci_gateway/hdf5_gateway.xml
new file mode 100644
index 0000000..f6e3eb9
--- /dev/null
+++ b/scilab/modules/hdf5/sci_gateway/hdf5_gateway.xml
@@ -0,0 +1,35 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Allan CORNET
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<!DOCTYPE GATEWAY SYSTEM "../../functions/xml/gateway.dtd">
14<GATEWAY name="hdf5">
15
16<!--
17 Scilab
18 Interface description. In this file, we define the list of the function which
19 will be available into Scilab and the link to the "native" function.
20
21 gatewayId is the position in the hashtable 'Interfaces' defined in the
22 file SCI/modules/core/src/c/callinterf.h
23
24 primitiveId is the position in the hashtable '<module>Table Tab[]' defined
25 in the file modules/<module>/sci_gateway/c/gw_<module>.c
26
27 primitiveName is the name of the Scilab function
28
29 Don't touch if you do not know what you are doing
30
31-->
32<PRIMITIVE gatewayId="62" primitiveId="1" primitiveName="export_to_hdf5" />
33<PRIMITIVE gatewayId="62" primitiveId="2" primitiveName="import_from_hdf5" />
34
35</GATEWAY>
diff --git a/scilab/modules/hdf5/src/c/DllmainHdf5.c b/scilab/modules/hdf5/src/c/DllmainHdf5.c
new file mode 100644
index 0000000..af28cd0
--- /dev/null
+++ b/scilab/modules/hdf5/src/c/DllmainHdf5.c
@@ -0,0 +1,35 @@
1/*
2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2009 - DIGITEO -
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-en.txt
10 *
11 */
12
13#include <windows.h>
14/*--------------------------------------------------------------------------*/
15#pragma comment(lib,"../../../../bin/libintl.lib")
16#pragma comment(lib,"../../../../bin/hdf5dll.lib")
17#pragma comment(lib,"../../../../bin/hdf5_cppdll.lib")
18/*--------------------------------------------------------------------------*/
19int WINAPI DllMain (HINSTANCE hInstance , DWORD reason, PVOID pvReserved)
20{
21 switch (reason)
22 {
23 case DLL_PROCESS_ATTACH:
24 break;
25 case DLL_PROCESS_DETACH:
26 break;
27 case DLL_THREAD_ATTACH:
28 break;
29 case DLL_THREAD_DETACH:
30 break;
31 }
32 return 1;
33}
34/*--------------------------------------------------------------------------*/
35
diff --git a/scilab/modules/hdf5/src/c/LibScilab_Import.def b/scilab/modules/hdf5/src/c/LibScilab_Import.def
new file mode 100644
index 0000000..9fb8477
--- /dev/null
+++ b/scilab/modules/hdf5/src/c/LibScilab_Import.def
@@ -0,0 +1,11 @@
1LIBRARY LibScilab.dll
2
3
4EXPORTS
5com_
6putlhsvar_
7intersci_
8checklhs_
9freeArrayOfString
10callFunctionFromGateway
11checkrhs_ \ No newline at end of file
diff --git a/scilab/modules/fileio/src/c/h5_fileManagement.c b/scilab/modules/hdf5/src/c/h5_fileManagement.c
index 8d4c2fe..8d4c2fe 100644
--- a/scilab/modules/fileio/src/c/h5_fileManagement.c
+++ b/scilab/modules/hdf5/src/c/h5_fileManagement.c
diff --git a/scilab/modules/fileio/src/c/h5_readDataFromFile.c b/scilab/modules/hdf5/src/c/h5_readDataFromFile.c
index 912c1d2..912c1d2 100644
--- a/scilab/modules/fileio/src/c/h5_readDataFromFile.c
+++ b/scilab/modules/hdf5/src/c/h5_readDataFromFile.c
diff --git a/scilab/modules/fileio/src/c/h5_writeDataToFile.c b/scilab/modules/hdf5/src/c/h5_writeDataToFile.c
index 472ad24..472ad24 100644
--- a/scilab/modules/fileio/src/c/h5_writeDataToFile.c
+++ b/scilab/modules/hdf5/src/c/h5_writeDataToFile.c
diff --git a/scilab/modules/hdf5/src/c/hdf5.rc b/scilab/modules/hdf5/src/c/hdf5.rc
new file mode 100644
index 0000000..f5bd64e
--- /dev/null
+++ b/scilab/modules/hdf5/src/c/hdf5.rc
@@ -0,0 +1,97 @@
1// Microsoft Visual C++ generated resource script.
2//
3#include "resource.h"
4
5#define APSTUDIO_READONLY_SYMBOLS
6/////////////////////////////////////////////////////////////////////////////
7//
8// Generated from the TEXTINCLUDE 2 resource.
9//
10//#include "afxres.h"
11#define APSTUDIO_HIDDEN_SYMBOLS
12#include "windows.h"
13/////////////////////////////////////////////////////////////////////////////
14#undef APSTUDIO_READONLY_SYMBOLS
15
16/////////////////////////////////////////////////////////////////////////////
17// French (France) resources
18
19#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)
20#ifdef _WIN32
21LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
22#pragma code_page(1252)
23#endif //_WIN32
24
25#ifdef APSTUDIO_INVOKED
26/////////////////////////////////////////////////////////////////////////////
27//
28// TEXTINCLUDE
29//
30
311 TEXTINCLUDE
32BEGIN
33 "resource.h\0"
34END
35
36
373 TEXTINCLUDE
38BEGIN
39 "\r\n"
40 "\0"
41END
42
43#endif // APSTUDIO_INVOKED
44
45
46/////////////////////////////////////////////////////////////////////////////
47//
48// Version
49//
50
51VS_VERSION_INFO VERSIONINFO
52 FILEVERSION 5,2,0,0
53 PRODUCTVERSION 5,2,0,0
54 FILEFLAGSMASK 0x17L
55#ifdef _DEBUG
56 FILEFLAGS 0x1L
57#else
58 FILEFLAGS 0x0L
59#endif
60 FILEOS 0x4L
61 FILETYPE 0x0L
62 FILESUBTYPE 0x0L
63BEGIN
64 BLOCK "StringFileInfo"
65 BEGIN
66 BLOCK "040c04b0"
67 BEGIN
68 VALUE "FileDescription", "hdf5 module"
69 VALUE "FileVersion", "5, 2, 0, 0"
70 VALUE "InternalName", "hdf5 module"
71 VALUE "LegalCopyright", "Copyright (C) 2009"
72 VALUE "OriginalFilename", "scihdf5.dll"
73 VALUE "ProductName", " hdf5"
74 VALUE "ProductVersion", "5, 2, 0, 0"
75 END
76 END
77 BLOCK "VarFileInfo"
78 BEGIN
79 VALUE "Translation", 0x40c, 1200
80 END
81END
82
83#endif // French (France) resources
84/////////////////////////////////////////////////////////////////////////////
85
86
87
88#ifndef APSTUDIO_INVOKED
89/////////////////////////////////////////////////////////////////////////////
90//
91// Generated from the TEXTINCLUDE 3 resource.
92//
93
94
95/////////////////////////////////////////////////////////////////////////////
96#endif // not APSTUDIO_INVOKED
97
diff --git a/scilab/modules/hdf5/src/c/hdf5.vcproj b/scilab/modules/hdf5/src/c/hdf5.vcproj
new file mode 100644
index 0000000..2a1768e
--- /dev/null
+++ b/scilab/modules/hdf5/src/c/hdf5.vcproj
@@ -0,0 +1,461 @@
1<?xml version="1.0" encoding="Windows-1252"?>
2<VisualStudioProject
3 ProjectType="Visual C++"
4 Version="9,00"
5 Name="hdf5"
6 ProjectGUID="{A824EA62-AF07-4F43-9036-0E63990556BD}"
7 RootNamespace="hdf5"
8 Keyword="Win32Proj"
9 TargetFrameworkVersion="0"
10 >
11 <Platforms>
12 <Platform
13 Name="Win32"
14 />
15 <Platform
16 Name="x64"
17 />
18 </Platforms>
19 <ToolFiles>
20 </ToolFiles>
21 <Configurations>
22 <Configuration
23 Name="Debug|Win32"
24 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
25 IntermediateDirectory="$(ConfigurationName)"
26 ConfigurationType="2"
27 CharacterSet="2"
28 >
29 <Tool
30 Name="VCPreBuildEventTool"
31 />
32 <Tool
33 Name="VCCustomBuildTool"
34 />
35 <Tool
36 Name="VCXMLDataGeneratorTool"
37 />
38 <Tool
39 Name="VCWebServiceProxyGeneratorTool"
40 />
41 <Tool
42 Name="VCMIDLTool"
43 />
44 <Tool
45 Name="VCCLCompilerTool"
46 Optimization="0"
47 AdditionalIncludeDirectories=".;../../includes;../../../../libs/MALLOC/includes;../../../output_stream/includes;../../../core/includes;../../../api_scilab/includes;../../../localization/includes;../../../../libs/intl;../../../../libs/hdf5/include"
48 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;FORDLL;_DEBUG;_WINDOWS;_USRDLL;SCILAB_HDF5_EXPORTS;_HDF5USEDLL_;WIN32"
49 MinimalRebuild="true"
50 BasicRuntimeChecks="0"
51 RuntimeLibrary="3"
52 UsePrecompiledHeader="0"
53 WarningLevel="3"
54 Detect64BitPortabilityProblems="false"
55 DebugInformationFormat="3"
56 />
57 <Tool
58 Name="VCManagedResourceCompilerTool"
59 />
60 <Tool
61 Name="VCResourceCompilerTool"
62 />
63 <Tool
64 Name="VCPreLinkEventTool"
65 Description="Make dependencies"
66 CommandLine="lib /DEF:&quot;$(InputDir)LibScilab_Import.def&quot; /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:&quot;$(InputDir)LibScilab.lib&quot; 1&gt;NUL 2&gt;NUL&#x0D;&#x0A;lib /DEF:&quot;$(InputDir)localization_Import.def&quot; /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:&quot;$(InputDir)scilocalization.lib&quot; 1&gt;NUL 2&gt;NUL&#x0D;&#x0A;cd $(IntDir) &gt;nul&#x0D;&#x0A;for %%f in (*.obj) do ..\..\..\..\..\bin\dumpexts -o %%~nf.def -n scihdf5.dll %%f &gt;nul&#x0D;&#x0A;copy *.def hdf5tmp.def &gt;nul&#x0D;&#x0A;copy ..\hdf5_header.def+hdf5tmp.def ..\hdf5.def &gt;nul&#x0D;&#x0A;del *.def &gt;nul&#x0D;&#x0A;cd .. &gt;nul&#x0D;&#x0A;"
67 />
68 <Tool
69 Name="VCLinkerTool"
70 AdditionalDependencies="LibScilab.lib scilocalization.lib"
71 OutputFile="../../../../bin/scihdf5.dll"
72 LinkIncremental="1"
73 ModuleDefinitionFile="hdf5.def"
74 GenerateDebugInformation="true"
75 SubSystem="2"
76 RandomizedBaseAddress="1"
77 DataExecutionPrevention="0"
78 ImportLibrary="../../../../bin/scihdf5.lib"
79 TargetMachine="1"
80 CLRUnmanagedCodeCheck="true"
81 />
82 <Tool
83 Name="VCALinkTool"
84 />
85 <Tool
86 Name="VCManifestTool"
87 />
88 <Tool
89 Name="VCXDCMakeTool"
90 />
91 <Tool
92 Name="VCBscMakeTool"
93 />
94 <Tool
95 Name="VCFxCopTool"
96 />
97 <Tool
98 Name="VCAppVerifierTool"
99 />
100 <Tool
101 Name="VCPostBuildEventTool"
102 CommandLine=""
103 />
104 </Configuration>
105 <Configuration
106 Name="Debug|x64"
107 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
108 IntermediateDirectory="$(ConfigurationName)"
109 ConfigurationType="2"
110 CharacterSet="2"
111 >
112 <Tool
113 Name="VCPreBuildEventTool"
114 />
115 <Tool
116 Name="VCCustomBuildTool"
117 />
118 <Tool
119 Name="VCXMLDataGeneratorTool"
120 />
121 <Tool
122 Name="VCWebServiceProxyGeneratorTool"
123 />
124 <Tool
125 Name="VCMIDLTool"
126 TargetEnvironment="3"
127 />
128 <Tool
129 Name="VCCLCompilerTool"
130 Optimization="0"
131 AdditionalIncludeDirectories=".;../../includes;../../../../libs/MALLOC/includes;../../../output_stream/includes;../../../core/includes;../../../api_scilab/includes;../../../localization/includes;../../../../libs/intl;../../../../libs/hdf5/include"
132 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;FORDLL;_DEBUG;_WINDOWS;_USRDLL;SCILAB_HDF5_EXPORTS;_HDF5USEDLL_;WIN32"
133 MinimalRebuild="true"
134 BasicRuntimeChecks="0"
135 RuntimeLibrary="3"
136 UsePrecompiledHeader="0"
137 WarningLevel="3"
138 Detect64BitPortabilityProblems="false"
139 DebugInformationFormat="3"
140 />
141 <Tool
142 Name="VCManagedResourceCompilerTool"
143 />
144 <Tool
145 Name="VCResourceCompilerTool"
146 />
147 <Tool
148 Name="VCPreLinkEventTool"
149 Description="Make dependencies"
150 CommandLine="lib /DEF:&quot;$(InputDir)LibScilab_Import.def&quot; /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:&quot;$(InputDir)LibScilab.lib&quot; 1&gt;NUL 2&gt;NUL&#x0D;&#x0A;lib /DEF:&quot;$(InputDir)localization_Import.def&quot; /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:&quot;$(InputDir)scilocalization.lib&quot; 1&gt;NUL 2&gt;NUL&#x0D;&#x0A;cd $(IntDir) &gt;nul&#x0D;&#x0A;for %%f in (*.obj) do ..\..\..\..\..\bin\dumpexts -o %%~nf.def -n scihdf5.dll %%f &gt;nul&#x0D;&#x0A;copy *.def hdf5tmp.def &gt;nul&#x0D;&#x0A;copy ..\hdf5_header.def+hdf5tmp.def ..\hdf5.def &gt;nul&#x0D;&#x0A;del *.def &gt;nul&#x0D;&#x0A;cd .. &gt;nul&#x0D;&#x0A;"
151 />
152 <Tool
153 Name="VCLinkerTool"
154 AdditionalDependencies="LibScilab.lib scilocalization.lib"
155 OutputFile="../../../../bin/scihdf5.dll"
156 LinkIncremental="1"
157 ModuleDefinitionFile="hdf5.def"
158 GenerateDebugInformation="true"
159 SubSystem="2"
160 RandomizedBaseAddress="1"
161 DataExecutionPrevention="0"
162 ImportLibrary="../../../../bin/scihdf5.lib"
163 TargetMachine="17"
164 CLRUnmanagedCodeCheck="true"
165 />
166 <Tool
167 Name="VCALinkTool"
168 />
169 <Tool
170 Name="VCManifestTool"
171 />
172 <Tool
173 Name="VCXDCMakeTool"
174 />
175 <Tool
176 Name="VCBscMakeTool"
177 />
178 <Tool
179 Name="VCFxCopTool"
180 />
181 <Tool
182 Name="VCAppVerifierTool"
183 />
184 <Tool
185 Name="VCPostBuildEventTool"
186 CommandLine=""
187 />
188 </Configuration>
189 <Configuration
190 Name="Release|Win32"
191 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
192 IntermediateDirectory="$(ConfigurationName)"
193 ConfigurationType="2"
194 CharacterSet="2"
195 WholeProgramOptimization="0"
196 >
197 <Tool
198 Name="VCPreBuildEventTool"
199 />
200 <Tool
201 Name="VCCustomBuildTool"
202 />
203 <Tool
204 Name="VCXMLDataGeneratorTool"
205 />
206 <Tool
207 Name="VCWebServiceProxyGeneratorTool"
208 />
209 <Tool
210 Name="VCMIDLTool"
211 />
212 <Tool
213 Name="VCCLCompilerTool"
214 InlineFunctionExpansion="1"
215 FavorSizeOrSpeed="1"
216 WholeProgramOptimization="false"
217 AdditionalIncludeDirectories=".;../../includes;../../../../libs/MALLOC/includes;../../../output_stream/includes;../../../core/includes;../../../api_scilab/includes;../../../localization/includes;../../../../libs/intl;../../../../libs/hdf5/include"
218 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;FORDLL;NDEBUG;_WINDOWS;_USRDLL;SCILAB_HDF5_EXPORTS;_HDF5USEDLL_;WIN32"
219 StringPooling="true"
220 RuntimeLibrary="2"
221 EnableEnhancedInstructionSet="0"
222 UsePrecompiledHeader="0"
223 WarningLevel="3"
224 Detect64BitPortabilityProblems="false"
225 DebugInformationFormat="3"
226 />
227 <Tool
228 Name="VCManagedResourceCompilerTool"
229 />
230 <Tool
231 Name="VCResourceCompilerTool"
232 />
233 <Tool
234 Name="VCPreLinkEventTool"
235 Description="Make dependencies"
236 CommandLine="lib /DEF:&quot;$(InputDir)LibScilab_Import.def&quot; /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:&quot;$(InputDir)LibScilab.lib&quot; 1&gt;NUL 2&gt;NUL&#x0D;&#x0A;lib /DEF:&quot;$(InputDir)localization_Import.def&quot; /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:&quot;$(InputDir)scilocalization.lib&quot; 1&gt;NUL 2&gt;NUL&#x0D;&#x0A;cd $(IntDir) &gt;nul&#x0D;&#x0A;for %%f in (*.obj) do ..\..\..\..\..\bin\dumpexts -o %%~nf.def -n scihdf5.dll %%f &gt;nul&#x0D;&#x0A;copy *.def hdf5tmp.def &gt;nul&#x0D;&#x0A;copy ..\hdf5_header.def+hdf5tmp.def ..\hdf5.def &gt;nul&#x0D;&#x0A;del *.def &gt;nul&#x0D;&#x0A;cd .. &gt;nul&#x0D;&#x0A;"
237 />
238 <Tool
239 Name="VCLinkerTool"
240 AdditionalDependencies="LibScilab.lib scilocalization.lib"
241 OutputFile="../../../../bin/scihdf5.dll"
242 LinkIncremental="1"
243 ModuleDefinitionFile="hdf5.def"
244 GenerateDebugInformation="false"
245 SubSystem="2"
246 OptimizeReferences="2"
247 EnableCOMDATFolding="2"
248 LinkTimeCodeGeneration="0"
249 RandomizedBaseAddress="1"
250 DataExecutionPrevention="0"
251 ImportLibrary="../../../../bin/scihdf5.lib"
252 TargetMachine="1"
253 CLRUnmanagedCodeCheck="true"
254 />
255 <Tool
256 Name="VCALinkTool"
257 />
258 <Tool
259 Name="VCManifestTool"
260 />
261 <Tool
262 Name="VCXDCMakeTool"
263 />
264 <Tool
265 Name="VCBscMakeTool"
266 />
267 <Tool
268 Name="VCFxCopTool"
269 />
270 <Tool
271 Name="VCAppVerifierTool"
272 />
273 <Tool
274 Name="VCPostBuildEventTool"
275 CommandLine=""
276 />
277 </Configuration>
278 <Configuration
279 Name="Release|x64"
280 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
281 IntermediateDirectory="$(ConfigurationName)"
282 ConfigurationType="2"
283 CharacterSet="2"
284 WholeProgramOptimization="0"
285 >
286 <Tool
287 Name="VCPreBuildEventTool"
288 />
289 <Tool
290 Name="VCCustomBuildTool"
291 />
292 <Tool
293 Name="VCXMLDataGeneratorTool"
294 />
295 <Tool
296 Name="VCWebServiceProxyGeneratorTool"
297 />
298 <Tool
299 Name="VCMIDLTool"
300 TargetEnvironment="3"
301 />
302 <Tool
303 Name="VCCLCompilerTool"
304 InlineFunctionExpansion="1"
305 FavorSizeOrSpeed="1"
306 WholeProgramOptimization="false"
307 AdditionalIncludeDirectories=".;../../includes;../../../../libs/MALLOC/includes;../../../output_stream/includes;../../../core/includes;../../../api_scilab/includes;../../../localization/includes;../../../../libs/intl;../../../../libs/hdf5/include"
308 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;FORDLL;NDEBUG;_WINDOWS;_USRDLL;SCILAB_HDF5_EXPORTS;_HDF5USEDLL_;WIN32"
309 StringPooling="true"
310 RuntimeLibrary="2"
311 EnableEnhancedInstructionSet="0"
312 UsePrecompiledHeader="0"
313 WarningLevel="3"
314 Detect64BitPortabilityProblems="false"
315 DebugInformationFormat="3"
316 />
317 <Tool
318 Name="VCManagedResourceCompilerTool"
319 />
320 <Tool
321 Name="VCResourceCompilerTool"
322 />
323 <Tool
324 Name="VCPreLinkEventTool"
325 Description="Make dependencies"
326 CommandLine="lib /DEF:&quot;$(InputDir)LibScilab_Import.def&quot; /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:&quot;$(InputDir)LibScilab.lib&quot; 1&gt;NUL 2&gt;NUL&#x0D;&#x0A;lib /DEF:&quot;$(InputDir)localization_Import.def&quot; /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:&quot;$(InputDir)scilocalization.lib&quot; 1&gt;NUL 2&gt;NUL&#x0D;&#x0A;cd $(IntDir) &gt;nul&#x0D;&#x0A;for %%f in (*.obj) do ..\..\..\..\..\bin\dumpexts -o %%~nf.def -n scihdf5.dll %%f &gt;nul&#x0D;&#x0A;copy *.def hdf5tmp.def &gt;nul&#x0D;&#x0A;copy ..\hdf5_header.def+hdf5tmp.def ..\hdf5.def &gt;nul&#x0D;&#x0A;del *.def &gt;nul&#x0D;&#x0A;cd .. &gt;nul&#x0D;&#x0A;"
327 />
328 <Tool
329 Name="VCLinkerTool"
330 AdditionalDependencies="LibScilab.lib scilocalization.lib"
331 OutputFile="../../../../bin/scihdf5.dll"
332 LinkIncremental="1"
333 ModuleDefinitionFile="hdf5.def"
334 GenerateDebugInformation="false"
335 SubSystem="2"
336 OptimizeReferences="2"
337 EnableCOMDATFolding="2"
338 LinkTimeCodeGeneration="0"
339 RandomizedBaseAddress="1"
340 DataExecutionPrevention="0"
341 ImportLibrary="../../../../bin/scihdf5.lib"
342 TargetMachine="17"
343 CLRUnmanagedCodeCheck="true"
344 />
345 <Tool
346 Name="VCALinkTool"
347 />
348 <Tool
349 Name="VCManifestTool"
350 />
351 <Tool
352 Name="VCXDCMakeTool"
353 />
354 <Tool
355 Name="VCBscMakeTool"
356 />
357 <Tool
358 Name="VCFxCopTool"
359 />
360 <Tool
361 Name="VCAppVerifierTool"
362 />
363 <Tool
364 Name="VCPostBuildEventTool"
365 CommandLine=""
366 />
367 </Configuration>
368 </Configurations>
369 <References>
370 </References>
371 <Files>
372 <Filter
373 Name="Source Files"
374 Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
375 >
376 <File
377 RelativePath=".\DllmainHdf5.c"
378 >
379 </File>
380 <File
381 RelativePath="..\..\sci_gateway\c\gw_hdf5.c"
382 >
383 </File>
384 <File
385 RelativePath=".\h5_fileManagement.c"
386 >
387 </File>
388 <File
389 RelativePath=".\h5_readDataFromFile.c"
390 >
391 </File>
392 <File
393 RelativePath=".\h5_writeDataToFile.c"
394 >
395 </File>
396 <File
397 RelativePath="..\..\sci_gateway\cpp\sci_export_to_hdf5.cpp"
398 >
399 </File>
400 <File
401 RelativePath="..\..\sci_gateway\cpp\sci_import_from_hdf5.cpp"
402 >
403 </File>
404 </Filter>
405 <Filter
406 Name="Header Files"
407 Filter="h;hpp;hxx;hm;inl"
408 >
409 <File
410 RelativePath=".\resource.h"
411 >
412 </File>
413 </Filter>
414 <Filter
415 Name="localization"
416 >
417 </Filter>
418 <Filter
419 Name="Libraries Dependencies"
420 >
421 <File
422 RelativePath=".\hdf5_header.def"
423 >
424 </File>
425 <Filter
426 Name="Imports"
427 >
428 <File
429 RelativePath=".\LibScilab_Import.def"
430 >
431 </File>
432 <File
433 RelativePath=".\localization_Import.def"
434 >
435 </File>
436 </Filter>
437 </Filter>
438 <Filter
439 Name="Ressources"
440 >
441 <File
442 RelativePath=".\hdf5.rc"
443 >
444 </File>
445 </Filter>
446 <File
447 RelativePath="..\..\hdf5.iss"
448 >
449 </File>
450 <File
451 RelativePath="..\..\hdf5_gateway.xml"
452 >
453 </File>
454 <File
455 RelativePath="..\..\Makefile.am"
456 >
457 </File>
458 </Files>
459 <Globals>
460 </Globals>
461</VisualStudioProject>
diff --git a/scilab/modules/hdf5/src/c/hdf5_header.def b/scilab/modules/hdf5/src/c/hdf5_header.def
new file mode 100644
index 0000000..37973c1
--- /dev/null
+++ b/scilab/modules/hdf5/src/c/hdf5_header.def
@@ -0,0 +1,4 @@
1LIBRARY scihdf5.dll
2
3
4EXPORTS
diff --git a/scilab/modules/hdf5/src/c/localization_Import.def b/scilab/modules/hdf5/src/c/localization_Import.def
new file mode 100644
index 0000000..48d53af
--- /dev/null
+++ b/scilab/modules/hdf5/src/c/localization_Import.def
@@ -0,0 +1,7 @@
1LIBRARY scilocalization.dll
2
3
4EXPORTS
5setlanguage
6getlanguage
7localeToUTF
diff --git a/scilab/modules/hdf5/src/c/resource.h b/scilab/modules/hdf5/src/c/resource.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/scilab/modules/hdf5/src/c/resource.h
diff --git a/scilab/modules/hdf5/src/java/hdf5-JAVA.vcproj b/scilab/modules/hdf5/src/java/hdf5-JAVA.vcproj
new file mode 100644
index 0000000..0c4ead3
--- /dev/null
+++ b/scilab/modules/hdf5/src/java/hdf5-JAVA.vcproj
@@ -0,0 +1,115 @@
1<?xml version="1.0" encoding="Windows-1252"?>
2<VisualStudioProject
3 ProjectType="Visual C++"
4 Version="9,00"
5 Name="hdf5-Ant"
6 ProjectGUID="{9B6500B0-66F6-44F0-910D-47A1435B4E02}"
7 RootNamespace="hdf5-Ant"
8 Keyword="MakeFileProj"
9 TargetFrameworkVersion="0"
10 >
11 <Platforms>
12 <Platform
13 Name="Win32"
14 />
15 <Platform
16 Name="x64"
17 />
18 </Platforms>
19 <ToolFiles>
20 </ToolFiles>
21 <Configurations>
22 <Configuration
23 Name="Debug|Win32"
24 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
25 IntermediateDirectory="$(ConfigurationName)"
26 ConfigurationType="0"
27 >
28 <Tool
29 Name="VCNMakeTool"
30 BuildCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant&#x0D;&#x0A;"
31 ReBuildCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant&#x0D;&#x0A;"
32 CleanCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant clean&#x0D;&#x0A;&#x0D;&#x0A;"
33 Output=""
34 PreprocessorDefinitions="WIN32;_DEBUG"
35 IncludeSearchPath=""
36 ForcedIncludes=""
37 AssemblySearchPath=""
38 ForcedUsingAssemblies=""
39 CompileAsManaged=""
40 />
41 </Configuration>
42 <Configuration
43 Name="Debug|x64"
44 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
45 IntermediateDirectory="$(ConfigurationName)"
46 ConfigurationType="0"
47 >
48 <Tool
49 Name="VCNMakeTool"
50 BuildCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant&#x0D;&#x0A;"
51 ReBuildCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant&#x0D;&#x0A;"
52 CleanCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant clean&#x0D;&#x0A;&#x0D;&#x0A;"
53 Output=""
54 PreprocessorDefinitions="WIN32;_DEBUG"
55 IncludeSearchPath=""
56 ForcedIncludes=""
57 AssemblySearchPath=""
58 ForcedUsingAssemblies=""
59 CompileAsManaged=""
60 />
61 </Configuration>
62 <Configuration
63 Name="Release|Win32"
64 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
65 IntermediateDirectory="$(ConfigurationName)"
66 ConfigurationType="0"
67 >
68 <Tool
69 Name="VCNMakeTool"
70 BuildCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant&#x0D;&#x0A;"
71 ReBuildCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant&#x0D;&#x0A;"
72 CleanCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant clean&#x0D;&#x0A;&#x0D;&#x0A;"
73 Output=""
74 PreprocessorDefinitions="WIN32;NDEBUG"
75 IncludeSearchPath=""
76 ForcedIncludes=""
77 AssemblySearchPath=""
78 ForcedUsingAssemblies=""
79 CompileAsManaged=""
80 />
81 </Configuration>
82 <Configuration
83 Name="Release|x64"
84 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
85 IntermediateDirectory="$(ConfigurationName)"
86 ConfigurationType="0"
87 >
88 <Tool
89 Name="VCNMakeTool"
90 BuildCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant&#x0D;&#x0A;"
91 ReBuildCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant&#x0D;&#x0A;"
92 CleanCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant clean&#x0D;&#x0A;&#x0D;&#x0A;"
93 Output=""
94 PreprocessorDefinitions="WIN32;NDEBUG"
95 IncludeSearchPath=""
96 ForcedIncludes=""
97 AssemblySearchPath=""
98 ForcedUsingAssemblies=""
99 CompileAsManaged=""
100 />
101 </Configuration>
102 </Configurations>
103 <References>
104 </References>
105 <Files>
106 <Filter
107 Name="Source Files"
108 Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
109 UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
110 >
111 </Filter>
112 </Files>
113 <Globals>
114 </Globals>
115</VisualStudioProject>
diff --git a/scilab/modules/hdf5/version.xml b/scilab/modules/hdf5/version.xml
new file mode 100644
index 0000000..d4ad731
--- /dev/null
+++ b/scilab/modules/hdf5/version.xml
@@ -0,0 +1,21 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
3<!--
4 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
5 * Copyright (C) 2009 - DIGITEO - Allan CORNET
6 *
7 * This file must be used under the terms of the CeCILL.
8 * This source file is licensed as described in the file COPYING, which
9 * you should have received as part of this distribution. The terms
10 * are also available at
11 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
12 *
13 -->
14
15<!-- Defines the version of a module -->
16
17<!DOCTYPE MODULE_VERSION SYSTEM "../core/xml/version.dtd">
18
19<MODULE_VERSION name="hdf5">
20<VERSION major="5" minor="2" maintenance="0" revision="0" string="unstable-git" />
21</MODULE_VERSION>