Table Of Contents

Creating a Library

Last Modified: November 19, 2020

To create a library, create a Library document (.gcomp) and add source files to the document.

  1. Create a new Library document.
    1. Click File»New»Library.
    2. In the Create Library dialog box, enter values in Library name and Namespace.
    3. Click OK.
    4. Save the Library document.
  2. 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 New on the document toolbar and select the type of file to create.
    • In the Library document, click New»Import files on the document toolbar and select files on disk to copy to the Library document.
  3. 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.
  4. On the Document tab, enter information about your library in the Details section.
  5. 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.
  6. Click File»Save all.
Now that you have created a library, consider optimizing your library before you package it.

Recently Viewed Topics