Gocator Development Kit
 All Classes Files Functions Variables Typedefs Friends Modules Pages
Build System

The build system utilizes a solution generator, which generates the project files for different build environments within one solution, as well as a per-project build script which compiles your project for all supported architectures.

In the Gdk directory you will find a Gdk.xml file, which contains entries for the GoSdk project, and the two provided sample applications.

1 <Solution version="6">
2  <Project name="GdkAppSample/GdkAppSample.xml" />
3 </Solution>

The SampleApp project serves as a template for you to create your own projects. When you wish to create your own project, simply copy and rename the GdkAppSample folder, and add an entry for it in the Gdk.xml solution configuration file, matching the syntax of the existing entries.

Each project folder in turn contains its own project configuration file. For the Sample App, it is GdkAppSample.xml. When creating your own project by copying the sample application, simply change the file name and all instances of "GdkAppSample" within the file to reflect your new project name.

You will also probably want to add your own source files. Within the project generator configuration file there is a list of source files, simple add your own in the same format:

1 <Sources>
2  <SourceGroup name="TestSurfaceTool">
3  <Source>GdkAppSample/TestSurfaceTool.h</Source>
4  <Source>GdkAppSample/TestSurfaceTool.x.h</Source>
5  <Source>GdkAppSample/TestSurfaceTool.c</Source>
6  </SourceGroup>
7 </Sources>

To create a Visual Studio solution for your projects and the example projects, simply run 'generate.py' in the GdkAppSample folder.

From within Visual Studio you can select any of the following three build targets/configurations:

  • Win32/x64: Compiles binaries required for the Gocator Emulator.
  • Sensor: Compiles upgrade packages in the pkg directory required for Gocator Sensors. The upgrade packages are in the top level pkg/ directory named "Custom-xyz.dat".