scilab: fix command line option names
This commit is contained in:
parent
5f8552d9d9
commit
a531ea2f27
3 changed files with 36 additions and 36 deletions
|
|
@ -256,28 +256,28 @@ The following table lists the Scilab specific command line options in addition t
|
||||||
<table summary="Scilab specific options">
|
<table summary="Scilab specific options">
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>-addcflag <opt></td>
|
<td>-addcflags <cflags></td>
|
||||||
<td>Additional compiler options <opt> to include in build script</td>
|
<td>Add compiler flags <cflags></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>-addldflag <opt></td>
|
<td>-addldflags <ldflags></td>
|
||||||
<td>Additional link options <opt> to include in build script</td>
|
<td>Add linker flags <ldflags></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>-addsrc <files></td>
|
<td>-addsources <files></td>
|
||||||
<td>Additional comma separated source <files> to include in build script</td>
|
<td>Add comma separated source files <files></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>-vbl <level></td>
|
<td>-buildverbosity <level></td>
|
||||||
<td>Sets the build verbose <level> (default 0)</td>
|
<td>Set the build verbosity <level> (default 0)</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>-buildflags <file></td>
|
<td>-buildflags <file></td>
|
||||||
<td>Uses a Scilab script in <file> to set build flags level</td>
|
<td>Use the Scilab script <file> to set build flags</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -286,12 +286,12 @@ The following table lists the Scilab specific command line options in addition t
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>-intmod <gateway id></td>
|
<td>-internalmodule <gateway id></td>
|
||||||
<td>Generate an internal module with the given <gateway id></td>
|
<td>Generate an internal module with the given <gateway id></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>-ol <library name></td>
|
<td>-outputlibrary <name></td>
|
||||||
<td>Set name of the output library</td>
|
<td>Set name of the output library</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
@ -311,9 +311,9 @@ Some examples:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="shell"><pre>
|
<div class="shell"><pre>
|
||||||
$ swig -scilab -addcflag -I/usr/includes example.i
|
$ swig -scilab -addcflags -I/usr/includes example.i
|
||||||
$ swig -scilab -addldflag "-lm example.i"
|
$ swig -scilab -addldflags "-lm example.i"
|
||||||
$ swig -scilab -addsrc file1.cxx,file2.cxx,example.i
|
$ swig -scilab -addsources file1.cxx,file2.cxx,example.i
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
@ -1862,9 +1862,9 @@ To generate the code and the builder script, the following options may be used w
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><tt><b>addsrc</b></tt>: to add in the compilation source files</li>
|
<li><tt><b>addsources</b></tt>: to add source files to build with</li>
|
||||||
<li><tt><b>addcflag</b></tt>: to set the header include paths</li>
|
<li><tt><b>addcflags</b></tt>: to add compiler flags (to set header include paths....)</li>
|
||||||
<li><tt><b>addldflag</b></tt>: to set the third party library paths and names</li>
|
<li><tt><b>addldflags</b></tt>: to add linker flags (to set library paths and names...)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
@ -1872,7 +1872,7 @@ The SWIG command to use may be something like this:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="shell"><pre>
|
<div class="shell"><pre>
|
||||||
swig -scilab -addcflag "-I[inc_path]..." -addsrc [source],... -addldflag "-L[lib_path] -l[lib_name]" [module_name].i
|
swig -scilab -addcflags "-I[inc_path]..." -addsources [source],... -addldflags "-L[lib_path] -l[lib_name]" [module_name].i
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
<H3><a name="Scilab_module_builder"></a>37.5.4 Builder script</H3>
|
<H3><a name="Scilab_module_builder"></a>37.5.4 Builder script</H3>
|
||||||
|
|
|
||||||
|
|
@ -1710,13 +1710,13 @@ SCILAB_OPT = @SCILABOPT@
|
||||||
define get_swig_scilab_args
|
define get_swig_scilab_args
|
||||||
SWIG_SCILAB_ARGS := -scilab
|
SWIG_SCILAB_ARGS := -scilab
|
||||||
ifdef SRCS
|
ifdef SRCS
|
||||||
SWIG_SCILAB_ARGS += -addsrc "$(SRCDIR_SRCS)"
|
SWIG_SCILAB_ARGS += -addsources "$(SRCDIR_SRCS)"
|
||||||
endif
|
endif
|
||||||
ifdef INCLUDES
|
ifdef INCLUDES
|
||||||
SWIG_SCILAB_ARGS += -addcflag "-I$(abspath $(INCLUDES))"
|
SWIG_SCILAB_ARGS += -addcflags "-I$(abspath $(INCLUDES))"
|
||||||
endif
|
endif
|
||||||
ifdef SRCDIR
|
ifdef SRCDIR
|
||||||
SWIG_SCILAB_ARGS += -addcflag "-I$(abspath $(SRCDIR))"
|
SWIG_SCILAB_ARGS += -addcflags "-I$(abspath $(SRCDIR))"
|
||||||
endif
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,14 +17,14 @@
|
||||||
|
|
||||||
static const char *usage = (char *) "\
|
static const char *usage = (char *) "\
|
||||||
Scilab options (available with -scilab)\n\
|
Scilab options (available with -scilab)\n\
|
||||||
-addcflag <flag> - Additional compilation flag <flag> to include in build script\n\
|
-addcflags <cflags> - Add compiler flags <cflags>\n\
|
||||||
-addldflag <flag> - Additional link flag <flag> to include in build script\n\
|
-addldflags <ldflags> - Add linker flags <ldflags>\n\
|
||||||
-addsrc <files> - Additional comma separated source <files> to include in build script\n\
|
-addsources <files> - Add comma separated source files <files>\n\
|
||||||
-vbl <level> - Sets the build verbose <level> (default 0)\n\
|
-buildverbositylevel <level> - Set the build verbosity <level> (default 0)\n\
|
||||||
-buildflags <file> - Uses a Scilab script in <file> to set build flags\n\
|
-buildflags <file> - Use the Scilab script <file> to set build flags\n\
|
||||||
-nobuilder - Do not generate builder script\n\
|
-nobuilder - Do not generate builder script\n\
|
||||||
-intmod <gateway id> - Generate internal module files with the given <gateway id>\n\
|
-internalmodule <gateway id> - Generate internal module files with the given <gateway id>\n\
|
||||||
-ol <library name> - Set name of the output library\n\n"
|
-outputlibrary <name> - Set name of the output library to <name>\n\n"
|
||||||
;
|
;
|
||||||
|
|
||||||
class SCILAB:public Language {
|
class SCILAB:public Language {
|
||||||
|
|
@ -90,7 +90,7 @@ public:
|
||||||
if (argv[argIndex] != NULL) {
|
if (argv[argIndex] != NULL) {
|
||||||
if (strcmp(argv[argIndex], "-help") == 0) {
|
if (strcmp(argv[argIndex], "-help") == 0) {
|
||||||
Printf(stdout, "%s\n", usage);
|
Printf(stdout, "%s\n", usage);
|
||||||
} else if (strcmp(argv[argIndex], "-addsrc") == 0) {
|
} else if (strcmp(argv[argIndex], "-addsources") == 0) {
|
||||||
if (argv[argIndex + 1] != NULL) {
|
if (argv[argIndex + 1] != NULL) {
|
||||||
Swig_mark_arg(argIndex);
|
Swig_mark_arg(argIndex);
|
||||||
char *sourceFile = strtok(argv[argIndex + 1], ",");
|
char *sourceFile = strtok(argv[argIndex + 1], ",");
|
||||||
|
|
@ -100,19 +100,19 @@ public:
|
||||||
}
|
}
|
||||||
Swig_mark_arg(argIndex + 1);
|
Swig_mark_arg(argIndex + 1);
|
||||||
}
|
}
|
||||||
} else if (strcmp(argv[argIndex], "-addcflag") == 0) {
|
} else if (strcmp(argv[argIndex], "-addcflags") == 0) {
|
||||||
Swig_mark_arg(argIndex);
|
Swig_mark_arg(argIndex);
|
||||||
if (argv[argIndex + 1] != NULL) {
|
if (argv[argIndex + 1] != NULL) {
|
||||||
DohInsertitem(cflags, Len(cflags), argv[argIndex + 1]);
|
DohInsertitem(cflags, Len(cflags), argv[argIndex + 1]);
|
||||||
Swig_mark_arg(argIndex + 1);
|
Swig_mark_arg(argIndex + 1);
|
||||||
}
|
}
|
||||||
} else if (strcmp(argv[argIndex], "-addldflag") == 0) {
|
} else if (strcmp(argv[argIndex], "-addldflags") == 0) {
|
||||||
Swig_mark_arg(argIndex);
|
Swig_mark_arg(argIndex);
|
||||||
if (argv[argIndex + 1] != NULL) {
|
if (argv[argIndex + 1] != NULL) {
|
||||||
DohInsertitem(ldflags, Len(ldflags), argv[argIndex + 1]);
|
DohInsertitem(ldflags, Len(ldflags), argv[argIndex + 1]);
|
||||||
Swig_mark_arg(argIndex + 1);
|
Swig_mark_arg(argIndex + 1);
|
||||||
}
|
}
|
||||||
} else if (strcmp(argv[argIndex], "-vbl") == 0) {
|
} else if (strcmp(argv[argIndex], "-buildverbositylevel") == 0) {
|
||||||
Swig_mark_arg(argIndex);
|
Swig_mark_arg(argIndex);
|
||||||
verboseBuildLevel = NewString(argv[argIndex + 1]);
|
verboseBuildLevel = NewString(argv[argIndex + 1]);
|
||||||
Swig_mark_arg(argIndex + 1);
|
Swig_mark_arg(argIndex + 1);
|
||||||
|
|
@ -124,14 +124,14 @@ public:
|
||||||
Swig_mark_arg(argIndex);
|
Swig_mark_arg(argIndex);
|
||||||
generateBuilder = false;
|
generateBuilder = false;
|
||||||
}
|
}
|
||||||
else if (strcmp(argv[argIndex], "-intmod") == 0) {
|
else if (strcmp(argv[argIndex], "-internalmodule") == 0) {
|
||||||
Swig_mark_arg(argIndex);
|
Swig_mark_arg(argIndex);
|
||||||
generateBuilder = false;
|
generateBuilder = false;
|
||||||
internalModule = true;
|
internalModule = true;
|
||||||
gatewayID = NewString(argv[argIndex + 1]);
|
gatewayID = NewString(argv[argIndex + 1]);
|
||||||
Swig_mark_arg(argIndex + 1);
|
Swig_mark_arg(argIndex + 1);
|
||||||
}
|
}
|
||||||
else if (strcmp(argv[argIndex], "-ol") == 0) {
|
else if (strcmp(argv[argIndex], "-outputlibrary") == 0) {
|
||||||
Swig_mark_arg(argIndex);
|
Swig_mark_arg(argIndex);
|
||||||
libraryName = NewString(argv[argIndex + 1]);
|
libraryName = NewString(argv[argIndex + 1]);
|
||||||
Swig_mark_arg(argIndex + 1);
|
Swig_mark_arg(argIndex + 1);
|
||||||
|
|
@ -900,7 +900,7 @@ public:
|
||||||
/* -----------------------------------------------------------------------
|
/* -----------------------------------------------------------------------
|
||||||
* createGatewayGenerator()
|
* createGatewayGenerator()
|
||||||
* Creates a Scilab macro to generate the gateway source (entry point gw_<module>.c)
|
* Creates a Scilab macro to generate the gateway source (entry point gw_<module>.c)
|
||||||
* Used in the context of internal module generation (-intmod)
|
* Used in the context of internal module generation (-internalmodule)
|
||||||
* ----------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------- */
|
||||||
void createGatewayGeneratorFile() {
|
void createGatewayGeneratorFile() {
|
||||||
String *gatewayGeneratorFilename = NewString("generate_gateway.sce");
|
String *gatewayGeneratorFilename = NewString("generate_gateway.sce");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue