Table A.3 lists the 68K Project class properties.
| Name |
Property Type |
|---|---|
Table A.4 lists the PPC Project class properties.
| Name |
Property Type |
|---|---|
.
Table A.5 lists the Java Project class properties.
| Name |
Property Type |
|---|---|
.
Table A.6 lists the x86 Project class properties.
| Name |
Property Type |
|---|---|
Table A.7 lists the properties for the Access Paths Class.
| Name |
Property Type |
|---|---|
A path information record may contain the properties shown in Table A.8. It must contain at least the name field.
Table 0.8 Path Information Class
| Name |
Property Type |
|---|---|
If you use a string instead of a path information record, CodeWarrior sets recursive to true and origin to project relative.
To clear all the access path entries listed in the Access Paths
preference panel, set the User Paths or System Paths property
to an empty list. For example, in AppleScript, this statement
removes all entries, including the default entries, {Project } and {Compiler }:
Set Preferences of panel "Access Paths" to ¬
{User Paths: {}, System Paths: {} }
To add a default entry back, add an access path record with the
name set to ":" and with the origin set to project relative (for
{Project }) or shell relative (for {Compiler }). For example, this statement sets User Paths to {Project } and System Paths to {Compiler }:
Set Preferences of panel "Access Paths" to ¬
{User Paths: {{name: ":", ¬
origin: project relative}},¬
System Paths: {{name: ":", ¬
origin: shell relative}}}
For more information on the meaning of the properties listed in Table A.7 and Table A.8, see "Access Paths".
You set the current target parameters in the Target Settings options panel with the properties shown in Table A.9.
Table 0.9 Target Settings Class
| Name |
Property Type |
|---|---|
The Target Name string is the name of the target (you choose this name). The
Linker string must be the name of one of the files in the Linkers folder of the CodeWarrior Plugins folder. The Post Linker string must be the name of one of the files in the Post Linkers folder of the CodeWarrior Plugins folder. The Output Directory Path string is a string that points to a location on your hard disk
where the output files should be placed after linking. You can
make this path absolute, or you can make it relative to the location
of the project (project relative), compiler (compiler relative),
or system (system relative).
The following is a list of the names of the linkers included with CodeWarrior:
For example, the following statement changes the current target to Macintosh 68K:
Set Preferences of panel "Target Settings" to ¬
{Linker: "MacOS 68K Linker"}
The File Mapping Information is a list of all the types of files you can include in the current project. It contains records described in Table A.10.
Table 0.10 File Mapping Information Class
| Name |
Property Type |
|---|---|
The Compiler string must be the name of one of the files in the Compilers folder of the CodeWarrior Plugins folder. These names are different from the names that appear
in the Compiler pop-up menu of the Target preference panel. Table A.11 shows you which name to use for the compilers included with CodeWarrior.
Table 0.11 Choosing a compiler
| To target... |
with... |
specify this string. |
|---|---|---|
"Lib Import x86" |
||
To specify that a file isn't compiled, use the empty string "" for the compiler. For example, these statements show how to add
an entry for text files that end in .txt and are not compiled.
set currPrefs to Get Preferences from panel "Target"
set Mappings of currPrefs to ¬
Mappings of currPrefs & ¬
{{File Type:"TEXT", Extension:".txt", ¬
Compiler:"", Precompiled:false, ¬
Resource File:false, Launchable:true, ¬
Ignored by Make:true}}
Set Preferences of panel "Target" to currPrefs
The Segment Class properties, as shown in Table A.12, contain information about a segment or group in the open project,
| Name |
Property Type |
|---|---|
The Project File Class contains information about an entry in a project file. Table A.13 illustrates the available properties.
| Name |
Property Type |
|---|---|
.