diff options
author | AllenX2018 <leloucharcher@163.com> | 2019-10-21 15:53:33 +0800 |
---|---|---|
committer | AllenX2018 <leloucharcher@163.com> | 2019-10-21 15:53:33 +0800 |
commit | 5b8ff675b3ef1515515a2555496670c19a6f59ae (patch) | |
tree | 72fa58f97c5e7271f324ad5f11722a28307054e1 | |
parent | 79075d5393cc6e1b4e0829a8887eba4ea2735fc5 (diff) | |
download | jansson-5b8ff675b3ef1515515a2555496670c19a6f59ae.zip jansson-5b8ff675b3ef1515515a2555496670c19a6f59ae.tar.gz jansson-5b8ff675b3ef1515515a2555496670c19a6f59ae.tar.bz2 |
add MinGW build guideline, add new version of Visual Studio
-rw-r--r-- | doc/gettingstarted.rst | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/gettingstarted.rst b/doc/gettingstarted.rst index 64bec43..2ba7304 100644 --- a/doc/gettingstarted.rst +++ b/doc/gettingstarted.rst @@ -84,6 +84,11 @@ Generating make files on unix: cd build cmake .. # or ccmake .. for a GUI. +.. note:: + + If you don't want to build docs or ``Sphinx`` is not installed, you should add ``"-DJANSSON_BUILD_DOCS=OFF"`` in the ``cmake`` command. + + Then to build:: make @@ -115,6 +120,7 @@ Creating Visual Studio project files from the command line: - ``Visual Studio 12 2013`` - ``Visual Studio 14 2015`` - ``Visual Studio 15 2017`` + - ``Visual Studio 16 2019`` Any later version should also work. @@ -136,6 +142,21 @@ for the project, run:: cmake -LH .. +Windows (MinGW) +^^^^^^^^^^^^^^^^^^^^^^^ +If you prefer using MinGW on Windows, make sure MinGW installed and ``{MinGW}/bin`` has been added to ``PATH``, then do the following commands: + +.. parsed-literal:: + + <unpack> + cd jansson-|release| + + md build + cd build + cmake -G "MinGW Makefiles" .. + mingw32-make + + Mac OSX (Xcode) ^^^^^^^^^^^^^^^ If you prefer using Xcode instead of make files on OSX, |