How To Make a MPB Package

From MOD Wiki
Revision as of 21:05, 13 September 2017 by FalkTX (talk | contribs) (Created page with "This page describes how to make a plugin package for mod-plugin-builder (or MPB for short) Few things about the build script and Buildroot Buildroot is based on packages to...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page describes how to make a plugin package for mod-plugin-builder (or MPB for short)

Few things about the build script and Buildroot

Buildroot is based on packages to build things. An LV2 plugin becomes a package and because of that it must comply with Buildroot rules. A few important notes:

   The package name is defined by the folder name and cannot contain '.'
   There must be a <packagename>.mk file inside the package folder
   The package name and '.mk' file name must be the same
   Inside the '.mk' file all defined variables must start with the package name in uppercase replacing '-' with '_'
   You need to define the generated plugin bundle names in the <PACKAGE_NAME>_BUNDLES variable
   Browse through other examples so you get an idea of other variations of the makefiles (how to use cmake or waf for example)
   If you want to rebuild after a change to your plugin or the .mk then it is often easiest to just delete the previous build's directory for your plugin ~/mod-workdir/plugins-dep/build/<packagename>-<version>