Giter Club home page Giter Club logo

freeorion-sdk's Introduction

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 version for the generated project files, use the -G (generator) parameter. Valid values for this parameter are -G "Visual Studio 15 2017", -G "Visual Studio 16 2019", -G "Visual Studio 17 2022", -G "Xcode" or similar. Note: Building FreeOrion on Windows requires Visual Studio 2019 or 2022, although the SDK can be built with Visual Studio 2017.

To select a specific MSVC archticture, use the -A (architecture) parameter. Valid values for this parameter are -A Win32 or -A x64.

To select a specific MSVC toolset version, use the -T (toolset) parameter. Valid values for this parameter are -T v141, -T v142, or -T v143. Note: -T v142 requires Visual Studio 2019 and -T v143 requires Visual Studio 2022. An SDK built with -T v141 or -T v142 should be compatible for building FreeOrion with later toolsets, and FreeOrion itself requires the v142 or later toolset to build.

After that, the SDK can be build with:

cmake --build . --config RelWithDebInfo

The --config RelWithDebInfo parameter is required.

The build takes about 20 to 40 minutes and the results are stored inside the build/INSTALL directory.

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

freeorion-sdk's People

Contributors

adrianbroher avatar cotsog avatar dbenage-cx avatar geoffthemedio avatar lgm-doyle avatar memem359 avatar o01eg avatar vezzra avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.