Building CSP for MacOS
This page details how to Build foundation locally and build the MacOS DLLs on OSX.
Prerequisites
Please install the following packages:
Install HomeBrew
xcode (install through App Store)
brew install gitbrew install git-lfsbrew install --cask visual-studio-codebrew install python3brew install llvmbrew install --cask dockerbrew install cmakepip3 install chevronpip3 install jinja2pip3 install gitpython
Build Instructions
Build instructions for the Connected Spaces Platform project are below. First of all you’ll need to run the following script:
Clone the Connected Spaces Platform Repositiory
git clone --recurse-submodules https://github.com/magnopus-opensource/connected-spaces-platform.git.Open Terminal and run
generate_solution_macto generate the Foundation solution.
If you get an error with premake not found, this is the first module built so you’ll need to checkout the submodules with
git submodule update --init --recursive.
Open up Terminal in the Foundation Root Folder and run :
xcodebuild BITCODE_GENERATION_MODE=bitcode OTHER_CFLAGS="-fembed-bitcode" -configuration ReleaseDLL -project Library/ConnectedSpacesPlatform.xcodeproj
Note: To Build Debug DLLs replace ReleaseDLL with DebugDLL and likewise with the directory location.
Where is the file output?
Once Foundation has finished building you will find the DLL has been generated in connected-spaces-platform\Library\Binaries\macosx\ReleaseDLL.