Skip to content

Latest commit

 

History

History
90 lines (60 loc) · 1.42 KB

readme.md

File metadata and controls

90 lines (60 loc) · 1.42 KB

How to build Nany

Building Nany C++/bootstrap

Dependencies

  • >=CMake-3.0
  • C++14 compliant compiler: >=gcc-4.9, >=clang-3.7, >=VS2015

Make sure that submodules are present (if the repository has not been cloned with --recursive option):

$ git submodule update --init --recursive

UNIXes / Makefile

Generate the makefiles:

$ cd bootstrap
$ cmake .

Build:

$ make -j $(nproc)

Windows / Visual Studio IDE

Generate the MS Projects:

$ cd bootstrap
$ cmake . -G "Visual Studio 14 2015 Win64"

Build the bootstrap from the command line:

$ msbuild nany-boostrap.sln

Note: For automating the build process with Visual Build Tools, please refer to the appveyor.yml file at the root directory of the repository.

Release mode

To compile in release mode, just add -DCMAKE_BUILD_TYPE=release to cmake command line options.

Generating packages for Debian/Redhat

notes: fpm (Effing Package Management) is required for generating deb/rpm packages

Debian packages

Installing fpm:

$ apt-get install ruby-dev gcc make
$ gem install fpm
$ cd bootstrap
$ make package-deb

RedHat/CentOS packages:

Installing fpm:

$ yum install ruby-devel gcc make
$ gem install fpm
$ cd bootstrap
$ make package-rpm