mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-27 11:21:02 +08:00
Gave the scons section a makeover.
This commit is contained in:
parent
38c9826423
commit
49ed6c9774
50
README.md
50
README.md
@ -74,39 +74,37 @@ By default CMake hides compilation commands. This can be modified by specifying
|
|||||||
`-DCMAKE_VERBOSE_MAKEFILE=true` when generating makefiles.
|
`-DCMAKE_VERBOSE_MAKEFILE=true` when generating makefiles.
|
||||||
|
|
||||||
|
|
||||||
Building/Testing with the legacy build system based on SCons
|
Building and testing with SCons
|
||||||
------------------------------------------------------------
|
-------------------------------
|
||||||
|
|
||||||
JsonCpp uses Scons (http://www.scons.org) as a build system. Scons requires
|
**Note:** The SCons-based build system is deprecated. Please use CMake; see the
|
||||||
python to be installed (http://www.python.org).
|
section above.
|
||||||
|
|
||||||
You download scons-local distribution from the following url:
|
JsonCpp can use [Scons][] as a build system. Note that SCons requires python to
|
||||||
http://sourceforge.net/projects/scons/files/scons-local/1.2.0/
|
be installed.
|
||||||
|
|
||||||
Unzip it in the directory where you found this README file. scons.py Should be
|
[SCons]: http://www.scons.org/
|
||||||
at the same level as README.
|
|
||||||
|
|
||||||
python scons.py platform=PLTFRM [TARGET]
|
Invoke SCons as follows:
|
||||||
where PLTFRM may be one of:
|
|
||||||
suncc Sun C++ (Solaris)
|
|
||||||
vacpp Visual Age C++ (AIX)
|
|
||||||
mingw
|
|
||||||
msvc6 Microsoft Visual Studio 6 service pack 5-6
|
|
||||||
msvc70 Microsoft Visual Studio 2002
|
|
||||||
msvc71 Microsoft Visual Studio 2003
|
|
||||||
msvc80 Microsoft Visual Studio 2005
|
|
||||||
msvc90 Microsoft Visual Studio 2008
|
|
||||||
linux-gcc Gnu C++ (linux, also reported to work for Mac OS X)
|
|
||||||
|
|
||||||
Notes: if you are building with Microsoft Visual Studio 2008, you need to
|
scons platform=PLTFRM [TARGET]
|
||||||
setup the environment by running vcvars32.bat (e.g. MSVC 2008 command prompt)
|
|
||||||
before running scons.
|
|
||||||
|
|
||||||
Adding platform is fairly simple. You need to change the Sconstruct file
|
where `PLTFRM` may be one of:
|
||||||
to do so.
|
|
||||||
|
* `suncc`: Sun C++ (Solaris)
|
||||||
|
* `vacpp`: Visual Age C++ (AIX)
|
||||||
|
* `mingw`
|
||||||
|
* `msvc6`: Microsoft Visual Studio 6 service pack 5-6
|
||||||
|
* `msvc70`: Microsoft Visual Studio 2002
|
||||||
|
* `msvc71`: Microsoft Visual Studio 2003
|
||||||
|
* `msvc80`: Microsoft Visual Studio 2005
|
||||||
|
* `msvc90`: Microsoft Visual Studio 2008
|
||||||
|
* `linux-gcc`: Gnu C++ (linux, also reported to work for Mac OS X)
|
||||||
|
|
||||||
|
If you are building with Microsoft Visual Studio 2008, you need to set up the
|
||||||
|
environment by running `vcvars32.bat` (e.g. MSVC 2008 command prompt) before
|
||||||
|
running SCons.
|
||||||
|
|
||||||
and TARGET may be:
|
|
||||||
check: build library and run unit tests.
|
|
||||||
|
|
||||||
Running the test manually
|
Running the test manually
|
||||||
-------------------------
|
-------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user