To create a library, create a Library document (.gcomp) and add source files to the document.
-
Create a new Library document.
-
Click
.
-
In the
Create Library dialog box, enter values in
Library name and
Namespace.
-
Click OK.
-
Save the Library document.
-
Add source files to the Library document in one of the following ways:
-
Create files under the project and drag the files from the
Project Files tab to the Library document.
-
In the Library document, click
on the document toolbar and select the type of file to create.
-
In the Library document, click
on the document toolbar and select files on disk to copy to the Library document.
-
For each item in the Library document, configure the build options as needed.
-
Enable Export if you
want to allow a source file to be called from other applications or
libraries. Disable Export for internal source
files.
-
Enable Always
include if you want to include a support file, such as a
text, image, or audio file or source files, such as .gvis or .gtypes, when
you share the library.
-
On the Document tab, enter information about your library
in the Details section.
- Optional:
If you want your library to be used as part of an extensible application,
enable Identify library as a plugin in the
Document tab.
-
Click .
Now that you have created a library, consider
optimizing your
library before you
package it.