Libraries Options
Libraries options control which dynamic libraries are bundled into the output artifact. They are available on the run, test, and archive commands.
Embed Libraries
Section titled “Embed Libraries”Use --embed-library:<platform> to embed a dynamic library into the artifact produced for the given platform. The option is repeatable — multiple libraries can be embedded per platform.
| Option | Description |
|---|---|
--embed-library:macos <path> | Embed a dynamic library for macOS |
--embed-library:ios <path> | Embed a dynamic library for iOS device |
--embed-library:ios-simulator <path> | Embed a dynamic library for iOS Simulator |
--embed-library:android-arm64-v8a <path> | Embed a shared library for Android ARM64 |
--embed-library:android-armeabi-v7a <path> | Embed a shared library for Android ARMv7 |
--embed-library:android-x86_64 <path> | Embed a shared library for Android x86_64 |
--embed-library:android-x86 <path> | Embed a shared library for Android x86 |
Example
Section titled “Example”scd archive \ --embed-library:android-arm64-v8a ./libs/arm64-v8a/libfoo.so \ --embed-library:android-armeabi-v7a ./libs/armeabi-v7a/libfoo.so