Skip to content

Latest commit

 

History

History

api

Synthesis API

API

The Synthesis API contains parts of Synthesis that can remain mostly Unity abnostic. The end goal of this API is to extend Synthesis' functionality via a reliable set of tools that will be reused throughout future iterations of Synthesis, no matter where it may go.

Getting Started

For more information on cloning this repository and the initial setup of the Synthesis codebase please visit the Getting Started section of the root README.

Dependencies

Similar to the rest of Synthesis, the Synthesis API has the following dependencies that need to be satisfied before attempting to build Synthesis or the Synthesis API.

You can either install these dependencies manually or use the resolve dependencies scripts (scripts/win/resolve_deps.bat & scripts/osx/resolve_deps.sh respectively) to install some of them for you.

To automatically install .NET and Protobuf run the following script depending on your operating system:

Note that the windows script requires admin privileges to install .NET and Protobuf to the system PATH. For this reason it is not included by default in init.bat unlike how init.sh includes resolve_deps.sh.

How To Build The API With An init Script

Synthesis comes with a robust build system that includes an init script that will automatically compile and link each part of Synthesis together. This is the recommended way to build Synthesis and the Synthesis API.

To build the API with an init script first ensure that all dependencies are resolved. Then run the following command based on your operating system in the root of this repository:

  • Windows: init.bat
  • MacOS & Linux: init.sh

How To Build The API With The API Build Scripts

The Synthesis API comes with it's own build scripts to simplify the process of building the API from the command line. First ensure that all dependencies are resolved. Then run the following command based on your operating system in the api directory of this repository:

  • Windows: build.bat
  • MacOS & Linux: build.sh

How To Build The API With Visual Studio

  1. Open Visual Studio 2017 or newer.
  2. Select Open Project or Solution.
  3. Choose api.sln from the api directory of this repository.
    • For more information about cloning this repository please visit the Getting Started section of the root README.
  4. Select Build Solution from the Visual Studio toolbar or hit Ctrl + Shift + B to build the API.