User Tools

Site Tools


user-guide:export-as-lib

This is an old revision of the document!


Project as Library

Project can be exported as a library usable from other projects. The exported library makes all types (classes, modules, …) and resources (images, shaders, …) available for import.

These libraries are called module lib.

Tutorial on creating and using a module lib here.

Structure

Module lib follow the structure of GroIMP plugins. Thus, how the lib is integrated is described in the plugin.xml file, automatically created when exported.

Compiled resources

All resources included in the project are added to a compiled resource zip (.grz file), that is automatically created when exported. The resources from this zip are loaded by GroIMP on startup, and made available through the imported types and references.

The references can resolve resources from a module lib in the GroIMP path with the name: plg:{package name}.{plugin name}:{resource name}.

Compiled classes

The classes in the project are exported compiled.

Package name

Reference wrapper

user-guide/export-as-lib.1743604140.txt.gz · Last modified: 2025/04/02 16:29 by gaetan