This document provides instructions on how to build the SamplePlugin bundle and dylib for the MCPStudio Custom Tool SDK.
The SamplePlugin is a sample implementation of a custom tool plugin that can be built as either a dynamic library (dylib) or a macOS bundle. The build process uses CMake to manage the build configuration. The bundle and dylib are always built together.
To build both the SamplePlugin bundle and dylib, navigate to the SamplePlugin directory and run:
mkdir build
cd build
cmake ..
make
This will generate both the SampleTool dylib and the SampleTool.bundle files.
SamplePlugin/CMakeLists.txt: Master CMake configuration that builds both the dylib and the bundle.
SamplePlugin/dylib/CMakeLists.txt: CMake configuration for the dylib build (used by the master CMakeLists.txt).
SamplePlugin/dylib/PluginMain.c: Main implementation of the dylib plugin.
SamplePlugin/dylib/ToolDescriptor.c: Tool descriptor for the dylib plugin.
SamplePlugin/bundle/CMakeLists.txt: CMake configuration for the bundle build (used by the master CMakeLists.txt).
SamplePlugin/bundle/PluginMain.mm: Main implementation of the bundle plugin.
SamplePlugin/bundle/ToolDescriptor.c: Tool descriptor for the bundle plugin.