accsum

accsum Commit Details

Date:2012-07-06 08:18:23 (5 years 9 months ago)
Author:Antoine Elias
Commit:27
Parents: 26
Message:- update builders to Scilab 5.4
Changes:
M/builder.sce
M/sci_gateway/c/builder_gateway_c.sce
M/src/c/builder_c.sce
M/src/c/cleaner.sce

File differences

builder.sce
1212
1313
1414
15
15
1616
1717
1818
//
mode(-1);
lines(0);
//setenv("DEBUG_SCILAB_DYNAMIC_LINK","YES")
setenv("__USE_DEPRECATED_STACK_FUNCTIONS__", "YES")
try
getversion("scilab");
catch
sci_gateway/c/builder_gateway_c.sce
66
77
88
9
910
10
11
12
13
14
15
16
17
18
19
1120
12
13
14
15
16
17
18
19
20
21
22
21
22
23
24
25
2326
2427
25
28
29
30
31
32
33
34
35
2636
27
28
29
30
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
3155
32
33
34
35
36
37
38
56
3957
40
41
42
43
4458
45
46
47
48
59
60
61
62
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
disp("-> builder_gw_c");
gateway_path = get_absolute_file_path("builder_gateway_c.sce");
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"
];
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"
];
files = [
"sci_accsum_fdcs.c"
"sci_accsum_fscs.c"
"sci_accsum_fcompsum.c"
];
ldflags = ""
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
if ( MSDOS ) then
include2 = "..\..\src\c";
include3 = SCI+"/modules/output_stream/includes";
cflags = "-DWIN32 -I"""+include2+""" -I"""+include3+"""";
//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
builder_gw_c();
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+"""";
old_build();
end
// Caution : the order matters !
libs = [
"../../src/c/libaccsum"
];
tbx_build_gateway(libname, namelist, files, gateway_path, libs, ldflags, cflags);
clear tbx_build_gateway;
clear builder_gw_c; // remove builder_gw_c on stack
clear old_build;
disp("-< builder_gw_c");
src/c/builder_c.sce
66
77
88
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
930
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
31
32
33
34
35
// 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
src_dir = get_absolute_file_path("builder_c.sce");
src_path = "c";
linknames = ["accsum"];
files = [
"accsum"
];
ldflags = "";
if MSDOS 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_dir;
cflags = "-mfpmath=sse -msse2 -I"""+include1+"""";
libs = [
];
end
tbx_build_src(linknames, files, src_path, src_dir, libs, ldflags, cflags);
clear tbx_build_src;
tbx_build_src(linknames, files, src_path, src_c_path, "", ldflags, cflags);
endfunction
builder_c();
clear builder_c; // remove builder_c on stack
src/c/cleaner.sce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// This file is released under the 3-clause BSD license. See COPYING-BSD.
// Generated by builder.sce : Please, do not edit this file
// cleaner.sce
// ------------------------------------------------------
curdir = pwd();
cleaner_path = get_file_path('cleaner.sce');
chdir(cleaner_path);
// ------------------------------------------------------
if fileinfo('loader.sce') <> [] then
mdelete('loader.sce');
end
// ------------------------------------------------------
if fileinfo('libaccsum.so') <> [] then
mdelete('libaccsum.so');
end
// ------------------------------------------------------
chdir(curdir);
// ------------------------------------------------------
// This file is released under the 3-clause BSD license. See COPYING-BSD.
// Generated by builder.sce : Please, do not edit this file
// cleaner.sce
// ------------------------------------------------------
curdir = pwd();
cleaner_path = get_file_path('cleaner.sce');
chdir(cleaner_path);
// ------------------------------------------------------
if fileinfo('loader.sce') <> [] then
mdelete('loader.sce');
end
// ------------------------------------------------------
if fileinfo('Makelib.mak') <> [] then
unix_s('nmake /Y /nologo /f Makelib.mak clean');
mdelete('Makelib.mak');
end
// ------------------------------------------------------
if fileinfo('libaccsum.dll') <> [] then
mdelete('libaccsum.dll');
end
// ------------------------------------------------------
chdir(curdir);
// ------------------------------------------------------

Archive Download the corresponding diff file

Revision: 27