Skip to content

freeorion/freeorion-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8f04ede · Nov 5, 2017
Mar 8, 2016
Nov 5, 2017
Jan 28, 2017
Feb 27, 2016
Mar 28, 2016
Mar 9, 2017
Nov 5, 2016
Nov 5, 2017
Nov 5, 2017
Feb 21, 2017
Mar 26, 2017
Nov 3, 2017
Sep 16, 2017
Nov 7, 2016
Nov 6, 2016
Dec 12, 2016
Mar 1, 2017

Repository files navigation

FreeOrion SDK

Windows build status badge MacOSX build status badge

Build script used to build the FreeOrion SDK for the Windows and Mac OSX operating systems. For Linux there exists a Dockerfile, which creates a Docker container capable of building FreeOrion. All artifacts (Windows SDK, ḾacOSX SDK and Linux Docker container) are used for continuous integration within the project.

Prerequisites

To build the FreeOrion SDK an instance of a properly configured development environment for the C and C++ programming language is required. Depending on the operating system this usually means that at least one of the following development environments are installed (but isn't necessary limited to):

  • Visual Studio
  • Windows Platform SDK
  • XCode

Beside an installation of CMake version 3.4 or later must be available and the cmake executables pathes must have been added to the PATH environment variable.

Also an installation of Git version 1.9 or later must be available and the git executable pathes must have been added to the PATH environment variable.

Usage

To prepare building the SDK clone this repository by calling:

git clone https://github.com/freeorion/freeorion-sdk.git freeorion-sdk

and change into the checked out repository by calling:

cd freeorion-sdk

To actually build the SDK a dedicated build directory is required, so create one:

mkdir build

and change into it:

cd build

Now configure the build to check if the tools and build environments are properly set up:

cmake ..

This command creates a native build system for the SDK.

To select a specific IDE or a version thereof use the -G (generator) parameter. Valid values for this parameter are -G "Visual Studio 14 2015", -G "Visual Studio 15 2017", `-G "Xcode" or similar.

To select a specific MSVC toolset version use the -T (toolset) parameter. Valid values for this parameter are -T v140 or -T v141 or equivalent for other versions at the end of this command.

After that, the SDK can be build with:

cmake --build . --config RelWithDebInfo

The --config RelWithDebInfo parameter is required.

The build takes around 25 minutes and the results are stored inside the build/INSTALL directory and a prepackaged version called

FreeOrionSDK_{MSVC,CLANG}_<timestamp>.zip

can be found in the build directory.

If you have any questions or problems please feel free to create an Issue.

Homepage

http://freeorion.org