|
|
|
@@ -9,16 +9,19 @@ Finally, when you want to compile your application, you must link against the st |
|
|
|
|
|
|
|
@section standalone_building_library Building the SDK library |
|
|
|
|
|
|
|
The source code for the BLOCKS SDK library is contained within the SDK directory of the BLOCKS-SDK repository. |
|
|
|
Here you will find a header file that you can include in your own projects and the <tt>Build</tt> directory contains an XCode project, a Visual Studio project and a Linux Makefile for compiling the SDK source code into a static library. |
|
|
|
The source code for the BLOCKS SDK library is contained within the <tt>BLOCKS-SDK-static</tt> and <tt>BLOCKS-SDK-dynamic</tt> directories of the BLOCKS-SDK repository. |
|
|
|
Here you will find header files that you can include in your own projects and the <tt>Builds</tt> subdirectory contains an XCode project, a Visual Studio project and a Linux Makefile for compiling the SDK source code into either static or dynamic library. |
|
|
|
Open the appropriate project for your platform, select either the "Debug" or "Release" configuration, and build the project. |
|
|
|
For MacOS and Linux this will produce <tt>libBLOCKS-SDK.a</tt> in either a <tt>Debug/</tt> or <tt>Release/</tt> directory, and for Windows this will produce <tt>BLOCKS-SDK.lib</tt> in <tt>x64/Debug/</tt> or <tt>x64/Release/</tt>. |
|
|
|
|
|
|
|
For the remainder of this page of documentation we will assume that you will be building the static library. |
|
|
|
|
|
|
|
For MacOS this will produce <tt>libBLOCKS-SDK-static.a</tt> in either a <tt>build/Debug/</tt> or <tt>build/Release/</tt> directory, for Linux this will produce <tt>libBLOCKS-SDK-static.a</tt> in <tt>build/</tt>, and for Windows this will produce <tt>BLOCKS-SDK-static.lib</tt> in <tt>x64/Debug/</tt> or <tt>x64/Release/</tt>. |
|
|
|
|
|
|
|
@section standalone_using_header Using the SDK header file |
|
|
|
|
|
|
|
To use BLOCKS classes and functions in your application you must include the <tt>BlocksHeader.h</tt> file in your source code. |
|
|
|
You must also tell the compiler to look in the <tt>SDK/</tt> directory for additional header files, which you can configure inside your XCode or Visual Studio project. |
|
|
|
If you are using the command line to compile your application then you can see an example of how to do this in <tt>examples/BLOCKS-SDK/BlockFinder/Linux/Makefile</tt> (which is also appropriate for MacOS, despite being located inside the Linux directory). |
|
|
|
To use BLOCKS classes and functions in your application you must include the <tt>JuceHeader.h</tt> file in your source code. |
|
|
|
You must also tell the compiler to look in the <tt>BLOCKS-SDK-static/JuceLibraryCode/</tt> and <tt>BLOCKS-SDK-static/JuceLibraryCode/modules</tt> directories for additional header files, which you can configure inside your XCode or Visual Studio project. |
|
|
|
If you are using the command line to compile your application then you can see an example of how to do this in <tt>examples/BLOCKS-SDK/BlockFinder/LinuxMakefile/Makefile</tt> (which is also appropriate for MacOS, despite being located inside the Linux directory). |
|
|
|
|
|
|
|
@section standalone_linking Linking against the SDK library |
|
|
|
|
|
|
|
|