The GameAnalytics C++ SDK code is open-source. Please check out our github repo.
The C++ SDK supports following platforms:
- Windows (32-bit and 64-bit)
- Linux (tested on Ubuntu 16.04),
Requirements for building the code
- python (2.7 or higher)
- cmake (will be automatically downloaded by the script if you don't have it)
- XCode (for Mac) or Visual Studio 2015 or newer + VS Common Tools (for Windows)
To start a build for all supported build targets simply call the build script for your platform:
This will build all targets and the first time it's ran it will also install CMake and Tizen SDK.
If you are using Tizen the script must be run as an administrator.
By default the build script tries to use Visual Studio 2017. To use Visual Studio 2015 call
build.bat -v 2015.
Call either command with a
-h parameter to display the usage of the script and it will list all available targets.
To build just a specific target call command with argument
-t TARGET (available targets can be shown calling with
How to develop / contribute
If you wish to develop or bug-fix features for the SDK, you can use the generated project files to work with.
They will be generated under
build/jenkins/build/[target] after calling the
After building the SDK from source it is needed to link the resulting static library
GameAnalytics.lib (Windows) or
GameAnalytics.a (Mac) inside your own project where you want to use the SDK.
You also need to link to the following dependencies for the following platforms:
Depending on what version of visual studio you need to link the specified libraries:
Here are some examples where the libraries would be located, where vcXXX would be the visual studio you have build the project for (e.g
vc140 for Visual Studio 2017)
If you are bulding for x64 you will have to link the same libraries but built for x64:
For MacOS you will need to link with the following libraries:
Additionally you need to link the following frameworks:
Make sure the following header is accesible from your include paths (either add
source/GameAnalytics to your include paths or copy the header inside your project):
If you are using Swift for a Mac application copy the following files into your project:
You should now be able to call the functions in the wrapper header file inside your swift files.
Configure Tizen IDE
If you are bulding for Tizien OS you will have to add the following privileges to the