SDK flavor#
To make our SDK extendable we can determine the installed templates of a local SDK. From a local SDK run
$ echo $SIMPLESWITCH_SDK_FLAVORS
browser c python flutter qt6
meaning that SDK code for browser
, c
, python
, flutter
and qt6
is installed in this specific SDK.
Define a flavor for a template#
To announce your flavor
to the SDK, create a nativesdk-simpleswitch-sdk-ext-<flavor>_1.0.bb
in your layer, with the
following content
SUMMARY ?= "Simpleswitch SDK C extension"
inherit simpleswitch-sdk-extension-recipe
SIMPLESWITCH_SDK_FLAVOR = "<flavor>"
Note
This setting will of course only become effective if your layer has been part of the bblayers.conf
while building the simplecor-simpleswitch-sdk