diff options
author | Steven Knight <knight@baldmt.com> | 2003-01-09 05:29:53 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-01-09 05:29:53 (GMT) |
commit | 270b93aea9b0543094f95bdb22c914e1189c31d1 (patch) | |
tree | 37cd2c8844687f1dc33839a3e7f3e7b923fc0ff1 /doc | |
parent | 61a74e9d5770e83b296356700c128bd3dd59601e (diff) | |
download | SCons-270b93aea9b0543094f95bdb22c914e1189c31d1.zip SCons-270b93aea9b0543094f95bdb22c914e1189c31d1.tar.gz SCons-270b93aea9b0543094f95bdb22c914e1189c31d1.tar.bz2 |
Add MinGW support. (Anthony Roach)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man/scons.1 | 44 |
1 files changed, 31 insertions, 13 deletions
diff --git a/doc/man/scons.1 b/doc/man/scons.1 index fb5af36..a2f265f 100644 --- a/doc/man/scons.1 +++ b/doc/man/scons.1 @@ -777,6 +777,7 @@ gnulink latex lex masm +mingw mslib mslink msvc @@ -788,9 +789,11 @@ tex yacc .EE -On posix and cygwin platforms the GNU tools (e.g. gcc) are preferred by SCons, -on win32 the Microsoft tools (e.g. msvc) are preferred by SCons, and in OS/2 the IBM -tools (e.g. icc) are preferred by SCons. +On posix and cygwin platforms +the GNU tools (e.g. gcc) are preferred by SCons, +on win32 the Microsoft tools (e.g. msvc) +followed by MinGW are preferred by SCons, +and in OS/2 the IBM tools (e.g. icc) are preferred by SCons. .SS Builder Methods @@ -1022,10 +1025,13 @@ env.Program(target = 'foo', source = ['foo.o', 'bar.c', 'baz.f']) .EE .IP RES -Builds a Microsoft Visual C++ resource file. This builder is only -provided when Microsoft Visual C++ is being used as the compiler. The +Builds a Microsoft Visual C++ resource file. +This builder is only provided +when Microsoft Visual C++ or MinGW is being used as the compiler. The .I .res -suffix is added to the target name if no other suffix is given. The source +(or +.I .o +for MinGW) suffix is added to the target name if no other suffix is given. The source file is scanned for implicit dependencies as though it were a C file. Example: .ES @@ -2123,17 +2129,11 @@ if a .def file is not already listed as a build target. The default is 0 (do not build a .def file). .IP WIN32DEFPREFIX -The prefix used to build WIN32 .def files. +The prefix used for WIN32 .def file names. .IP WIN32DEFSUFFIX The suffix used for WIN32 .def file names. -.IP WIN32DLLPREFIX -The prefix used to build WIN32 shared libraries (.dll files). - -.IP WIN32IMPLIBPREFIX -The prefix used to build WIN32 import libraries. - .IP YACC The parser generator. @@ -3352,6 +3352,24 @@ or by creating a wrapper shell script named .B scons . +.SS MinGW + +The MinGW bin directory must be in your PATH environment variable or the +PATH variable under the ENV construction variable for SCons +to detect and use the MinGW tools. When running under the native Windows +Python interpreter, SCons will prefer the MinGW tools over the Cygwin +tools, if they are both installed, regardless of the order of the bin +directories in the PATH variable. If you have both MSVC and MinGW +installed and you want to use MinGW instead of MSVC, +then you must explictly tell SCons to use MinGW by passing + +.ES +tools=['mingw'] +.EE + +to the Environment() function, because SCons will prefer the MSVC tools +over the MinGW tools. + .SH EXAMPLES To help you get started using SCons, |