Product Family: SCORE
Target CPU: Any
Language: Any
Host: Any
Using SCORE, many members of a project team can easily
share a project and maintain their own repository (or work area)
for source code files. The SCORE GUI supports a built-in macro
called USER_SRC_DIR that can be defined at both the
"project level" and at the "user level".
This means there can be a default project-wide setting for where
the source code files reside and that each user can also define
their own location for their version of the project files where
they can make changes to the code without affecting other users.
Defining the location of source files for a project at the
project level
When a project is created (in project mode), the project can
be defined to have a location for the source code files. Follow
the following steps to create a project to be shared by many
users and define the common directory for source code files.
1. Enable project mode. Select "Project | Project
Mode" from the Main Menu.
2. Create the project. Select "Project | New".
Enter the project name and select a directory location for the
project.
3. Define the directory for the source code files for the
project (the common copy of the files for the project). Select
"Project | Edit". Click on the "User Source
Directory" tab on the Project Edit dialog. Use the browse
button to select the common location of the files. (eg.
c:\projects\common\demo_project_files). Another option is to
embed the $USER macro into the path to have a "common"
path location for all users (eg. c:\projects\$USER\demo_files).
4. Define a program. Select "Project | Programs".
Click "New Item". Enter the program name. Click the
"Files" tab. Click the "Add" button. The
"Add Files" dialog is displayed and automatically set
to the directory defined in step 3 above. Select the required
files for the program and press "Open". Notice that
the files are added to the program and the path to the files are
defined to be "&USER_SRC_DIR\<filename.ext>.
5. Disable project mode. Select "Project | Project
Mode" from the Main Menu.
Defining the location of source files for a project at the
user level
Now that the project has been created, each user can define
their own private location for the source code files. Follow the
following steps to define a users private work-area directory
for source code files.
6. Open the project (if not already open). Select
"Project | Open" and select the project created above.
(Do not enable Project mode).
7. Edit the project. Select "Project | Edit" and
click on the "User Source Directory" tab. Note that it
is blank now because it was defined at the project level
previously and now you are at the "user level". Use
the browse button to select your private directory location for
the source code files. Press "OK".
The files are still stored in the program with the
USER_SRC_DIR macro for the location of the files, but for the
current user the user-level defined directory will be first used
when the GUI tries to open a file, etc. In this way, each user
can keep and use their own copies of the files in a program to
test changes, etc. without affectiing other users.