This collection of cookiecutters simplifies the process of building plugins for Hobbits. Cookiecutters are templates that are meant to be used with the tool Cookiecutter.
Available python plugin cookiecutter directories are python-operator
,
python-analyzer
, python-display
, python-exporter
, and python-importer
Prerequisites:
- Python
- Cookiecutter
pip install cookiecutter
Creating and building an Operator plugin:
# Run cookiecutter to create the boilerplate code for the plugin
cookiecutter gh:Mahlet-Inc/hobbits-cookiecutters --directory python-operator
# Answer the prompts to name your plugin
# Place the generated folder into the python_operators folder where hobbits
# looks for plugins
mv py-operator ~/.local/share/hobbits/plugins/python_operators/
# plugin paths can be set in hobbits via the Edit->Preferences menu in the
# "Plugin Loader" section
Available C++ plugin cookiecutter directories are operator
, analyzer
,
display
, importerexporter
Prerequisites:
- CMake, C++ Toolchain, and Ninja Build
- Python
- Cookiecutter
pip install cookiecutter
- Conan
pip install conan
- Conan remote with hobbits stuff
conan remote add hobbits https://helloadam.jfrog.io/artifactory/api/conan/conan
Creating and building an Operator plugin:
# Run cookiecutter to create the boilerplate code for the plugin project
cookiecutter gh:Mahlet-Inc/hobbits-cookiecutters --directory operator
# Answer the prompts to name your plugin
# create a build directory
cd MyPlugin
mkdir build
cd build
# run Conan to get dependencies
conan install .. --build=missing
# build and install the plugin with CMake
cmake ..
cmake --build .
cmake --install .
# you can also manually install the resulting library into any of the folders
# that you have configured Hobbits to look for plugins. plugin paths can be set
# in the Hobbits GUI via the Edit->Preferences menu in the "Plugin Loader"
# section