Skip to content

Commit 49ed6c9

Browse files
committed
Gave the scons section a makeover.
1 parent 38c9826 commit 49ed6c9

File tree

1 file changed

+32
-34
lines changed

1 file changed

+32
-34
lines changed

README.md

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -74,40 +74,38 @@ By default CMake hides compilation commands. This can be modified by specifying
7474
`-DCMAKE_VERBOSE_MAKEFILE=true` when generating makefiles.
7575

7676

77-
Building/Testing with the legacy build system based on SCons
78-
------------------------------------------------------------
79-
80-
JsonCpp uses Scons (http://www.scons.org) as a build system. Scons requires
81-
python to be installed (http://www.python.org).
82-
83-
You download scons-local distribution from the following url:
84-
http://sourceforge.net/projects/scons/files/scons-local/1.2.0/
85-
86-
Unzip it in the directory where you found this README file. scons.py Should be
87-
at the same level as README.
88-
89-
python scons.py platform=PLTFRM [TARGET]
90-
where PLTFRM may be one of:
91-
suncc Sun C++ (Solaris)
92-
vacpp Visual Age C++ (AIX)
93-
mingw
94-
msvc6 Microsoft Visual Studio 6 service pack 5-6
95-
msvc70 Microsoft Visual Studio 2002
96-
msvc71 Microsoft Visual Studio 2003
97-
msvc80 Microsoft Visual Studio 2005
98-
msvc90 Microsoft Visual Studio 2008
99-
linux-gcc Gnu C++ (linux, also reported to work for Mac OS X)
100-
101-
Notes: if you are building with Microsoft Visual Studio 2008, you need to
102-
setup the environment by running vcvars32.bat (e.g. MSVC 2008 command prompt)
103-
before running scons.
104-
105-
Adding platform is fairly simple. You need to change the Sconstruct file
106-
to do so.
107-
108-
and TARGET may be:
109-
check: build library and run unit tests.
110-
77+
Building and testing with SCons
78+
-------------------------------
79+
80+
**Note:** The SCons-based build system is deprecated. Please use CMake; see the
81+
section above.
82+
83+
JsonCpp can use [Scons][] as a build system. Note that SCons requires python to
84+
be installed.
85+
86+
[SCons]: http://www.scons.org/
87+
88+
Invoke SCons as follows:
89+
90+
scons platform=PLTFRM [TARGET]
91+
92+
where `PLTFRM` may be one of:
93+
94+
* `suncc`: Sun C++ (Solaris)
95+
* `vacpp`: Visual Age C++ (AIX)
96+
* `mingw`
97+
* `msvc6`: Microsoft Visual Studio 6 service pack 5-6
98+
* `msvc70`: Microsoft Visual Studio 2002
99+
* `msvc71`: Microsoft Visual Studio 2003
100+
* `msvc80`: Microsoft Visual Studio 2005
101+
* `msvc90`: Microsoft Visual Studio 2008
102+
* `linux-gcc`: Gnu C++ (linux, also reported to work for Mac OS X)
103+
104+
If you are building with Microsoft Visual Studio 2008, you need to set up the
105+
environment by running `vcvars32.bat` (e.g. MSVC 2008 command prompt) before
106+
running SCons.
107+
108+
111109
Running the test manually
112110
-------------------------
113111

0 commit comments

Comments
 (0)