TOC PREV NEXT INDEX

 


Specifying the Tcl Interpreter


By default, prowrap includes the wish Tcl interpreter, the [incr Tcl], [incr Tk], [incr Widget], TclX, and Expect (Unix only) extensions, and all of the binary libraries and library script files needed by wish and the extensions. The wrapped application is statically linked with all of the appropriate libraries, so it is not dependent on any other files; you can distribute it as a stand-alone application.

You can specify a different interpreter or different extension options with the uses flag. For example, the following command includes the tclsh interpreter (with no extensions) and all of the binary libraries and library script files needed by tclsh:


C:> prowrap -uses tclsh app.tcl lib1.tcl lib2.tcl

The uses flag is a convenience to simplify the use of certain standard configurations. Different uses options provide predetermined sets of Tcl interpreters, extensions, and library files needed by the interpreter and extensions. TclPro Wrapper then automatically includes all of those files with your wrapped application. Table 10 lists the values of uses for which TclPro Wrapper has built-in support.

Table 10 Predefined uses Options
Option
Description
bigwish (default)
Includes the wish Tcl interpreter, the [incr Tcl], [incr Tk], [incr Widget], TclX, and Expect (Unix only) extensions, and all of the library script files needed by wish and the extensions. Produces a statically-linked application.
bigtclsh
Includes the tclsh Tcl interpreter, the [incr Tcl], TclX, and Expect (Unix only) extensions, and all of the library script files needed by tclsh and the extensions. Produces a statically-linked application.
wish
Includes the wish interpreter (with no extensions) and all of the Tcl and Tk library script files. Produces a statically-linked application.
tclsh
Includes the tclsh interpreter (with no extensions) and all of the Tcl library script files. Produces a statically-linked application.
wish-dynamic
Includes the wish interpreter (with no built-in extensions), but not the Tcl or Tk library or library script files. Produces a dynamically-linked wrapped application, as discussed in "Creating and Distributing Dynamically-Linked Wrapped Applications".
tclsh-dynamic
Includes the tclsh interpreter (with no built-in extensions), but not the Tcl library or library script files. Produces a dynamically-linked wrapped application, as discussed in "Creating and Distributing Dynamically-Linked Wrapped Applications".

In addition to the options listed in Table 10, you can also define new configurations of your own with their own -uses values. See "Defining New uses Options" for details.




http://www.ajubasolutions.com
Voice: (650) 210-0100
Fax: (650) 210-0101
support@ajubasolutions.com
TOC PREV NEXT INDEX