diff options
Diffstat (limited to 'macros')
-rw-r--r-- | macros/getScilab2cVersion.sci | 15 | ||||
-rw-r--r-- | macros/runsci2c.sci | 7 | ||||
-rw-r--r-- | macros/scilab2c.sci | 2 |
3 files changed, 23 insertions, 1 deletions
diff --git a/macros/getScilab2cVersion.sci b/macros/getScilab2cVersion.sci new file mode 100644 index 00000000..3ffdc197 --- /dev/null +++ b/macros/getScilab2cVersion.sci @@ -0,0 +1,15 @@ +// +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012-2012 - Scilab Enterprises - Bruno JOFRET +// +// 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 version=getScilab2cVersion() + version = "2.2" +endfunction diff --git a/macros/runsci2c.sci b/macros/runsci2c.sci index a6c4f38c..cb2d9823 100644 --- a/macros/runsci2c.sci +++ b/macros/runsci2c.sci @@ -123,6 +123,13 @@ for i = 1:size(allInterfaces, "*") copyfile(allInterfaces(i), SCI2COutputPath+"/interfaces/");
end
+// ------------------------------
+// --- Generate SCI2C Header. ---
+// ------------------------------
+// FIXME : Give the user the ability to set this prefix
+FunctionPrefix = "SCI2C";
+C_GenerateSCI2CHeader(SCI2COutputPath+"/includes/", FunctionPrefix);
+
// --------------------------
// --- Generate Makefile. ---
// --------------------------
diff --git a/macros/scilab2c.sci b/macros/scilab2c.sci index 2900a625..d922e0b1 100644 --- a/macros/scilab2c.sci +++ b/macros/scilab2c.sci @@ -127,7 +127,7 @@ error(msprintf(gettext("%s: Wrong number of input argument(s): %d expected.\n"), endfunction function BuildTool = getNativeBuildTool() - if MSDOS + if getos() == "Windows" BuildTool = "nmake" else BuildTool = "make" |