Merge pull request #510 from AllenX2018/improve-build-doc

add MinGW build guideline and tips to disable building docs
This commit is contained in:
Petri Lehtinen 2019-10-24 11:23:00 +03:00 committed by GitHub
commit ca88677bdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,6 +84,11 @@ Generating make files on unix:
cd build cd build
cmake .. # or ccmake .. for a GUI. 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:: Then to build::
make make
@ -115,6 +120,7 @@ Creating Visual Studio project files from the command line:
- ``Visual Studio 12 2013`` - ``Visual Studio 12 2013``
- ``Visual Studio 14 2015`` - ``Visual Studio 14 2015``
- ``Visual Studio 15 2017`` - ``Visual Studio 15 2017``
- ``Visual Studio 16 2019``
Any later version should also work. Any later version should also work.
@ -136,6 +142,21 @@ for the project, run::
cmake -LH .. 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) Mac OSX (Xcode)
^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^
If you prefer using Xcode instead of make files on OSX, If you prefer using Xcode instead of make files on OSX,