accsum

accsum Commit Details

Date:2012-07-06 08:56:49 (6 years 3 months ago)
Author:Antoine Elias
Commit:28
Parents: 27
Message:- clear old builders code - update changelog for version 0.1.1
Changes:
M/sci_gateway/c/builder_gateway_c.sce
M/changelog.txt
M/src/c/builder_c.sce
M/builder.sce

File differences

src/c/builder_c.sce
1
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8
99
1010
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
3231
3332
3433
// Copyright (C) 2010 - 2011 - Michael Baudin
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
// Copyright (C) 2010 - 2011 - Michael Baudin
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
function builder_c()
src_c_path = get_absolute_file_path("builder_c.sce");
//CFLAGS = ilib_include_flag(src_c_path);
src_path = "c";
linknames = "accsum";
files = "accsum.c";
ldflags = "";
if getos() == "Windows" then
// Configure the floating point unit so as to use
// SSE2 units, potentially instead of x87 registers.
cflags = "-DWIN32 -DACCSUM_EXPORTS /arch:SSE2";
libs = [];
else
// Configure the floating point unit so as to use
// SSE units, instead of registers.
// The x86 registers may use extended precision.
// http://gcc.gnu.org/wiki/FloatingPointMath
include1 = src_c_path;
cflags = "-mfpmath=sse -msse2 -I"""+include1+"""";
libs = [];
end
tbx_build_src(linknames, files, src_path, src_c_path, "", ldflags, cflags);
src_path = "c";
linknames = "accsum";
files = "accsum.c";
ldflags = "";
if getos() == "Windows" then
// Configure the floating point unit so as to use
// SSE2 units, potentially instead of x87 registers.
cflags = "-DWIN32 -DACCSUM_EXPORTS /arch:SSE2";
libs = [];
else
// Configure the floating point unit so as to use
// SSE units, instead of registers.
// The x86 registers may use extended precision.
// http://gcc.gnu.org/wiki/FloatingPointMath
include1 = src_c_path;
cflags = "-mfpmath=sse -msse2 -I"""+include1+"""";
libs = [];
end
tbx_build_src(linknames, files, src_path, src_c_path, "", ldflags, cflags);
endfunction
builder_c();
builder.sce
1212
1313
1414
15
15
16
1617
1718
1819
//
mode(-1);
lines(0);
setenv("__USE_DEPRECATED_STACK_FUNCTIONS__", "YES")
//setenv("DEBUG_SCILAB_DYNAMIC_LINK","YES");
setenv("__USE_DEPRECATED_STACK_FUNCTIONS__", "YES");
try
getversion("scilab");
catch
sci_gateway/c/builder_gateway_c.sce
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
119
1210
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
11
12
13
14
15
16
17
3118
19
20
21
22
23
24
25
26
27
28
29
3230
3331
3432
3533
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
34
35
36
5437
55
56
57
58
38
39
40
41
5942
6043
61
62
// Copyright (C) 2011 - Michael Baudin
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
disp("-> builder_gw_c");
// Copyright (C) 2011 - Michael Baudin
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
function builder_gw_c()
gateway_path = get_absolute_file_path("builder_gateway_c.sce");
libname = "accsumgateway";
namelist = [
"accsum_fdcs" "sci_accsum_fdcs"
"accsum_fscs" "sci_accsum_fscs"
"accsum_fcompsum" "sci_accsum_fcompsum"
];
files = [
"sci_accsum_fdcs.c"
"sci_accsum_fscs.c"
"sci_accsum_fcompsum.c"
];
ldflags = ""
// Caution : the order matters !
libs = "../../src/c/libaccsum";
gateway_path = get_absolute_file_path("builder_gateway_c.sce");
libname = "accsumgateway";
namelist = [
"accsum_fdcs" "sci_accsum_fdcs"
"accsum_fscs" "sci_accsum_fscs"
"accsum_fcompsum" "sci_accsum_fcompsum"
];
files = [
"sci_accsum_fdcs.c"
"sci_accsum_fscs.c"
"sci_accsum_fcompsum.c"
];
ldflags = ""
// Caution : the order matters !
libs = "../../src/c/libaccsum";
includes_src_c = ilib_include_flag(get_absolute_file_path("builder_gateway_c.sce") + "../../src/c");
tbx_build_gateway(libname, namelist, files, gateway_path, libs, "", includes_src_c);
endfunction
//function old_build()
// include2 = "..\..\src\c";
// include3 = SCI+"/modules/output_stream/includes";
// cflags = "-DWIN32 -I"""+include2+""" -I"""+include3+"""";
// else
// include1 = gateway_path;
// include2 = gateway_path+"../../src/c";
// include3 = SCI+"/../../include/scilab/localization";
// include4 = SCI+"/../../include/scilab/output_stream";
// include5 = SCI+"/../../include/scilab/core";
// cflags = "-I"""+include1+""" -I"""+include2+""" -I"""+include3+...
// """ -I"""+include4+""" -I"""+include5+"""";
// end
//endfucntion
if %t then
if %t then
builder_gw_c();
else
old_build();
end
else
old_build();
end
clear builder_gw_c; // remove builder_gw_c on stack
clear old_build;
disp("-< builder_gw_c");
changelog.txt
11
22
3
4
5
36
47
58
......
1417
1518
1619
17
changelog of the Accsum Toolbox
accsum (0.1.1)
* update to Scilab 5.4
accsum (0.1)
* Initial import.
* Added unit tests.
* Fixed accsum_fdcs.
* Fixed help page of accsum_fdcs for ordering of input data.
* Created overview and quick start.

Archive Download the corresponding diff file

Revision: 28