From f8b8eb1c52abbfefd004e2e61d646f08f287f99e Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 20 Oct 2014 22:18:07 -0700 Subject: [PATCH] upgrade scons to 2.3.4 --- scons/scons-LICENSE | 2 +- scons/scons-README | 2 +- scons/scons-local-2.3.1/SCons/Tool/dmd.py | 240 ------------------ .../SCons/Action.py | 9 +- .../SCons/Builder.py | 4 +- .../SCons/CacheDir.py | 4 +- .../SCons/Conftest.py | 0 .../SCons/Debug.py | 4 +- .../SCons/Defaults.py | 42 ++- .../SCons/Environment.py | 50 +++- .../SCons/Errors.py | 4 +- .../SCons/Executor.py | 4 +- .../SCons/Job.py | 4 +- .../SCons/Memoize.py | 4 +- .../SCons/Node/Alias.py | 4 +- .../SCons/Node/FS.py | 4 +- .../SCons/Node/Python.py | 4 +- .../SCons/Node/__init__.py | 4 +- .../SCons/Options/BoolOption.py | 4 +- .../SCons/Options/EnumOption.py | 4 +- .../SCons/Options/ListOption.py | 4 +- .../SCons/Options/PackageOption.py | 4 +- .../SCons/Options/PathOption.py | 4 +- .../SCons/Options/__init__.py | 4 +- .../SCons/PathList.py | 4 +- .../SCons/Platform/__init__.py | 7 +- .../SCons/Platform/aix.py | 44 +++- .../SCons/Platform/cygwin.py | 4 +- .../SCons/Platform/darwin.py | 4 +- .../SCons/Platform/hpux.py | 4 +- .../SCons/Platform/irix.py | 4 +- .../SCons/Platform/os2.py | 4 +- .../SCons/Platform/posix.py | 8 +- .../SCons/Platform/sunos.py | 4 +- .../SCons/Platform/win32.py | 4 +- .../SCons/SConf.py | 32 ++- .../SCons/SConsign.py | 4 +- .../SCons/Scanner/C.py | 4 +- .../SCons/Scanner/D.py | 4 +- .../SCons/Scanner/Dir.py | 4 +- .../SCons/Scanner/Fortran.py | 4 +- .../SCons/Scanner/IDL.py | 4 +- .../SCons/Scanner/LaTeX.py | 4 +- .../SCons/Scanner/Prog.py | 4 +- .../SCons/Scanner/RC.py | 4 +- .../SCons/Scanner/__init__.py | 4 +- .../SCons/Script/Interactive.py | 4 +- .../SCons/Script/Main.py | 79 +++--- .../SCons/Script/SConsOptions.py | 4 +- .../SCons/Script/SConscript.py | 9 +- .../SCons/Script/__init__.py | 4 +- .../SCons/Sig.py | 4 +- .../SCons/Subst.py | 4 +- .../SCons/Taskmaster.py | 4 +- .../SCons/Tool/386asm.py | 4 +- .../SCons/Tool/BitKeeper.py | 4 +- .../SCons/Tool/CVS.py | 4 +- scons/scons-local-2.3.4/SCons/Tool/DCommon.py | 56 ++++ .../SCons/Tool/FortranCommon.py | 4 +- .../SCons/Tool/GettextCommon.py | 4 +- .../SCons/Tool/JavaCommon.py | 11 +- .../SCons/Tool/MSCommon/__init__.py | 4 +- .../SCons/Tool/MSCommon/arch.py | 4 +- .../SCons/Tool/MSCommon/common.py | 4 +- .../SCons/Tool/MSCommon/netframework.py | 4 +- .../SCons/Tool/MSCommon/sdk.py | 4 +- .../SCons/Tool/MSCommon/vc.py | 30 ++- .../SCons/Tool/MSCommon/vs.py | 103 ++++---- .../SCons/Tool/Perforce.py | 4 +- .../SCons/Tool/PharLapCommon.py | 4 +- .../SCons/Tool/RCS.py | 4 +- .../SCons/Tool/SCCS.py | 4 +- .../SCons/Tool/Subversion.py | 4 +- .../SCons/Tool/__init__.py | 18 +- .../SCons/Tool/aixc++.py | 29 +-- .../SCons/Tool/aixcc.py | 22 +- .../SCons/Tool/aixf77.py | 4 +- .../SCons/Tool/aixlink.py | 19 +- .../SCons/Tool/applelink.py | 4 +- .../SCons/Tool/ar.py | 4 +- .../SCons/Tool/as.py | 4 +- .../SCons/Tool/bcc32.py | 4 +- .../SCons/Tool/c++.py | 9 +- .../SCons/Tool/cc.py | 11 +- .../SCons/Tool/cvf.py | 4 +- .../SCons/Tool/cyglink.py | 0 .../SCons/Tool/default.py | 4 +- scons/scons-local-2.3.4/SCons/Tool/dmd.py | 152 +++++++++++ .../SCons/Tool/docbook/__init__.py | 9 +- .../SCons/Tool/dvi.py | 4 +- .../SCons/Tool/dvipdf.py | 4 +- .../SCons/Tool/dvips.py | 4 +- .../SCons/Tool/f03.py | 4 +- .../SCons/Tool/f77.py | 4 +- .../SCons/Tool/f90.py | 4 +- .../SCons/Tool/f95.py | 4 +- .../SCons/Tool/filesystem.py | 4 +- .../SCons/Tool/fortran.py | 4 +- .../SCons/Tool/g++.py | 34 +-- .../SCons/Tool/g77.py | 4 +- .../SCons/Tool/gas.py | 4 +- .../SCons/Tool/gcc.py | 62 +++-- scons/scons-local-2.3.4/SCons/Tool/gdc.py | 128 ++++++++++ .../SCons/Tool/gettext.py | 4 +- .../SCons/Tool/gfortran.py | 4 +- .../SCons/Tool/gnulink.py | 15 +- .../SCons/Tool/gs.py | 4 +- .../SCons/Tool/hpc++.py | 4 +- .../SCons/Tool/hpcc.py | 4 +- .../SCons/Tool/hplink.py | 4 +- .../SCons/Tool/icc.py | 4 +- .../SCons/Tool/icl.py | 4 +- .../SCons/Tool/ifl.py | 4 +- .../SCons/Tool/ifort.py | 4 +- .../SCons/Tool/ilink.py | 4 +- .../SCons/Tool/ilink32.py | 4 +- .../SCons/Tool/install.py | 4 +- .../SCons/Tool/intelc.py | 66 ++++- .../SCons/Tool/ipkg.py | 4 +- .../SCons/Tool/jar.py | 4 +- .../SCons/Tool/javac.py | 4 +- .../SCons/Tool/javah.py | 4 +- .../SCons/Tool/latex.py | 4 +- scons/scons-local-2.3.4/SCons/Tool/ldc.py | 141 ++++++++++ .../SCons/Tool/lex.py | 4 +- .../SCons/Tool/link.py | 19 +- .../SCons/Tool/linkloc.py | 4 +- .../SCons/Tool/m4.py | 4 +- .../SCons/Tool/masm.py | 4 +- .../SCons/Tool/midl.py | 4 +- .../SCons/Tool/mingw.py | 4 +- .../SCons/Tool/msgfmt.py | 4 +- .../SCons/Tool/msginit.py | 4 +- .../SCons/Tool/msgmerge.py | 4 +- .../SCons/Tool/mslib.py | 4 +- .../SCons/Tool/mslink.py | 4 +- .../SCons/Tool/mssdk.py | 4 +- .../SCons/Tool/msvc.py | 4 +- .../SCons/Tool/msvs.py | 4 +- .../SCons/Tool/mwcc.py | 4 +- .../SCons/Tool/mwld.py | 4 +- .../SCons/Tool/nasm.py | 4 +- .../SCons/Tool/packaging/__init__.py | 4 +- .../SCons/Tool/packaging/ipk.py | 4 +- .../SCons/Tool/packaging/msi.py | 4 +- .../SCons/Tool/packaging/rpm.py | 6 +- .../SCons/Tool/packaging/src_tarbz2.py | 4 +- .../SCons/Tool/packaging/src_targz.py | 4 +- .../SCons/Tool/packaging/src_zip.py | 4 +- .../SCons/Tool/packaging/tarbz2.py | 4 +- .../SCons/Tool/packaging/targz.py | 4 +- .../SCons/Tool/packaging/zip.py | 4 +- .../SCons/Tool/pdf.py | 4 +- .../SCons/Tool/pdflatex.py | 4 +- .../SCons/Tool/pdftex.py | 4 +- .../SCons/Tool/qt.py | 4 +- .../SCons/Tool/rmic.py | 4 +- .../SCons/Tool/rpcgen.py | 4 +- .../SCons/Tool/rpm.py | 4 +- .../SCons/Tool/rpmutils.py | 34 ++- .../SCons/Tool/sgiar.py | 4 +- .../SCons/Tool/sgic++.py | 4 +- .../SCons/Tool/sgicc.py | 4 +- .../SCons/Tool/sgilink.py | 4 +- .../SCons/Tool/sunar.py | 4 +- .../SCons/Tool/sunc++.py | 4 +- .../SCons/Tool/suncc.py | 4 +- .../SCons/Tool/sunf77.py | 4 +- .../SCons/Tool/sunf90.py | 4 +- .../SCons/Tool/sunf95.py | 4 +- .../SCons/Tool/sunlink.py | 4 +- .../SCons/Tool/swig.py | 7 +- .../SCons/Tool/tar.py | 4 +- .../SCons/Tool/tex.py | 18 +- .../SCons/Tool/textfile.py | 4 +- .../SCons/Tool/tlib.py | 4 +- .../SCons/Tool/wix.py | 4 +- .../SCons/Tool/xgettext.py | 4 +- .../SCons/Tool/yacc.py | 4 +- .../SCons/Tool/zip.py | 4 +- .../SCons/Util.py | 4 +- .../SCons/Variables/BoolVariable.py | 4 +- .../SCons/Variables/EnumVariable.py | 4 +- .../SCons/Variables/ListVariable.py | 4 +- .../SCons/Variables/PackageVariable.py | 4 +- .../SCons/Variables/PathVariable.py | 4 +- .../SCons/Variables/__init__.py | 4 +- .../SCons/Warnings.py | 7 +- .../SCons/__init__.py | 8 +- .../SCons/compat/__init__.py | 4 +- .../SCons/compat/_scons_builtins.py | 4 +- .../SCons/compat/_scons_collections.py | 4 +- .../SCons/compat/_scons_dbm.py | 4 +- .../SCons/compat/_scons_hashlib.py | 4 +- .../SCons/compat/_scons_io.py | 4 +- .../SCons/compat/_scons_sets.py | 0 .../SCons/compat/_scons_subprocess.py | 0 .../SCons/cpp.py | 11 +- .../SCons/dblite.py | 0 .../SCons/exitfuncs.py | 4 +- .../scons-2.3.4.egg-info} | 2 +- scons/scons-time.py | 4 +- scons/scons.py | 27 +- scons/sconsign.py | 8 +- 204 files changed, 1343 insertions(+), 875 deletions(-) delete mode 100644 scons/scons-local-2.3.1/SCons/Tool/dmd.py rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Action.py (99%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Builder.py (99%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/CacheDir.py (97%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Conftest.py (100%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Debug.py (97%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Defaults.py (94%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Environment.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Errors.py (97%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Executor.py (99%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Job.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Memoize.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Node/Alias.py (95%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Node/FS.py (99%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Node/Python.py (95%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Node/__init__.py (99%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Options/BoolOption.py (89%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Options/EnumOption.py (89%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Options/ListOption.py (89%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Options/PackageOption.py (93%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Options/PathOption.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Options/__init__.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/PathList.py (97%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Platform/__init__.py (97%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Platform/aix.py (59%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Platform/cygwin.py (90%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Platform/darwin.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Platform/hpux.py (88%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Platform/irix.py (88%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Platform/os2.py (91%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Platform/posix.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Platform/sunos.py (89%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Platform/win32.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/SConf.py (97%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/SConsign.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Scanner/C.py (96%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Scanner/D.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Scanner/Dir.py (94%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Scanner/Fortran.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Scanner/IDL.py (89%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Scanner/LaTeX.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Scanner/Prog.py (94%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Scanner/RC.py (90%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Scanner/__init__.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Script/Interactive.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Script/Main.py (96%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Script/SConsOptions.py (99%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Script/SConscript.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Script/__init__.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Sig.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Subst.py (99%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Taskmaster.py (99%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/386asm.py (91%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/BitKeeper.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/CVS.py (93%) create mode 100644 scons/scons-local-2.3.4/SCons/Tool/DCommon.py rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/FortranCommon.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/GettextCommon.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/JavaCommon.py (97%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/MSCommon/__init__.py (93%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/MSCommon/arch.py (90%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/MSCommon/common.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/MSCommon/netframework.py (94%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/MSCommon/sdk.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/MSCommon/vc.py (93%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/MSCommon/vs.py (86%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/Perforce.py (94%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/PharLapCommon.py (96%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/RCS.py (91%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/SCCS.py (91%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/Subversion.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/__init__.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/aixc++.py (72%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/aixcc.py (78%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/aixf77.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/aixlink.py (80%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/applelink.py (93%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/ar.py (91%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/as.py (93%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/bcc32.py (93%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/c++.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/cc.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/cvf.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/cyglink.py (100%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/default.py (88%) create mode 100644 scons/scons-local-2.3.4/SCons/Tool/dmd.py rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/docbook/__init__.py (99%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/dvi.py (91%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/dvipdf.py (95%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/dvips.py (94%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/f03.py (90%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/f77.py (90%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/f90.py (90%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/f95.py (90%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/filesystem.py (94%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/fortran.py (90%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/g++.py (66%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/g77.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/gas.py (89%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/gcc.py (53%) create mode 100644 scons/scons-local-2.3.4/SCons/Tool/gdc.py rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/gettext.py (90%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/gfortran.py (91%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/gnulink.py (78%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/gs.py (93%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/hpc++.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/hpcc.py (89%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/hplink.py (91%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/icc.py (91%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/icl.py (90%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/ifl.py (93%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/ifort.py (94%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/ilink.py (90%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/ilink32.py (90%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/install.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/intelc.py (88%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/ipkg.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/jar.py (95%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/javac.py (97%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/javah.py (95%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/latex.py (92%) create mode 100644 scons/scons-local-2.3.4/SCons/Tool/ldc.py rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/lex.py (94%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/link.py (94%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/linkloc.py (95%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/m4.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/masm.py (93%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/midl.py (93%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/mingw.py (97%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/msgfmt.py (95%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/msginit.py (95%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/msgmerge.py (95%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/mslib.py (91%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/mslink.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/mssdk.py (89%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/msvc.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/msvs.py (99%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/mwcc.py (97%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/mwld.py (94%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/nasm.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/packaging/__init__.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/packaging/ipk.py (96%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/packaging/msi.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/packaging/rpm.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/packaging/src_tarbz2.py (91%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/packaging/src_targz.py (91%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/packaging/src_zip.py (91%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/packaging/tarbz2.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/packaging/targz.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/packaging/zip.py (88%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/pdf.py (93%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/pdflatex.py (93%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/pdftex.py (94%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/qt.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/rmic.py (95%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/rpcgen.py (93%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/rpm.py (95%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/rpmutils.py (95%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/sgiar.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/sgic++.py (90%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/sgicc.py (89%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/sgilink.py (91%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/sunar.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/sunc++.py (95%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/suncc.py (90%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/sunf77.py (91%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/sunf90.py (91%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/sunf95.py (91%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/sunlink.py (91%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/swig.py (96%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/tar.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/tex.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/textfile.py (96%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/tlib.py (89%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/wix.py (94%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/xgettext.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/yacc.py (96%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Tool/zip.py (94%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Util.py (99%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Variables/BoolVariable.py (95%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Variables/EnumVariable.py (96%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Variables/ListVariable.py (96%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Variables/PackageVariable.py (95%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Variables/PathVariable.py (97%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Variables/__init__.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/Warnings.py (97%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/__init__.py (84%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/compat/__init__.py (97%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/compat/_scons_builtins.py (96%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/compat/_scons_collections.py (92%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/compat/_scons_dbm.py (88%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/compat/_scons_hashlib.py (94%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/compat/_scons_io.py (89%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/compat/_scons_sets.py (100%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/compat/_scons_subprocess.py (100%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/cpp.py (98%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/dblite.py (100%) rename scons/{scons-local-2.3.1 => scons-local-2.3.4}/SCons/exitfuncs.py (91%) rename scons/{scons-local-2.3.1/scons-2.3.1.egg-info => scons-local-2.3.4/scons-2.3.4.egg-info} (96%) diff --git a/scons/scons-LICENSE b/scons/scons-LICENSE index cc52c8dd4..bb3f4e6c5 100644 --- a/scons/scons-LICENSE +++ b/scons/scons-LICENSE @@ -3,7 +3,7 @@ This copyright and license do not apply to any other software with which this software may have been included. -Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +Copyright (c) 2001 - 2014 The SCons Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/scons/scons-README b/scons/scons-README index fb723561e..d268e671a 100644 --- a/scons/scons-README +++ b/scons/scons-README @@ -1,4 +1,4 @@ -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation SCons - a software construction tool diff --git a/scons/scons-local-2.3.1/SCons/Tool/dmd.py b/scons/scons-local-2.3.1/SCons/Tool/dmd.py deleted file mode 100644 index 67355b1ad..000000000 --- a/scons/scons-local-2.3.1/SCons/Tool/dmd.py +++ /dev/null @@ -1,240 +0,0 @@ -"""SCons.Tool.dmd - -Tool-specific initialization for the Digital Mars D compiler. -(http://digitalmars.com/d) - -Coded by Andy Friesen (andy@ikagames.com) -15 November 2003 - -Amended by Russel Winder (russel@russel.org.uk) -2010-02-07 - -There are a number of problems with this script at this point in time. -The one that irritates me the most is the Windows linker setup. The D -linker doesn't have a way to add lib paths on the commandline, as far -as I can see. You have to specify paths relative to the SConscript or -use absolute paths. To hack around it, add '#/blah'. This will link -blah.lib from the directory where SConstruct resides. - -Compiler variables: - DC - The name of the D compiler to use. Defaults to dmd or gdmd, - whichever is found. - DPATH - List of paths to search for import modules. - DVERSIONS - List of version tags to enable when compiling. - DDEBUG - List of debug tags to enable when compiling. - -Linker related variables: - LIBS - List of library files to link in. - DLINK - Name of the linker to use. Defaults to dmd or gdmd. - DLINKFLAGS - List of linker flags. - -Lib tool variables: - DLIB - Name of the lib tool to use. Defaults to lib. - DLIBFLAGS - List of flags to pass to the lib tool. - LIBS - Same as for the linker. (libraries to pull into the .lib) -""" - -# -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY -# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE -# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# - -__revision__ = "src/engine/SCons/Tool/dmd.py 2014/03/02 14:18:15 garyo" - -import os - -import SCons.Action -import SCons.Builder -import SCons.Defaults -import SCons.Scanner.D -import SCons.Tool - -# Adapted from c++.py -def isD(source): - if not source: - return 0 - - for s in source: - if s.sources: - ext = os.path.splitext(str(s.sources[0]))[1] - if ext == '.d': - return 1 - return 0 - -smart_link = {} - -smart_lib = {} - -def generate(env): - global smart_link - global smart_lib - - static_obj, shared_obj = SCons.Tool.createObjBuilders(env) - - DAction = SCons.Action.Action('$DCOM', '$DCOMSTR') - - static_obj.add_action('.d', DAction) - shared_obj.add_action('.d', DAction) - static_obj.add_emitter('.d', SCons.Defaults.StaticObjectEmitter) - shared_obj.add_emitter('.d', SCons.Defaults.SharedObjectEmitter) - - dc = env.Detect(['dmd', 'gdmd']) - env['DC'] = dc - env['DCOM'] = '$DC $_DINCFLAGS $_DVERFLAGS $_DDEBUGFLAGS $_DFLAGS -c -of$TARGET $SOURCES' - env['_DINCFLAGS'] = '$( ${_concat(DINCPREFIX, DPATH, DINCSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)' - env['_DVERFLAGS'] = '$( ${_concat(DVERPREFIX, DVERSIONS, DVERSUFFIX, __env__)} $)' - env['_DDEBUGFLAGS'] = '$( ${_concat(DDEBUGPREFIX, DDEBUG, DDEBUGSUFFIX, __env__)} $)' - env['_DFLAGS'] = '$( ${_concat(DFLAGPREFIX, DFLAGS, DFLAGSUFFIX, __env__)} $)' - - env['DPATH'] = ['#/'] - env['DFLAGS'] = [] - env['DVERSIONS'] = [] - env['DDEBUG'] = [] - - if dc: - # Add the path to the standard library. - # This is merely for the convenience of the dependency scanner. - dmd_path = env.WhereIs(dc) - if dmd_path: - x = dmd_path.rindex(dc) - phobosDir = dmd_path[:x] + '/../src/phobos' - if os.path.isdir(phobosDir): - env.Append(DPATH = [phobosDir]) - - env['DINCPREFIX'] = '-I' - env['DINCSUFFIX'] = '' - env['DVERPREFIX'] = '-version=' - env['DVERSUFFIX'] = '' - env['DDEBUGPREFIX'] = '-debug=' - env['DDEBUGSUFFIX'] = '' - env['DFLAGPREFIX'] = '-' - env['DFLAGSUFFIX'] = '' - env['DFILESUFFIX'] = '.d' - - # Need to use the Digital Mars linker/lib on windows. - # *nix can just use GNU link. - if env['PLATFORM'] == 'win32': - env['DLINK'] = '$DC' - env['DLINKCOM'] = '$DLINK -of$TARGET $SOURCES $DFLAGS $DLINKFLAGS $_DLINKLIBFLAGS' - env['DLIB'] = 'lib' - env['DLIBCOM'] = '$DLIB $_DLIBFLAGS -c $TARGET $SOURCES $_DLINKLIBFLAGS' - - env['_DLINKLIBFLAGS'] = '$( ${_concat(DLIBLINKPREFIX, LIBS, DLIBLINKSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)' - env['_DLIBFLAGS'] = '$( ${_concat(DLIBFLAGPREFIX, DLIBFLAGS, DLIBFLAGSUFFIX, __env__)} $)' - env['DLINKFLAGS'] = [] - env['DLIBLINKPREFIX'] = '' - env['DLIBLINKSUFFIX'] = '.lib' - env['DLIBFLAGPREFIX'] = '-' - env['DLIBFLAGSUFFIX'] = '' - env['DLINKFLAGPREFIX'] = '-' - env['DLINKFLAGSUFFIX'] = '' - - SCons.Tool.createStaticLibBuilder(env) - - # Basically, we hijack the link and ar builders with our own. - # these builders check for the presence of D source, and swap out - # the system's defaults for the Digital Mars tools. If there's no D - # source, then we silently return the previous settings. - linkcom = env.get('LINKCOM') - try: - env['SMART_LINKCOM'] = smart_link[linkcom] - except KeyError: - def _smartLink(source, target, env, for_signature, - defaultLinker=linkcom): - if isD(source): - # XXX I'm not sure how to add a $DLINKCOMSTR variable - # so that it works with this _smartLink() logic, - # and I don't have a D compiler/linker to try it out, - # so we'll leave it alone for now. - return '$DLINKCOM' - else: - return defaultLinker - env['SMART_LINKCOM'] = smart_link[linkcom] = _smartLink - - arcom = env.get('ARCOM') - try: - env['SMART_ARCOM'] = smart_lib[arcom] - except KeyError: - def _smartLib(source, target, env, for_signature, - defaultLib=arcom): - if isD(source): - # XXX I'm not sure how to add a $DLIBCOMSTR variable - # so that it works with this _smartLib() logic, and - # I don't have a D compiler/archiver to try it out, - # so we'll leave it alone for now. - return '$DLIBCOM' - else: - return defaultLib - env['SMART_ARCOM'] = smart_lib[arcom] = _smartLib - - # It is worth noting that the final space in these strings is - # absolutely pivotal. SCons sees these as actions and not generators - # if it is not there. (very bad) - env['ARCOM'] = '$SMART_ARCOM ' - env['LINKCOM'] = '$SMART_LINKCOM ' - else: # assuming linux - linkcom = env.get('LINKCOM') - try: - env['SMART_LINKCOM'] = smart_link[linkcom] - except KeyError: - def _smartLink(source, target, env, for_signature, - defaultLinker=linkcom, dc=dc): - if isD(source): - try: - libs = env['LIBS'] - except KeyError: - libs = [] - if dc == 'dmd': - # TODO: This assumes that the dmd executable is in the - # bin directory and that the libraries are in a peer - # directory lib. This true of the Digital Mars - # distribution but . . . - import glob - dHome = env.WhereIs(dc).replace('/dmd' , '/..') - if glob.glob(dHome + '/lib/*phobos2*'): - if 'phobos2' not in libs: - env.Append(LIBPATH = [dHome + '/lib']) - env.Append(LIBS = ['phobos2']) - # TODO: Find out when there will be a - # 64-bit version of D. - env.Append(LINKFLAGS = ['-m32']) - else: - if 'phobos' not in libs: - env.Append(LIBS = ['phobos']) - elif dc is 'gdmd': - env.Append(LIBS = ['gphobos']) - if 'pthread' not in libs: - env.Append(LIBS = ['pthread']) - if 'm' not in libs: - env.Append(LIBS = ['m']) - return defaultLinker - env['SMART_LINKCOM'] = smart_link[linkcom] = _smartLink - - env['LINKCOM'] = '$SMART_LINKCOM ' - -def exists(env): - return env.Detect(['dmd', 'gdmd']) - -# Local Variables: -# tab-width:4 -# indent-tabs-mode:nil -# End: -# vim: set expandtab tabstop=4 shiftwidth=4: diff --git a/scons/scons-local-2.3.1/SCons/Action.py b/scons/scons-local-2.3.4/SCons/Action.py similarity index 99% rename from scons/scons-local-2.3.1/SCons/Action.py rename to scons/scons-local-2.3.4/SCons/Action.py index 0e31124c8..aec164f15 100644 --- a/scons/scons-local-2.3.1/SCons/Action.py +++ b/scons/scons-local-2.3.4/SCons/Action.py @@ -76,7 +76,7 @@ way for wrapping up the functions. """ -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -97,7 +97,7 @@ way for wrapping up the functions. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Action.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Action.py 2014/09/27 12:51:43 garyo" import SCons.compat @@ -337,7 +337,7 @@ def _do_create_keywords(args, kw): 'You must either pass a string or a callback which ' 'accepts (target, source, env) as parameters.') if len(args) > 1: - kw['varlist'] = args[1:] + kw['varlist'] + kw['varlist'] = tuple(SCons.Util.flatten(args[1:])) + kw['varlist'] if kw.get('strfunction', _null) is not _null \ and kw.get('cmdstr', _null) is not _null: raise SCons.Errors.UserError( @@ -679,12 +679,13 @@ def _subproc(scons_env, cmd, error = 'ignore', **kw): # return a dummy Popen instance that only returns error class dummyPopen(object): def __init__(self, e): self.exception = e - def communicate(self): return ('','') + def communicate(self,input=None): return ('','') def wait(self): return -self.exception.errno stdin = None class f(object): def read(self): return '' def readline(self): return '' + def __iter__(self): return iter(()) stdout = stderr = f() return dummyPopen(e) diff --git a/scons/scons-local-2.3.1/SCons/Builder.py b/scons/scons-local-2.3.4/SCons/Builder.py similarity index 99% rename from scons/scons-local-2.3.1/SCons/Builder.py rename to scons/scons-local-2.3.4/SCons/Builder.py index 0b5f29171..5bde0379f 100644 --- a/scons/scons-local-2.3.1/SCons/Builder.py +++ b/scons/scons-local-2.3.4/SCons/Builder.py @@ -76,7 +76,7 @@ There are the following methods for internal use within this module: """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -97,7 +97,7 @@ There are the following methods for internal use within this module: # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Builder.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Builder.py 2014/09/27 12:51:43 garyo" import collections diff --git a/scons/scons-local-2.3.1/SCons/CacheDir.py b/scons/scons-local-2.3.4/SCons/CacheDir.py similarity index 97% rename from scons/scons-local-2.3.1/SCons/CacheDir.py rename to scons/scons-local-2.3.4/SCons/CacheDir.py index 8ac8fa986..84ca4dbb3 100644 --- a/scons/scons-local-2.3.1/SCons/CacheDir.py +++ b/scons/scons-local-2.3.4/SCons/CacheDir.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/CacheDir.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/CacheDir.py 2014/09/27 12:51:43 garyo" __doc__ = """ CacheDir support diff --git a/scons/scons-local-2.3.1/SCons/Conftest.py b/scons/scons-local-2.3.4/SCons/Conftest.py similarity index 100% rename from scons/scons-local-2.3.1/SCons/Conftest.py rename to scons/scons-local-2.3.4/SCons/Conftest.py diff --git a/scons/scons-local-2.3.1/SCons/Debug.py b/scons/scons-local-2.3.4/SCons/Debug.py similarity index 97% rename from scons/scons-local-2.3.1/SCons/Debug.py rename to scons/scons-local-2.3.4/SCons/Debug.py index 08d757080..ab38e4b28 100644 --- a/scons/scons-local-2.3.1/SCons/Debug.py +++ b/scons/scons-local-2.3.4/SCons/Debug.py @@ -6,7 +6,7 @@ needed by most users. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -28,7 +28,7 @@ needed by most users. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Debug.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Debug.py 2014/09/27 12:51:43 garyo" import os import sys diff --git a/scons/scons-local-2.3.1/SCons/Defaults.py b/scons/scons-local-2.3.4/SCons/Defaults.py similarity index 94% rename from scons/scons-local-2.3.1/SCons/Defaults.py rename to scons/scons-local-2.3.4/SCons/Defaults.py index dd726f138..89ef1d6c1 100644 --- a/scons/scons-local-2.3.1/SCons/Defaults.py +++ b/scons/scons-local-2.3.4/SCons/Defaults.py @@ -10,7 +10,7 @@ from distutils.msvccompiler. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -33,7 +33,7 @@ from distutils.msvccompiler. # from __future__ import division -__revision__ = "src/engine/SCons/Defaults.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Defaults.py 2014/09/27 12:51:43 garyo" import os @@ -144,6 +144,9 @@ ShCAction = SCons.Action.Action("$SHCCCOM", "$SHCCCOMSTR") CXXAction = SCons.Action.Action("$CXXCOM", "$CXXCOMSTR") ShCXXAction = SCons.Action.Action("$SHCXXCOM", "$SHCXXCOMSTR") +DAction = SCons.Action.Action("$DCOM", "$DCOMSTR") +ShDAction = SCons.Action.Action("$SHDCOM", "$SHDCOMSTR") + ASAction = SCons.Action.Action("$ASCOM", "$ASCOMSTR") ASPPAction = SCons.Action.Action("$ASPPCOM", "$ASPPCOMSTR") @@ -178,20 +181,37 @@ def chmod_strfunc(dest, mode): Chmod = ActionFactory(chmod_func, chmod_strfunc) -def copy_func(dest, src): +def copy_func(dest, src, symlinks=True): + """ + If symlinks (is true), then a symbolic link will be + shallow copied and recreated as a symbolic link; otherwise, copying + a symbolic link will be equivalent to copying the symbolic link's + final target regardless of symbolic link depth. + """ + + dest = str(dest) + src = str(src) + SCons.Node.FS.invalidate_node_memos(dest) if SCons.Util.is_List(src) and os.path.isdir(dest): for file in src: shutil.copy2(file, dest) return 0 + elif os.path.islink(src): + linkto = os.readlink(src) + if symlinks: + return os.symlink(linkto, dest) + else: + return copy_func(dest, linkto, symlinks) elif os.path.isfile(src): return shutil.copy2(src, dest) else: - return shutil.copytree(src, dest, 1) + return shutil.copytree(src, dest, symlinks) -Copy = ActionFactory(copy_func, - lambda dest, src: 'Copy("%s", "%s")' % (dest, src), - convert=str) +Copy = ActionFactory( + copy_func, + lambda dest, src, symlinks=True: 'Copy("%s", "%s")' % (dest, src) +) def delete_func(dest, must_exist=0): SCons.Node.FS.invalidate_node_memos(dest) @@ -321,7 +341,7 @@ def _stripixes(prefix, itms, suffix, stripprefixes, stripsuffixes, env, c=None): where it finds them. This is used by tools (like the GNU linker) that need to turn something like 'libfoo.a' into '-lfoo'. """ - + if not itms: return itms @@ -335,7 +355,7 @@ def _stripixes(prefix, itms, suffix, stripprefixes, stripsuffixes, env, c=None): c = env_c else: c = _concat_ixes - + stripprefixes = list(map(env.subst, SCons.Util.flatten(stripprefixes))) stripsuffixes = list(map(env.subst, SCons.Util.flatten(stripsuffixes))) @@ -413,7 +433,7 @@ def _defines(prefix, defs, suffix, env, c=_concat_ixes): """ return c(prefix, env.subst_path(processDefines(defs)), suffix, env) - + class NullCmdGenerator(object): """This is a callable class that can be used in place of other command generators if you don't want them to do anything. @@ -449,7 +469,7 @@ class Variable_Method_Caller(object): self.method = method def __call__(self, *args, **kw): try: 1//0 - except ZeroDivisionError: + except ZeroDivisionError: # Don't start iterating with the current stack-frame to # prevent creating reference cycles (f_back is safe). frame = sys.exc_info()[2].tb_frame.f_back diff --git a/scons/scons-local-2.3.1/SCons/Environment.py b/scons/scons-local-2.3.4/SCons/Environment.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Environment.py rename to scons/scons-local-2.3.4/SCons/Environment.py index 5644a30dd..45916ad4e 100644 --- a/scons/scons-local-2.3.1/SCons/Environment.py +++ b/scons/scons-local-2.3.4/SCons/Environment.py @@ -10,7 +10,7 @@ Environment """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ Environment # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Environment.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Environment.py 2014/09/27 12:51:43 garyo" import copy @@ -1206,7 +1206,13 @@ class Base(SubstitutionEnvironment): # based on what we think the value looks like. if SCons.Util.is_List(val): if key == 'CPPDEFINES': - orig = orig.items() + tmp = [] + for (k, v) in orig.iteritems(): + if v is not None: + tmp.append((k, v)) + else: + tmp.append((k,)) + orig = tmp orig += val self._dict[key] = orig else: @@ -1286,8 +1292,15 @@ class Base(SubstitutionEnvironment): else: tmp.append((i,)) val = tmp + # Construct a list of (key, value) tuples. if SCons.Util.is_Dict(dk): - dk = dk.items() + tmp = [] + for (k, v) in dk.iteritems(): + if v is not None: + tmp.append((k, v)) + else: + tmp.append((k,)) + dk = tmp elif SCons.Util.is_String(dk): dk = [(dk,)] else: @@ -1327,8 +1340,15 @@ class Base(SubstitutionEnvironment): else: tmp.append((i,)) dk = tmp + # Construct a list of (key, value) tuples. if SCons.Util.is_Dict(val): - val = val.items() + tmp = [] + for (k, v) in val.iteritems(): + if v is not None: + tmp.append((k, v)) + else: + tmp.append((k,)) + val = tmp elif SCons.Util.is_String(val): val = [(val,)] if delete_existing: @@ -1351,7 +1371,13 @@ class Base(SubstitutionEnvironment): if SCons.Util.is_String(dk): dk = [dk] elif SCons.Util.is_Dict(dk): - dk = dk.items() + tmp = [] + for (k, v) in dk.iteritems(): + if v is not None: + tmp.append((k, v)) + else: + tmp.append((k,)) + dk = tmp if SCons.Util.is_String(val): if val in dk: val = [] @@ -1378,10 +1404,8 @@ class Base(SubstitutionEnvironment): (like a function). There are no references to any mutable objects in the original Environment. """ - try: - builders = self._dict['BUILDERS'] - except KeyError: - pass + + builders = self._dict.get('BUILDERS', {}) clone = copy.copy(self) # BUILDERS is not safe to do a simple copy @@ -1803,8 +1827,8 @@ class Base(SubstitutionEnvironment): pass elif SCons.Util.is_String(pathext): pathext = self.subst(pathext) - prog = self.subst(prog) - path = SCons.Util.WhereIs(prog, path, pathext, reject) + prog = SCons.Util.CLVar(self.subst(prog)) # support "program --with-args" + path = SCons.Util.WhereIs(prog[0], path, pathext, reject) if path: return path return None @@ -2149,7 +2173,7 @@ class Base(SubstitutionEnvironment): def SourceCode(self, entry, builder): """Arrange for a source code builder for (part of) a tree.""" msg = """SourceCode() has been deprecated and there is no replacement. -\tIf you need this function, please contact dev@scons.tigris.org.""" +\tIf you need this function, please contact scons-dev@scons.org""" SCons.Warnings.warn(SCons.Warnings.DeprecatedSourceCodeWarning, msg) entries = self.arg2nodes(entry, self.fs.Entry) for entry in entries: diff --git a/scons/scons-local-2.3.1/SCons/Errors.py b/scons/scons-local-2.3.4/SCons/Errors.py similarity index 97% rename from scons/scons-local-2.3.1/SCons/Errors.py rename to scons/scons-local-2.3.4/SCons/Errors.py index bbdfc5703..2c1a13366 100644 --- a/scons/scons-local-2.3.1/SCons/Errors.py +++ b/scons/scons-local-2.3.4/SCons/Errors.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -28,7 +28,7 @@ and user errors in SCons. """ -__revision__ = "src/engine/SCons/Errors.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Errors.py 2014/09/27 12:51:43 garyo" import SCons.Util diff --git a/scons/scons-local-2.3.1/SCons/Executor.py b/scons/scons-local-2.3.4/SCons/Executor.py similarity index 99% rename from scons/scons-local-2.3.1/SCons/Executor.py rename to scons/scons-local-2.3.4/SCons/Executor.py index c9f64e470..ddb814056 100644 --- a/scons/scons-local-2.3.1/SCons/Executor.py +++ b/scons/scons-local-2.3.4/SCons/Executor.py @@ -6,7 +6,7 @@ Nodes. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -27,7 +27,7 @@ Nodes. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Executor.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Executor.py 2014/09/27 12:51:43 garyo" import collections diff --git a/scons/scons-local-2.3.1/SCons/Job.py b/scons/scons-local-2.3.4/SCons/Job.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Job.py rename to scons/scons-local-2.3.4/SCons/Job.py index 43a8ae5c6..070fb5bb6 100644 --- a/scons/scons-local-2.3.1/SCons/Job.py +++ b/scons/scons-local-2.3.4/SCons/Job.py @@ -7,7 +7,7 @@ stop, and wait on jobs. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -29,7 +29,7 @@ stop, and wait on jobs. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Job.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Job.py 2014/09/27 12:51:43 garyo" import SCons.compat diff --git a/scons/scons-local-2.3.1/SCons/Memoize.py b/scons/scons-local-2.3.4/SCons/Memoize.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Memoize.py rename to scons/scons-local-2.3.4/SCons/Memoize.py index 50dce3b76..de4b55808 100644 --- a/scons/scons-local-2.3.1/SCons/Memoize.py +++ b/scons/scons-local-2.3.4/SCons/Memoize.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Memoize.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Memoize.py 2014/09/27 12:51:43 garyo" __doc__ = """Memoizer diff --git a/scons/scons-local-2.3.1/SCons/Node/Alias.py b/scons/scons-local-2.3.4/SCons/Node/Alias.py similarity index 95% rename from scons/scons-local-2.3.1/SCons/Node/Alias.py rename to scons/scons-local-2.3.4/SCons/Node/Alias.py index 0b8f9b0f1..a2a22cc28 100644 --- a/scons/scons-local-2.3.1/SCons/Node/Alias.py +++ b/scons/scons-local-2.3.4/SCons/Node/Alias.py @@ -8,7 +8,7 @@ This creates a hash of global Aliases (dummy targets). """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ This creates a hash of global Aliases (dummy targets). # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Node/Alias.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Node/Alias.py 2014/09/27 12:51:43 garyo" import collections diff --git a/scons/scons-local-2.3.1/SCons/Node/FS.py b/scons/scons-local-2.3.4/SCons/Node/FS.py similarity index 99% rename from scons/scons-local-2.3.1/SCons/Node/FS.py rename to scons/scons-local-2.3.4/SCons/Node/FS.py index f54b0ab62..4b95613ed 100644 --- a/scons/scons-local-2.3.1/SCons/Node/FS.py +++ b/scons/scons-local-2.3.4/SCons/Node/FS.py @@ -11,7 +11,7 @@ that can be used by scripts or modules looking for the canonical default. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -32,7 +32,7 @@ that can be used by scripts or modules looking for the canonical default. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Node/FS.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Node/FS.py 2014/09/27 12:51:43 garyo" import fnmatch import os diff --git a/scons/scons-local-2.3.1/SCons/Node/Python.py b/scons/scons-local-2.3.4/SCons/Node/Python.py similarity index 95% rename from scons/scons-local-2.3.1/SCons/Node/Python.py rename to scons/scons-local-2.3.4/SCons/Node/Python.py index 8936b6d3d..bbf994a4e 100644 --- a/scons/scons-local-2.3.1/SCons/Node/Python.py +++ b/scons/scons-local-2.3.4/SCons/Node/Python.py @@ -5,7 +5,7 @@ Python nodes. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -27,7 +27,7 @@ Python nodes. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Node/Python.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Node/Python.py 2014/09/27 12:51:43 garyo" import SCons.Node diff --git a/scons/scons-local-2.3.1/SCons/Node/__init__.py b/scons/scons-local-2.3.4/SCons/Node/__init__.py similarity index 99% rename from scons/scons-local-2.3.1/SCons/Node/__init__.py rename to scons/scons-local-2.3.4/SCons/Node/__init__.py index e6a300127..01c06f68f 100644 --- a/scons/scons-local-2.3.1/SCons/Node/__init__.py +++ b/scons/scons-local-2.3.4/SCons/Node/__init__.py @@ -20,7 +20,7 @@ be able to depend on any other type of "thing." """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -41,7 +41,7 @@ be able to depend on any other type of "thing." # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Node/__init__.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Node/__init__.py 2014/09/27 12:51:43 garyo" import collections import copy diff --git a/scons/scons-local-2.3.1/SCons/Options/BoolOption.py b/scons/scons-local-2.3.4/SCons/Options/BoolOption.py similarity index 89% rename from scons/scons-local-2.3.1/SCons/Options/BoolOption.py rename to scons/scons-local-2.3.4/SCons/Options/BoolOption.py index cc059445e..f3430aeef 100644 --- a/scons/scons-local-2.3.1/SCons/Options/BoolOption.py +++ b/scons/scons-local-2.3.4/SCons/Options/BoolOption.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Options/BoolOption.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Options/BoolOption.py 2014/09/27 12:51:43 garyo" __doc__ = """Place-holder for the old SCons.Options module hierarchy diff --git a/scons/scons-local-2.3.1/SCons/Options/EnumOption.py b/scons/scons-local-2.3.4/SCons/Options/EnumOption.py similarity index 89% rename from scons/scons-local-2.3.1/SCons/Options/EnumOption.py rename to scons/scons-local-2.3.4/SCons/Options/EnumOption.py index 5ff79ba3a..2a003355f 100644 --- a/scons/scons-local-2.3.1/SCons/Options/EnumOption.py +++ b/scons/scons-local-2.3.4/SCons/Options/EnumOption.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Options/EnumOption.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Options/EnumOption.py 2014/09/27 12:51:43 garyo" __doc__ = """Place-holder for the old SCons.Options module hierarchy diff --git a/scons/scons-local-2.3.1/SCons/Options/ListOption.py b/scons/scons-local-2.3.4/SCons/Options/ListOption.py similarity index 89% rename from scons/scons-local-2.3.1/SCons/Options/ListOption.py rename to scons/scons-local-2.3.4/SCons/Options/ListOption.py index 190dff21d..7d1befc5b 100644 --- a/scons/scons-local-2.3.1/SCons/Options/ListOption.py +++ b/scons/scons-local-2.3.4/SCons/Options/ListOption.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Options/ListOption.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Options/ListOption.py 2014/09/27 12:51:43 garyo" __doc__ = """Place-holder for the old SCons.Options module hierarchy diff --git a/scons/scons-local-2.3.1/SCons/Options/PackageOption.py b/scons/scons-local-2.3.4/SCons/Options/PackageOption.py similarity index 93% rename from scons/scons-local-2.3.1/SCons/Options/PackageOption.py rename to scons/scons-local-2.3.4/SCons/Options/PackageOption.py index 254b491ff..fc193eaa7 100644 --- a/scons/scons-local-2.3.1/SCons/Options/PackageOption.py +++ b/scons/scons-local-2.3.4/SCons/Options/PackageOption.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Options/PackageOption.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Options/PackageOption.py 2014/09/27 12:51:43 garyo" __doc__ = """Place-holder for the old SCons.Options module hierarchy diff --git a/scons/scons-local-2.3.1/SCons/Options/PathOption.py b/scons/scons-local-2.3.4/SCons/Options/PathOption.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Options/PathOption.py rename to scons/scons-local-2.3.4/SCons/Options/PathOption.py index bdde473c9..348fb75fd 100644 --- a/scons/scons-local-2.3.1/SCons/Options/PathOption.py +++ b/scons/scons-local-2.3.4/SCons/Options/PathOption.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Options/PathOption.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Options/PathOption.py 2014/09/27 12:51:43 garyo" __doc__ = """Place-holder for the old SCons.Options module hierarchy diff --git a/scons/scons-local-2.3.1/SCons/Options/__init__.py b/scons/scons-local-2.3.4/SCons/Options/__init__.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Options/__init__.py rename to scons/scons-local-2.3.4/SCons/Options/__init__.py index e704de0d3..56cfbac4e 100644 --- a/scons/scons-local-2.3.1/SCons/Options/__init__.py +++ b/scons/scons-local-2.3.4/SCons/Options/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Options/__init__.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Options/__init__.py 2014/09/27 12:51:43 garyo" __doc__ = """Place-holder for the old SCons.Options module hierarchy diff --git a/scons/scons-local-2.3.1/SCons/PathList.py b/scons/scons-local-2.3.4/SCons/PathList.py similarity index 97% rename from scons/scons-local-2.3.1/SCons/PathList.py rename to scons/scons-local-2.3.4/SCons/PathList.py index 301c72f58..f5fe60c0f 100644 --- a/scons/scons-local-2.3.1/SCons/PathList.py +++ b/scons/scons-local-2.3.4/SCons/PathList.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/PathList.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/PathList.py 2014/09/27 12:51:43 garyo" __doc__ = """SCons.PathList diff --git a/scons/scons-local-2.3.1/SCons/Platform/__init__.py b/scons/scons-local-2.3.4/SCons/Platform/__init__.py similarity index 97% rename from scons/scons-local-2.3.1/SCons/Platform/__init__.py rename to scons/scons-local-2.3.4/SCons/Platform/__init__.py index 25ea93e72..679191ed5 100644 --- a/scons/scons-local-2.3.1/SCons/Platform/__init__.py +++ b/scons/scons-local-2.3.4/SCons/Platform/__init__.py @@ -20,7 +20,7 @@ their own platform definition. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -42,7 +42,7 @@ their own platform definition. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Platform/__init__.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Platform/__init__.py 2014/09/27 12:51:43 garyo" import SCons.compat @@ -173,6 +173,7 @@ class TempFileMunge(object): length = 0 for c in cmd: length += len(c) + length += len(cmd) - 1 if length <= maxline: return self.cmd @@ -187,7 +188,7 @@ class TempFileMunge(object): (fd, tmp) = tempfile.mkstemp('.lnk', text=True) native_tmp = SCons.Util.get_native_path(os.path.normpath(tmp)) - if env['SHELL'] and env['SHELL'] == 'sh': + if env.get('SHELL',None) == 'sh': # The sh shell will try to escape the backslashes in the # path, so unescape them. native_tmp = native_tmp.replace('\\', r'\\\\') diff --git a/scons/scons-local-2.3.1/SCons/Platform/aix.py b/scons/scons-local-2.3.4/SCons/Platform/aix.py similarity index 59% rename from scons/scons-local-2.3.1/SCons/Platform/aix.py rename to scons/scons-local-2.3.4/SCons/Platform/aix.py index 98d4d8f93..f4f1d6e58 100644 --- a/scons/scons-local-2.3.1/SCons/Platform/aix.py +++ b/scons/scons-local-2.3.4/SCons/Platform/aix.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,13 +30,17 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Platform/aix.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Platform/aix.py 2014/09/27 12:51:43 garyo" import os +import subprocess import posix -def get_xlc(env, xlc=None, xlc_r=None, packages=[]): +import SCons.Util +import SCons.Action + +def get_xlc(env, xlc=None, packages=[]): # Use the AIX package installer tool lslpp to figure out where a # given xl* compiler is installed and what version it is. xlcPath = None @@ -44,18 +48,30 @@ def get_xlc(env, xlc=None, xlc_r=None, packages=[]): if xlc is None: xlc = env.get('CC', 'xlc') - if xlc_r is None: - xlc_r = xlc + '_r' + if SCons.Util.is_List(xlc): + xlc = xlc[0] for package in packages: - cmd = "lslpp -fc " + package + " 2>/dev/null | egrep '" + xlc + "([^-_a-zA-Z0-9].*)?$'" - line = os.popen(cmd).readline() - if line: - v, p = line.split(':')[1:3] - xlcVersion = v.split()[1] - xlcPath = p.split()[0] - xlcPath = xlcPath[:xlcPath.rindex('/')] - break - return (xlcPath, xlc, xlc_r, xlcVersion) + # find the installed filename, which may be a symlink as well + pipe = SCons.Action._subproc(env, ['lslpp', '-fc', package], + stdin = 'devnull', + stderr = 'devnull', + stdout = subprocess.PIPE) + # output of lslpp is something like this: + # #Path:Fileset:File + # /usr/lib/objrepos:vac.C 6.0.0.0:/usr/vac/exe/xlCcpp + # /usr/lib/objrepos:vac.C 6.0.0.0:/usr/vac/bin/xlc_r -> /usr/vac/bin/xlc + for line in pipe.stdout: + if xlcPath: + continue # read everything to let lslpp terminate + fileset, filename = line.split(':')[1:3] + filename = filename.split()[0] + if ('/' in xlc and filename == xlc) \ + or ('/' not in xlc and filename.endswith('/' + xlc)): + xlcVersion = fileset.split()[1] + xlcPath, sep, xlc = filename.rpartition('/') + pass + pass + return (xlcPath, xlc, xlcVersion) def generate(env): posix.generate(env) diff --git a/scons/scons-local-2.3.1/SCons/Platform/cygwin.py b/scons/scons-local-2.3.4/SCons/Platform/cygwin.py similarity index 90% rename from scons/scons-local-2.3.1/SCons/Platform/cygwin.py rename to scons/scons-local-2.3.4/SCons/Platform/cygwin.py index 7429407a3..d88eba69a 100644 --- a/scons/scons-local-2.3.1/SCons/Platform/cygwin.py +++ b/scons/scons-local-2.3.4/SCons/Platform/cygwin.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Platform/cygwin.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Platform/cygwin.py 2014/09/27 12:51:43 garyo" import posix from SCons.Platform import TempFileMunge diff --git a/scons/scons-local-2.3.1/SCons/Platform/darwin.py b/scons/scons-local-2.3.4/SCons/Platform/darwin.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Platform/darwin.py rename to scons/scons-local-2.3.4/SCons/Platform/darwin.py index 33078396e..7a98c3c55 100644 --- a/scons/scons-local-2.3.1/SCons/Platform/darwin.py +++ b/scons/scons-local-2.3.4/SCons/Platform/darwin.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Platform/darwin.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Platform/darwin.py 2014/09/27 12:51:43 garyo" import posix import os diff --git a/scons/scons-local-2.3.1/SCons/Platform/hpux.py b/scons/scons-local-2.3.4/SCons/Platform/hpux.py similarity index 88% rename from scons/scons-local-2.3.1/SCons/Platform/hpux.py rename to scons/scons-local-2.3.4/SCons/Platform/hpux.py index 5c003cafb..16def795b 100644 --- a/scons/scons-local-2.3.1/SCons/Platform/hpux.py +++ b/scons/scons-local-2.3.4/SCons/Platform/hpux.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Platform/hpux.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Platform/hpux.py 2014/09/27 12:51:43 garyo" import posix diff --git a/scons/scons-local-2.3.1/SCons/Platform/irix.py b/scons/scons-local-2.3.4/SCons/Platform/irix.py similarity index 88% rename from scons/scons-local-2.3.1/SCons/Platform/irix.py rename to scons/scons-local-2.3.4/SCons/Platform/irix.py index abb2a58be..28af57170 100644 --- a/scons/scons-local-2.3.1/SCons/Platform/irix.py +++ b/scons/scons-local-2.3.4/SCons/Platform/irix.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Platform/irix.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Platform/irix.py 2014/09/27 12:51:43 garyo" import posix diff --git a/scons/scons-local-2.3.1/SCons/Platform/os2.py b/scons/scons-local-2.3.4/SCons/Platform/os2.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/Platform/os2.py rename to scons/scons-local-2.3.4/SCons/Platform/os2.py index 83cd7ef0a..a65511ad3 100644 --- a/scons/scons-local-2.3.1/SCons/Platform/os2.py +++ b/scons/scons-local-2.3.4/SCons/Platform/os2.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Platform/os2.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Platform/os2.py 2014/09/27 12:51:43 garyo" import win32 def generate(env): diff --git a/scons/scons-local-2.3.1/SCons/Platform/posix.py b/scons/scons-local-2.3.4/SCons/Platform/posix.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Platform/posix.py rename to scons/scons-local-2.3.4/SCons/Platform/posix.py index 5deb2d00b..86c08b965 100644 --- a/scons/scons-local-2.3.1/SCons/Platform/posix.py +++ b/scons/scons-local-2.3.4/SCons/Platform/posix.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Platform/posix.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Platform/posix.py 2014/09/27 12:51:43 garyo" import errno import os @@ -113,6 +113,10 @@ def generate(env): # This platform supports RPATH specifications. env['__RPATH'] = '$_RPATH' + # GDC is GCC family, but DMD and LDC have different options. + # Must be able to have GCC and DMD work in the same build, so: + env['__DRPATH'] = '$_DRPATH' + # Local Variables: # tab-width:4 # indent-tabs-mode:nil diff --git a/scons/scons-local-2.3.1/SCons/Platform/sunos.py b/scons/scons-local-2.3.4/SCons/Platform/sunos.py similarity index 89% rename from scons/scons-local-2.3.1/SCons/Platform/sunos.py rename to scons/scons-local-2.3.4/SCons/Platform/sunos.py index 911b97f34..466e0d122 100644 --- a/scons/scons-local-2.3.1/SCons/Platform/sunos.py +++ b/scons/scons-local-2.3.4/SCons/Platform/sunos.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Platform/sunos.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Platform/sunos.py 2014/09/27 12:51:43 garyo" import posix diff --git a/scons/scons-local-2.3.1/SCons/Platform/win32.py b/scons/scons-local-2.3.4/SCons/Platform/win32.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Platform/win32.py rename to scons/scons-local-2.3.4/SCons/Platform/win32.py index b7b65e11e..2416802c0 100644 --- a/scons/scons-local-2.3.1/SCons/Platform/win32.py +++ b/scons/scons-local-2.3.4/SCons/Platform/win32.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Platform/win32.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Platform/win32.py 2014/09/27 12:51:43 garyo" import os import os.path diff --git a/scons/scons-local-2.3.1/SCons/SConf.py b/scons/scons-local-2.3.4/SCons/SConf.py similarity index 97% rename from scons/scons-local-2.3.1/SCons/SConf.py rename to scons/scons-local-2.3.4/SCons/SConf.py index 63f04c392..476bc20f4 100644 --- a/scons/scons-local-2.3.1/SCons/SConf.py +++ b/scons/scons-local-2.3.4/SCons/SConf.py @@ -1,10 +1,18 @@ """SCons.SConf Autoconf-like configuration support. + +In other words, SConf allows to run tests on the build machine to detect +capabilities of system and do some things based on result: generate config +files, header files for C/C++, update variables in environment. + +Tests on the build system can detect if compiler sees header files, if +libraries are installed, if some command line options are supported etc. + """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -26,7 +34,7 @@ Autoconf-like configuration support. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/SConf.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/SConf.py 2014/09/27 12:51:43 garyo" import SCons.compat @@ -110,16 +118,22 @@ def _createConfigH(target, source, env): def _stringConfigH(target, source, env): return "scons: Configure: creating " + str(target[0]) -def CreateConfigHBuilder(env): - """Called just before the building targets phase begins.""" + +def NeedConfigHBuilder(): if len(_ac_config_hs) == 0: - return + return False + else: + return True + +def CreateConfigHBuilder(env): + """Called if necessary just before the building targets phase begins.""" action = SCons.Action.Action(_createConfigH, _stringConfigH) sconfigHBld = SCons.Builder.Builder(action=action) env.Append( BUILDERS={'SConfigHBuilder':sconfigHBld} ) for k in _ac_config_hs.keys(): env.SConfigHBuilder(k, env.Value(_ac_config_hs[k])) + class SConfWarning(SCons.Warnings.Warning): pass @@ -180,7 +194,13 @@ class Streamer(object): def write(self, str): if self.orig: self.orig.write(str) - self.s.write(str) + try: + self.s.write(str) + except TypeError as e: + if e.message.startswith('unicode argument expected'): + self.s.write(str.decode()) + else: + raise def writelines(self, lines): for l in lines: diff --git a/scons/scons-local-2.3.1/SCons/SConsign.py b/scons/scons-local-2.3.4/SCons/SConsign.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/SConsign.py rename to scons/scons-local-2.3.4/SCons/SConsign.py index a0061e877..fbdd9670c 100644 --- a/scons/scons-local-2.3.1/SCons/SConsign.py +++ b/scons/scons-local-2.3.4/SCons/SConsign.py @@ -5,7 +5,7 @@ Writing and reading information to the .sconsign file or files. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -27,7 +27,7 @@ Writing and reading information to the .sconsign file or files. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/SConsign.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/SConsign.py 2014/09/27 12:51:43 garyo" import SCons.compat diff --git a/scons/scons-local-2.3.1/SCons/Scanner/C.py b/scons/scons-local-2.3.4/SCons/Scanner/C.py similarity index 96% rename from scons/scons-local-2.3.1/SCons/Scanner/C.py rename to scons/scons-local-2.3.4/SCons/Scanner/C.py index fedfe236a..0effa3b8d 100644 --- a/scons/scons-local-2.3.1/SCons/Scanner/C.py +++ b/scons/scons-local-2.3.4/SCons/Scanner/C.py @@ -5,7 +5,7 @@ This module implements the depenency scanner for C/C++ code. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -27,7 +27,7 @@ This module implements the depenency scanner for C/C++ code. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Scanner/C.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Scanner/C.py 2014/09/27 12:51:43 garyo" import SCons.Node.FS import SCons.Scanner diff --git a/scons/scons-local-2.3.1/SCons/Scanner/D.py b/scons/scons-local-2.3.4/SCons/Scanner/D.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Scanner/D.py rename to scons/scons-local-2.3.4/SCons/Scanner/D.py index 76762b814..501ff6517 100644 --- a/scons/scons-local-2.3.1/SCons/Scanner/D.py +++ b/scons/scons-local-2.3.4/SCons/Scanner/D.py @@ -8,7 +8,7 @@ Coded by Andy Friesen """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ Coded by Andy Friesen # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Scanner/D.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Scanner/D.py 2014/09/27 12:51:43 garyo" import re diff --git a/scons/scons-local-2.3.1/SCons/Scanner/Dir.py b/scons/scons-local-2.3.4/SCons/Scanner/Dir.py similarity index 94% rename from scons/scons-local-2.3.1/SCons/Scanner/Dir.py rename to scons/scons-local-2.3.4/SCons/Scanner/Dir.py index 3c3f22725..3feb24a62 100644 --- a/scons/scons-local-2.3.1/SCons/Scanner/Dir.py +++ b/scons/scons-local-2.3.4/SCons/Scanner/Dir.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -20,7 +20,7 @@ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Scanner/Dir.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Scanner/Dir.py 2014/09/27 12:51:43 garyo" import SCons.Node.FS import SCons.Scanner diff --git a/scons/scons-local-2.3.1/SCons/Scanner/Fortran.py b/scons/scons-local-2.3.4/SCons/Scanner/Fortran.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Scanner/Fortran.py rename to scons/scons-local-2.3.4/SCons/Scanner/Fortran.py index 858c89ab6..c0db8ef9f 100644 --- a/scons/scons-local-2.3.1/SCons/Scanner/Fortran.py +++ b/scons/scons-local-2.3.4/SCons/Scanner/Fortran.py @@ -5,7 +5,7 @@ This module implements the dependency scanner for Fortran code. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -26,7 +26,7 @@ This module implements the dependency scanner for Fortran code. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Scanner/Fortran.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Scanner/Fortran.py 2014/09/27 12:51:43 garyo" import re diff --git a/scons/scons-local-2.3.1/SCons/Scanner/IDL.py b/scons/scons-local-2.3.4/SCons/Scanner/IDL.py similarity index 89% rename from scons/scons-local-2.3.1/SCons/Scanner/IDL.py rename to scons/scons-local-2.3.4/SCons/Scanner/IDL.py index d2710561b..fcdc890b8 100644 --- a/scons/scons-local-2.3.1/SCons/Scanner/IDL.py +++ b/scons/scons-local-2.3.4/SCons/Scanner/IDL.py @@ -6,7 +6,7 @@ Definition Language) files. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -28,7 +28,7 @@ Definition Language) files. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Scanner/IDL.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Scanner/IDL.py 2014/09/27 12:51:43 garyo" import SCons.Node.FS import SCons.Scanner diff --git a/scons/scons-local-2.3.1/SCons/Scanner/LaTeX.py b/scons/scons-local-2.3.4/SCons/Scanner/LaTeX.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Scanner/LaTeX.py rename to scons/scons-local-2.3.4/SCons/Scanner/LaTeX.py index 21c9ba171..1ef81eb7f 100644 --- a/scons/scons-local-2.3.1/SCons/Scanner/LaTeX.py +++ b/scons/scons-local-2.3.4/SCons/Scanner/LaTeX.py @@ -5,7 +5,7 @@ This module implements the dependency scanner for LaTeX code. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -27,7 +27,7 @@ This module implements the dependency scanner for LaTeX code. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Scanner/LaTeX.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Scanner/LaTeX.py 2014/09/27 12:51:43 garyo" import os.path import re diff --git a/scons/scons-local-2.3.1/SCons/Scanner/Prog.py b/scons/scons-local-2.3.4/SCons/Scanner/Prog.py similarity index 94% rename from scons/scons-local-2.3.1/SCons/Scanner/Prog.py rename to scons/scons-local-2.3.4/SCons/Scanner/Prog.py index 65c950329..3bbc0f4ce 100644 --- a/scons/scons-local-2.3.1/SCons/Scanner/Prog.py +++ b/scons/scons-local-2.3.4/SCons/Scanner/Prog.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Scanner/Prog.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Scanner/Prog.py 2014/09/27 12:51:43 garyo" import SCons.Node import SCons.Node.FS diff --git a/scons/scons-local-2.3.1/SCons/Scanner/RC.py b/scons/scons-local-2.3.4/SCons/Scanner/RC.py similarity index 90% rename from scons/scons-local-2.3.1/SCons/Scanner/RC.py rename to scons/scons-local-2.3.4/SCons/Scanner/RC.py index 4b473eb72..ceba01faf 100644 --- a/scons/scons-local-2.3.1/SCons/Scanner/RC.py +++ b/scons/scons-local-2.3.4/SCons/Scanner/RC.py @@ -6,7 +6,7 @@ Definition Language) files. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -28,7 +28,7 @@ Definition Language) files. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Scanner/RC.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Scanner/RC.py 2014/09/27 12:51:43 garyo" import SCons.Node.FS import SCons.Scanner diff --git a/scons/scons-local-2.3.1/SCons/Scanner/__init__.py b/scons/scons-local-2.3.4/SCons/Scanner/__init__.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Scanner/__init__.py rename to scons/scons-local-2.3.4/SCons/Scanner/__init__.py index bfd25fdd3..1a5fab19e 100644 --- a/scons/scons-local-2.3.1/SCons/Scanner/__init__.py +++ b/scons/scons-local-2.3.4/SCons/Scanner/__init__.py @@ -5,7 +5,7 @@ The Scanner package for the SCons software construction utility. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -27,7 +27,7 @@ The Scanner package for the SCons software construction utility. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Scanner/__init__.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Scanner/__init__.py 2014/09/27 12:51:43 garyo" import re diff --git a/scons/scons-local-2.3.1/SCons/Script/Interactive.py b/scons/scons-local-2.3.4/SCons/Script/Interactive.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Script/Interactive.py rename to scons/scons-local-2.3.4/SCons/Script/Interactive.py index 1bc4fc8c6..4f447a8dd 100644 --- a/scons/scons-local-2.3.1/SCons/Script/Interactive.py +++ b/scons/scons-local-2.3.4/SCons/Script/Interactive.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -20,7 +20,7 @@ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Script/Interactive.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Script/Interactive.py 2014/09/27 12:51:43 garyo" __doc__ = """ SCons interactive mode diff --git a/scons/scons-local-2.3.1/SCons/Script/Main.py b/scons/scons-local-2.3.4/SCons/Script/Main.py similarity index 96% rename from scons/scons-local-2.3.1/SCons/Script/Main.py rename to scons/scons-local-2.3.4/SCons/Script/Main.py index 164c61d03..d7c9f9538 100644 --- a/scons/scons-local-2.3.1/SCons/Script/Main.py +++ b/scons/scons-local-2.3.4/SCons/Script/Main.py @@ -13,7 +13,7 @@ it goes here. unsupported_python_version = (2, 3, 0) deprecated_python_version = (2, 7, 0) -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -34,7 +34,7 @@ deprecated_python_version = (2, 7, 0) # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Script/Main.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Script/Main.py 2014/09/27 12:51:43 garyo" import SCons.compat @@ -312,7 +312,7 @@ class BuildTask(SCons.Taskmaster.OutOfDateTask): class CleanTask(SCons.Taskmaster.AlwaysTask): """An SCons clean task.""" - def fs_delete(self, path, pathstr, remove=1): + def fs_delete(self, path, pathstr, remove=True): try: if os.path.lexists(path): if os.path.isfile(path) or os.path.islink(path): @@ -339,37 +339,41 @@ class CleanTask(SCons.Taskmaster.AlwaysTask): except (IOError, OSError), e: print "scons: Could not remove '%s':" % pathstr, e.strerror - def show(self): + def _get_files_to_clean(self): + result = [] + target = self.targets[0] + if target.has_builder() or target.side_effect: + result = [t for t in self.targets if not t.noclean] + return result + + def _clean_targets(self, remove=True): target = self.targets[0] - if (target.has_builder() or target.side_effect) and not target.noclean: - for t in self.targets: - if not t.isdir(): - display("Removed " + str(t)) if target in SCons.Environment.CleanTargets: files = SCons.Environment.CleanTargets[target] for f in files: - self.fs_delete(f.abspath, str(f), 0) + self.fs_delete(f.abspath, str(f), remove) + + def show(self): + for t in self._get_files_to_clean(): + if not t.isdir(): + display("Removed " + str(t)) + self._clean_targets(remove=False) def remove(self): - target = self.targets[0] - if (target.has_builder() or target.side_effect) and not target.noclean: - for t in self.targets: - try: - removed = t.remove() - except OSError, e: - # An OSError may indicate something like a permissions - # issue, an IOError would indicate something like - # the file not existing. In either case, print a - # message and keep going to try to remove as many - # targets aa possible. - print "scons: Could not remove '%s':" % str(t), e.strerror - else: - if removed: - display("Removed " + str(t)) - if target in SCons.Environment.CleanTargets: - files = SCons.Environment.CleanTargets[target] - for f in files: - self.fs_delete(f.abspath, str(f)) + for t in self._get_files_to_clean(): + try: + removed = t.remove() + except OSError, e: + # An OSError may indicate something like a permissions + # issue, an IOError would indicate something like + # the file not existing. In either case, print a + # message and keep going to try to remove as many + # targets aa possible. + print "scons: Could not remove '%s':" % str(t), e.strerror + else: + if removed: + display("Removed " + str(t)) + self._clean_targets(remove=True) execute = remove @@ -949,6 +953,14 @@ def _main(parser): if options.include_dir: sys.path = options.include_dir + sys.path + # If we're about to start SCons in the interactive mode, + # inform the FS about this right here. Else, the release_target_info + # method could get called on some nodes, like the used "gcc" compiler, + # when using the Configure methods within the SConscripts. + # This would then cause subtle bugs, as already happened in #2971. + if options.interactive: + SCons.Node.interactive = True + # That should cover (most of) the options. Next, set up the variables # that hold command-line arguments, so the SConscript files that we # read and execute have access to them. @@ -1021,13 +1033,17 @@ def _main(parser): # in case they disabled the warning in the SConscript files. if python_version_deprecated(): msg = "Support for pre-%s Python version (%s) is deprecated.\n" + \ - " If this will cause hardship, contact dev@scons.tigris.org." + " If this will cause hardship, contact scons-dev@scons.org" deprecated_version_string = ".".join(map(str, deprecated_python_version)) SCons.Warnings.warn(SCons.Warnings.PythonVersionWarning, msg % (deprecated_version_string, python_version_string())) if not options.help: - SCons.SConf.CreateConfigHBuilder(SCons.Defaults.DefaultEnvironment()) + # [ ] Clarify why we need to create Builder here at all, and + # why it is created in DefaultEnvironment + # https://bitbucket.org/scons/scons/commits/d27a548aeee8ad5e67ea75c2d19a7d305f784e30 + if SCons.SConf.NeedConfigHBuilder(): + SCons.SConf.CreateConfigHBuilder(SCons.Defaults.DefaultEnvironment()) # Now re-parse the command-line options (any to the left of a '--' # argument, that is) with any user-defined command-line options that @@ -1074,7 +1090,6 @@ def _main(parser): platform = SCons.Platform.platform_module() if options.interactive: - SCons.Node.interactive = True SCons.Script.Interactive.interact(fs, OptionsParser, options, targets, target_top) @@ -1343,7 +1358,7 @@ def main(): pass parts.append(version_string("engine", SCons)) parts.append(path_string("engine", SCons)) - parts.append("Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation") + parts.append("Copyright (c) 2001 - 2014 The SCons Foundation") version = ''.join(parts) import SConsOptions diff --git a/scons/scons-local-2.3.1/SCons/Script/SConsOptions.py b/scons/scons-local-2.3.4/SCons/Script/SConsOptions.py similarity index 99% rename from scons/scons-local-2.3.1/SCons/Script/SConsOptions.py rename to scons/scons-local-2.3.4/SCons/Script/SConsOptions.py index 09f71b77c..4e8fd3f9f 100644 --- a/scons/scons-local-2.3.1/SCons/Script/SConsOptions.py +++ b/scons/scons-local-2.3.4/SCons/Script/SConsOptions.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Script/SConsOptions.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Script/SConsOptions.py 2014/09/27 12:51:43 garyo" import optparse import re diff --git a/scons/scons-local-2.3.1/SCons/Script/SConscript.py b/scons/scons-local-2.3.4/SCons/Script/SConscript.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Script/SConscript.py rename to scons/scons-local-2.3.4/SCons/Script/SConscript.py index 52aade252..a0f6569ec 100644 --- a/scons/scons-local-2.3.1/SCons/Script/SConscript.py +++ b/scons/scons-local-2.3.4/SCons/Script/SConscript.py @@ -6,7 +6,7 @@ files. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -28,7 +28,7 @@ files. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. from __future__ import division -__revision__ = "src/engine/SCons/Script/SConscript.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Script/SConscript.py 2014/09/27 12:51:43 garyo" import SCons import SCons.Action @@ -461,6 +461,11 @@ class SConsEnvironment(SCons.Environment.Base): def EnsureSConsVersion(self, major, minor, revision=0): """Exit abnormally if the SCons version is not late enough.""" + # split string to avoid replacement during build process + if SCons.__version__ == '__' + 'VERSION__': + SCons.Warnings.warn(SCons.Warnings.DevelopmentVersionWarning, + "EnsureSConsVersion is ignored for development version") + return scons_ver = self._get_major_minor_revision(SCons.__version__) if scons_ver < (major, minor, revision): if revision: diff --git a/scons/scons-local-2.3.1/SCons/Script/__init__.py b/scons/scons-local-2.3.4/SCons/Script/__init__.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Script/__init__.py rename to scons/scons-local-2.3.4/SCons/Script/__init__.py index c27dacdaa..74c6f58e1 100644 --- a/scons/scons-local-2.3.1/SCons/Script/__init__.py +++ b/scons/scons-local-2.3.4/SCons/Script/__init__.py @@ -12,7 +12,7 @@ it goes here. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -34,7 +34,7 @@ it goes here. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Script/__init__.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Script/__init__.py 2014/09/27 12:51:43 garyo" import time start_time = time.time() diff --git a/scons/scons-local-2.3.1/SCons/Sig.py b/scons/scons-local-2.3.4/SCons/Sig.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Sig.py rename to scons/scons-local-2.3.4/SCons/Sig.py index 66803ddca..c714c877d 100644 --- a/scons/scons-local-2.3.1/SCons/Sig.py +++ b/scons/scons-local-2.3.4/SCons/Sig.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Sig.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Sig.py 2014/09/27 12:51:43 garyo" __doc__ = """Place-holder for the old SCons.Sig module hierarchy diff --git a/scons/scons-local-2.3.1/SCons/Subst.py b/scons/scons-local-2.3.4/SCons/Subst.py similarity index 99% rename from scons/scons-local-2.3.1/SCons/Subst.py rename to scons/scons-local-2.3.4/SCons/Subst.py index 0ca649075..0393dba4a 100644 --- a/scons/scons-local-2.3.1/SCons/Subst.py +++ b/scons/scons-local-2.3.4/SCons/Subst.py @@ -5,7 +5,7 @@ SCons string substitution. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -26,7 +26,7 @@ SCons string substitution. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Subst.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Subst.py 2014/09/27 12:51:43 garyo" import collections import re diff --git a/scons/scons-local-2.3.1/SCons/Taskmaster.py b/scons/scons-local-2.3.4/SCons/Taskmaster.py similarity index 99% rename from scons/scons-local-2.3.1/SCons/Taskmaster.py rename to scons/scons-local-2.3.4/SCons/Taskmaster.py index 5e4851a0c..ac4b4d56d 100644 --- a/scons/scons-local-2.3.1/SCons/Taskmaster.py +++ b/scons/scons-local-2.3.4/SCons/Taskmaster.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -47,7 +47,7 @@ interface and the SCons build engine. There are two key classes here: target(s) that it decides need to be evaluated and/or built. """ -__revision__ = "src/engine/SCons/Taskmaster.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Taskmaster.py 2014/09/27 12:51:43 garyo" from itertools import chain import operator diff --git a/scons/scons-local-2.3.1/SCons/Tool/386asm.py b/scons/scons-local-2.3.4/SCons/Tool/386asm.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/Tool/386asm.py rename to scons/scons-local-2.3.4/SCons/Tool/386asm.py index 0d96b3d45..ae45eec96 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/386asm.py +++ b/scons/scons-local-2.3.4/SCons/Tool/386asm.py @@ -10,7 +10,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -32,7 +32,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/386asm.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/386asm.py 2014/09/27 12:51:43 garyo" from SCons.Tool.PharLapCommon import addPharLapPaths import SCons.Util diff --git a/scons/scons-local-2.3.1/SCons/Tool/BitKeeper.py b/scons/scons-local-2.3.4/SCons/Tool/BitKeeper.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Tool/BitKeeper.py rename to scons/scons-local-2.3.4/SCons/Tool/BitKeeper.py index f99054c36..3ca3d2c0f 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/BitKeeper.py +++ b/scons/scons-local-2.3.4/SCons/Tool/BitKeeper.py @@ -10,7 +10,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -32,7 +32,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/BitKeeper.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/BitKeeper.py 2014/09/27 12:51:43 garyo" import SCons.Action import SCons.Builder diff --git a/scons/scons-local-2.3.1/SCons/Tool/CVS.py b/scons/scons-local-2.3.4/SCons/Tool/CVS.py similarity index 93% rename from scons/scons-local-2.3.1/SCons/Tool/CVS.py rename to scons/scons-local-2.3.4/SCons/Tool/CVS.py index 035ee6300..2ac30d2c2 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/CVS.py +++ b/scons/scons-local-2.3.4/SCons/Tool/CVS.py @@ -8,7 +8,7 @@ selection method. """ -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -29,7 +29,7 @@ selection method. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/CVS.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/CVS.py 2014/09/27 12:51:43 garyo" import SCons.Action import SCons.Builder diff --git a/scons/scons-local-2.3.4/SCons/Tool/DCommon.py b/scons/scons-local-2.3.4/SCons/Tool/DCommon.py new file mode 100644 index 000000000..616469e59 --- /dev/null +++ b/scons/scons-local-2.3.4/SCons/Tool/DCommon.py @@ -0,0 +1,56 @@ +"""SCons.Tool.DCommon + +Common code for the various D tools. + +Coded by Russel Winder (russel@winder.org.uk) +2012-09-06 +""" +# +# Copyright (c) 2001 - 2014 The SCons Foundation +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# + +__revision__ = "src/engine/SCons/Tool/DCommon.py 2014/09/27 12:51:43 garyo" + +import os.path + +def isD(env, source): + if not source: + return 0 + for s in source: + if s.sources: + ext = os.path.splitext(str(s.sources[0]))[1] + if ext == '.d': + return 1 + return 0 + +def addDPATHToEnv(env, executable): + dPath = env.WhereIs(executable) + if dPath: + phobosDir = dPath[:dPath.rindex(executable)] + '/../src/phobos' + if os.path.isdir(phobosDir): + env.Append(DPATH=[phobosDir]) + +# Local Variables: +# tab-width:4 +# indent-tabs-mode:nil +# End: +# vim: set expandtab tabstop=4 shiftwidth=4: diff --git a/scons/scons-local-2.3.1/SCons/Tool/FortranCommon.py b/scons/scons-local-2.3.4/SCons/Tool/FortranCommon.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Tool/FortranCommon.py rename to scons/scons-local-2.3.4/SCons/Tool/FortranCommon.py index bd211ef69..dcd116641 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/FortranCommon.py +++ b/scons/scons-local-2.3.4/SCons/Tool/FortranCommon.py @@ -5,7 +5,7 @@ Stuff for processing Fortran, common to all fortran dialects. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -27,7 +27,7 @@ Stuff for processing Fortran, common to all fortran dialects. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/FortranCommon.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/FortranCommon.py 2014/09/27 12:51:43 garyo" import re import os.path diff --git a/scons/scons-local-2.3.1/SCons/Tool/GettextCommon.py b/scons/scons-local-2.3.4/SCons/Tool/GettextCommon.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Tool/GettextCommon.py rename to scons/scons-local-2.3.4/SCons/Tool/GettextCommon.py index db8d95092..1d1e505dd 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/GettextCommon.py +++ b/scons/scons-local-2.3.4/SCons/Tool/GettextCommon.py @@ -3,7 +3,7 @@ Used by several tools of `gettext` toolset. """ -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -24,7 +24,7 @@ Used by several tools of `gettext` toolset. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/GettextCommon.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/GettextCommon.py 2014/09/27 12:51:43 garyo" import SCons.Warnings import re diff --git a/scons/scons-local-2.3.1/SCons/Tool/JavaCommon.py b/scons/scons-local-2.3.4/SCons/Tool/JavaCommon.py similarity index 97% rename from scons/scons-local-2.3.1/SCons/Tool/JavaCommon.py rename to scons/scons-local-2.3.4/SCons/Tool/JavaCommon.py index 8e5473dc9..13cfc2b3a 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/JavaCommon.py +++ b/scons/scons-local-2.3.4/SCons/Tool/JavaCommon.py @@ -5,7 +5,7 @@ Stuff for processing Java. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -27,7 +27,7 @@ Stuff for processing Java. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/JavaCommon.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/JavaCommon.py 2014/09/27 12:51:43 garyo" import os import os.path @@ -65,7 +65,7 @@ if java_parsing: def __init__(self, version=default_java_version): if not version in ('1.1', '1.2', '1.3','1.4', '1.5', '1.6', '1.7', - '5', '6'): + '1.8', '5', '6'): msg = "Java version %s not supported" % version raise NotImplementedError(msg) @@ -171,7 +171,7 @@ if java_parsing: if self.version in ('1.1', '1.2', '1.3', '1.4'): clazz = self.listClasses[0] self.listOutputs.append('%s$%d' % (clazz, self.nextAnon)) - elif self.version in ('1.5', '1.6', '1.7', '5', '6'): + elif self.version in ('1.5', '1.6', '1.7', '1.8', '5', '6'): self.stackAnonClassBrackets.append(self.brackets) className = [] className.extend(self.listClasses) @@ -244,7 +244,8 @@ if java_parsing: return self # If that's an inner class which is declared in a method, it # requires an index prepended to the class-name, e.g. - # 'Foo$1Inner' (Tigris Issue 2087) + # 'Foo$1Inner' + # http://scons.tigris.org/issues/show_bug.cgi?id=2087 if self.outer_state.localClasses and \ self.outer_state.stackBrackets[-1] > \ self.outer_state.stackBrackets[-2]+1: diff --git a/scons/scons-local-2.3.1/SCons/Tool/MSCommon/__init__.py b/scons/scons-local-2.3.4/SCons/Tool/MSCommon/__init__.py similarity index 93% rename from scons/scons-local-2.3.1/SCons/Tool/MSCommon/__init__.py rename to scons/scons-local-2.3.4/SCons/Tool/MSCommon/__init__.py index 6efdcce7b..7c05452bf 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/MSCommon/__init__.py +++ b/scons/scons-local-2.3.4/SCons/Tool/MSCommon/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/MSCommon/__init__.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/MSCommon/__init__.py 2014/09/27 12:51:43 garyo" __doc__ = """ Common functions for Microsoft Visual Studio and Visual C/C++. diff --git a/scons/scons-local-2.3.1/SCons/Tool/MSCommon/arch.py b/scons/scons-local-2.3.4/SCons/Tool/MSCommon/arch.py similarity index 90% rename from scons/scons-local-2.3.1/SCons/Tool/MSCommon/arch.py rename to scons/scons-local-2.3.4/SCons/Tool/MSCommon/arch.py index 3fc4eedeb..10b4db74a 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/MSCommon/arch.py +++ b/scons/scons-local-2.3.4/SCons/Tool/MSCommon/arch.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/MSCommon/arch.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/MSCommon/arch.py 2014/09/27 12:51:43 garyo" __doc__ = """Module to define supported Windows chip architectures. """ diff --git a/scons/scons-local-2.3.1/SCons/Tool/MSCommon/common.py b/scons/scons-local-2.3.4/SCons/Tool/MSCommon/common.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Tool/MSCommon/common.py rename to scons/scons-local-2.3.4/SCons/Tool/MSCommon/common.py index 006e17e72..0a726ec7c 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/MSCommon/common.py +++ b/scons/scons-local-2.3.4/SCons/Tool/MSCommon/common.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/MSCommon/common.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/MSCommon/common.py 2014/09/27 12:51:43 garyo" __doc__ = """ Common helper functions for working with the Microsoft tool chain. diff --git a/scons/scons-local-2.3.1/SCons/Tool/MSCommon/netframework.py b/scons/scons-local-2.3.4/SCons/Tool/MSCommon/netframework.py similarity index 94% rename from scons/scons-local-2.3.1/SCons/Tool/MSCommon/netframework.py rename to scons/scons-local-2.3.4/SCons/Tool/MSCommon/netframework.py index fef75eb86..6c6dcf6b5 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/MSCommon/netframework.py +++ b/scons/scons-local-2.3.4/SCons/Tool/MSCommon/netframework.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -20,7 +20,7 @@ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/MSCommon/netframework.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/MSCommon/netframework.py 2014/09/27 12:51:43 garyo" __doc__ = """ """ diff --git a/scons/scons-local-2.3.1/SCons/Tool/MSCommon/sdk.py b/scons/scons-local-2.3.4/SCons/Tool/MSCommon/sdk.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Tool/MSCommon/sdk.py rename to scons/scons-local-2.3.4/SCons/Tool/MSCommon/sdk.py index 320ef4c38..d654fc65a 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/MSCommon/sdk.py +++ b/scons/scons-local-2.3.4/SCons/Tool/MSCommon/sdk.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/MSCommon/sdk.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/MSCommon/sdk.py 2014/09/27 12:51:43 garyo" __doc__ = """Module to detect the Platform/Windows SDK diff --git a/scons/scons-local-2.3.1/SCons/Tool/MSCommon/vc.py b/scons/scons-local-2.3.4/SCons/Tool/MSCommon/vc.py similarity index 93% rename from scons/scons-local-2.3.1/SCons/Tool/MSCommon/vc.py rename to scons/scons-local-2.3.4/SCons/Tool/MSCommon/vc.py index 582bf23e7..e9c85972b 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/MSCommon/vc.py +++ b/scons/scons-local-2.3.4/SCons/Tool/MSCommon/vc.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ # * test on 64 bits XP + VS 2005 (and VS 6 if possible) # * SDK # * Assembly -__revision__ = "src/engine/SCons/Tool/MSCommon/vc.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/MSCommon/vc.py 2014/09/27 12:51:43 garyo" __doc__ = """Module for Visual C/C++ detection and configuration. """ @@ -89,6 +89,7 @@ _ARCH_TO_CANONICAL = { _HOST_TARGET_ARCH_TO_BAT_ARCH = { ("x86", "x86"): "x86", ("x86", "amd64"): "x86_amd64", + ("x86", "x86_amd64"): "x86_amd64", ("amd64", "x86_amd64"): "x86_amd64", # This is present in (at least) VS2012 express ("amd64", "amd64"): "amd64", ("amd64", "x86"): "x86", @@ -131,9 +132,15 @@ def get_host_target(env): return (host, target,req_target_platform) -_VCVER = ["11.0", "11.0Exp", "10.0", "10.0Exp", "9.0", "9.0Exp","8.0", "8.0Exp","7.1", "7.0", "6.0"] +# If you update this, update SupportedVSList in Tool/MSCommon/vs.py, and the +# MSVC_VERSION documentation in Tool/msvc.xml. +_VCVER = ["12.0", "12.0Exp", "11.0", "11.0Exp", "10.0", "10.0Exp", "9.0", "9.0Exp","8.0", "8.0Exp","7.1", "7.0", "6.0"] _VCVER_TO_PRODUCT_DIR = { + '12.0' : [ + r'Microsoft\VisualStudio\12.0\Setup\VC\ProductDir'], + '12.0Exp' : [ + r'Microsoft\VCExpress\12.0\Setup\VC\ProductDir'], '11.0': [ r'Microsoft\VisualStudio\11.0\Setup\VC\ProductDir'], '11.0Exp' : [ @@ -298,8 +305,21 @@ def reset_installed_vcs(): """Make it try again to find VC. This is just for the tests.""" __INSTALLED_VCS_RUN = None +# Running these batch files isn't cheap: most of the time spent in +# msvs.generate() is due to vcvars*.bat. In a build that uses "tools='msvs'" +# in multiple environments, for example: +# env1 = Environment(tools='msvs') +# env2 = Environment(tools='msvs') +# we can greatly improve the speed of the second and subsequent Environment +# (or Clone) calls by memoizing the environment variables set by vcvars*.bat. +script_env_stdout_cache = {} def script_env(script, args=None): - stdout = common.get_output(script, args) + cache_key = (script, args) + stdout = script_env_stdout_cache.get(cache_key, None) + if stdout is None: + stdout = common.get_output(script, args) + script_env_stdout_cache[cache_key] = stdout + # Stupid batch files do not set return code: we take a look at the # beginning of the output for an error message instead olines = stdout.splitlines() @@ -416,7 +436,7 @@ def msvc_find_valid_batch_script(env,version): if not vc_script and sdk_script: debug('vc.py:msvc_find_valid_batch_script() use_script 4: trying sdk script: %s'%(sdk_script)) try: - d = script_env(sdk_script,args=[]) + d = script_env(sdk_script) except BatchFileExecutionError,e: debug('vc.py:msvc_find_valid_batch_script() use_script 5: failed running SDK script %s: Error:%s'%(repr(sdk_script),e)) continue diff --git a/scons/scons-local-2.3.1/SCons/Tool/MSCommon/vs.py b/scons/scons-local-2.3.4/SCons/Tool/MSCommon/vs.py similarity index 86% rename from scons/scons-local-2.3.1/SCons/Tool/MSCommon/vs.py rename to scons/scons-local-2.3.4/SCons/Tool/MSCommon/vs.py index 783ca2e7f..858ac2054 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/MSCommon/vs.py +++ b/scons/scons-local-2.3.4/SCons/Tool/MSCommon/vs.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/MSCommon/vs.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/MSCommon/vs.py 2014/09/27 12:51:43 garyo" __doc__ = """Module to detect Visual Studio and/or Visual C/C++ """ @@ -73,7 +73,7 @@ class VisualStudio(object): debug('find_vs_dir(): no installed VC %s' % self.vc_version) return None return dir - + def find_vs_dir_by_reg(self): root = 'Software\\' @@ -91,13 +91,13 @@ class VisualStudio(object): debug('find_vs_dir_by_reg(): found VS in registry: %s' % comps) return comps return None - + def find_vs_dir(self): """ Can use registry or location of VC to find vs dir First try to find by registry, and if that fails find via VC dir """ - - + + if True: vs_dir=self.find_vs_dir_by_reg() return vs_dir @@ -115,7 +115,7 @@ class VisualStudio(object): debug('find_executable(): %s not on file system' % executable) return None return executable - + # def get_batch_file(self): @@ -199,102 +199,96 @@ class VisualStudio(object): # good money for in preference to whatever Microsoft makes available # for free. # -# If you update this list, update the documentation in Tool/msvs.xml. +# If you update this list, update _VCVER and _VCVER_TO_PRODUCT_DIR in +# Tool/MSCommon/vc.py, and the MSVC_VERSION documentation in Tool/msvc.xml. SupportedVSList = [ - # Visual Studio 2010 - # TODO: find the settings, perhaps from someone with a CTP copy? - #VisualStudio('TBD', - # hkey_root=r'TBD', - # common_tools_var='TBD', - # executable_path=r'TBD', - # default_dirname='TBD', - #), + # Visual Studio 2013 + VisualStudio('12.0', + vc_version='12.0', + sdk_version='8.1A', + hkeys=[r'Microsoft\VisualStudio\12.0\Setup\VS\ProductDir'], + common_tools_var='VS120COMNTOOLS', + executable_path=r'Common7\IDE\devenv.com', + batch_file_path=r'Common7\Tools\vsvars32.bat', + supported_arch=['x86', 'amd64'], + ), - # Visual Studio 11 - # The batch file we look for is in the VC directory, - # so the devenv.com executable is up in ..\..\Common7\IDE. + # Visual C++ 2013 Express Edition (for Desktop) + VisualStudio('12.0Exp', + vc_version='12.0', + sdk_version='8.1A', + hkeys=[r'Microsoft\VisualStudio\12.0\Setup\VS\ProductDir'], + common_tools_var='VS120COMNTOOLS', + executable_path=r'Common7\IDE\WDExpress.exe', + batch_file_path=r'Common7\Tools\vsvars32.bat', + supported_arch=['x86', 'amd64'], + ), + + # Visual Studio 2012 VisualStudio('11.0', - sdk_version='6.1', + sdk_version='8.0A', hkeys=[r'Microsoft\VisualStudio\11.0\Setup\VS\ProductDir'], common_tools_var='VS110COMNTOOLS', executable_path=r'Common7\IDE\devenv.com', batch_file_path=r'Common7\Tools\vsvars32.bat', - default_dirname='Microsoft Visual Studio 11', supported_arch=['x86', 'amd64'], ), - # Visual C++ 11 Express Edition - # The batch file we look for is in the VC directory, - # so the VCExpress.exe executable is up in ..\..\Common7\IDE. + # Visual C++ 2012 Express Edition (for Desktop) VisualStudio('11.0Exp', vc_version='11.0', - sdk_version='6.1', - hkeys=[r'Microsoft\VCExpress\11.0\Setup\VS\ProductDir'], + sdk_version='8.0A', + hkeys=[r'Microsoft\VisualStudio\11.0\Setup\VS\ProductDir'], common_tools_var='VS110COMNTOOLS', - executable_path=r'Common7\IDE\VCExpress.exe', + executable_path=r'Common7\IDE\WDExpress.exe', batch_file_path=r'Common7\Tools\vsvars32.bat', - default_dirname='Microsoft Visual Studio 11', - supported_arch=['x86'], + supported_arch=['x86', 'amd64'], ), # Visual Studio 2010 - # The batch file we look for is in the VC directory, - # so the devenv.com executable is up in ..\..\Common7\IDE. VisualStudio('10.0', - sdk_version='6.1', + sdk_version='7.0A', hkeys=[r'Microsoft\VisualStudio\10.0\Setup\VS\ProductDir'], common_tools_var='VS100COMNTOOLS', executable_path=r'Common7\IDE\devenv.com', batch_file_path=r'Common7\Tools\vsvars32.bat', - default_dirname='Microsoft Visual Studio 10', supported_arch=['x86', 'amd64'], ), # Visual C++ 2010 Express Edition - # The batch file we look for is in the VC directory, - # so the VCExpress.exe executable is up in ..\..\Common7\IDE. VisualStudio('10.0Exp', vc_version='10.0', - sdk_version='6.1', + sdk_version='7.0A', hkeys=[r'Microsoft\VCExpress\10.0\Setup\VS\ProductDir'], common_tools_var='VS100COMNTOOLS', executable_path=r'Common7\IDE\VCExpress.exe', batch_file_path=r'Common7\Tools\vsvars32.bat', - default_dirname='Microsoft Visual Studio 10', supported_arch=['x86'], ), # Visual Studio 2008 - # The batch file we look for is in the VC directory, - # so the devenv.com executable is up in ..\..\Common7\IDE. VisualStudio('9.0', - sdk_version='6.1', + sdk_version='6.0A', hkeys=[r'Microsoft\VisualStudio\9.0\Setup\VS\ProductDir'], common_tools_var='VS90COMNTOOLS', executable_path=r'Common7\IDE\devenv.com', batch_file_path=r'Common7\Tools\vsvars32.bat', - default_dirname='Microsoft Visual Studio 9', supported_arch=['x86', 'amd64'], ), # Visual C++ 2008 Express Edition - # The batch file we look for is in the VC directory, - # so the VCExpress.exe executable is up in ..\..\Common7\IDE. VisualStudio('9.0Exp', vc_version='9.0', - sdk_version='6.1', + sdk_version='6.0A', hkeys=[r'Microsoft\VCExpress\9.0\Setup\VS\ProductDir'], common_tools_var='VS90COMNTOOLS', executable_path=r'Common7\IDE\VCExpress.exe', batch_file_path=r'Common7\Tools\vsvars32.bat', - default_dirname='Microsoft Visual Studio 9', supported_arch=['x86'], ), # Visual Studio 2005 - # The batch file we look for is in the VC directory, - # so the devenv.com executable is up in ..\..\Common7\IDE. VisualStudio('8.0', sdk_version='6.0A', hkeys=[r'Microsoft\VisualStudio\8.0\Setup\VS\ProductDir'], @@ -306,8 +300,6 @@ SupportedVSList = [ ), # Visual C++ 2005 Express Edition - # The batch file we look for is in the VC directory, - # so the VCExpress.exe executable is up in ..\..\Common7\IDE. VisualStudio('8.0Exp', vc_version='8.0Exp', sdk_version='6.0A', @@ -320,8 +312,6 @@ SupportedVSList = [ ), # Visual Studio .NET 2003 - # The batch file we look for is in the Common7\Tools directory, - # so the devenv.com executable is next door in ..\IDE. VisualStudio('7.1', sdk_version='6.0', hkeys=[r'Microsoft\VisualStudio\7.1\Setup\VS\ProductDir'], @@ -333,8 +323,6 @@ SupportedVSList = [ ), # Visual Studio .NET - # The batch file we look for is in the Common7\Tools directory, - # so the devenv.com executable is next door in ..\IDE. VisualStudio('7.0', sdk_version='2003R2', hkeys=[r'Microsoft\VisualStudio\7.0\Setup\VS\ProductDir'], @@ -393,11 +381,11 @@ def reset_installed_visual_studios(): InstalledVSMap = None for vs in SupportedVSList: vs.reset() - + # Need to clear installed VC's as well as they are used in finding # installed VS's SCons.Tool.MSCommon.vc.reset_installed_vcs() - + # We may be asked to update multiple construction environments with # SDK information. When doing this, we check on-disk for whether @@ -462,7 +450,7 @@ def get_default_version(env): If no version was requested by the user through the MSVS environment variable, query all the available the visual studios through - query_versions, and take the highest one. + get_installed_visual_studios, and take the highest one. Return ------ @@ -470,6 +458,7 @@ def get_default_version(env): the default version. """ if 'MSVS' not in env or not SCons.Util.is_Dict(env['MSVS']): + # get all versions, and remember them for speed later versions = [vs.version for vs in get_installed_visual_studios()] env['MSVS'] = {'VERSIONS' : versions} else: @@ -479,6 +468,8 @@ def get_default_version(env): if versions: env['MSVS_VERSION'] = versions[0] #use highest version by default else: + debug('get_default_version: WARNING: no installed versions found, ' + 'using first in SupportedVSList (%s)'%SupportedVSList[0].version) env['MSVS_VERSION'] = SupportedVSList[0].version env['MSVS']['VERSION'] = env['MSVS_VERSION'] diff --git a/scons/scons-local-2.3.1/SCons/Tool/Perforce.py b/scons/scons-local-2.3.4/SCons/Tool/Perforce.py similarity index 94% rename from scons/scons-local-2.3.1/SCons/Tool/Perforce.py rename to scons/scons-local-2.3.4/SCons/Tool/Perforce.py index 3e132ad35..730654583 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/Perforce.py +++ b/scons/scons-local-2.3.4/SCons/Tool/Perforce.py @@ -8,7 +8,7 @@ selection method. """ -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -29,7 +29,7 @@ selection method. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/Perforce.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/Perforce.py 2014/09/27 12:51:43 garyo" import os diff --git a/scons/scons-local-2.3.1/SCons/Tool/PharLapCommon.py b/scons/scons-local-2.3.4/SCons/Tool/PharLapCommon.py similarity index 96% rename from scons/scons-local-2.3.1/SCons/Tool/PharLapCommon.py rename to scons/scons-local-2.3.4/SCons/Tool/PharLapCommon.py index dc5e9dbb4..e7de04de8 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/PharLapCommon.py +++ b/scons/scons-local-2.3.4/SCons/Tool/PharLapCommon.py @@ -7,7 +7,7 @@ Phar Lap ETS tool chain. Right now, this is linkloc and """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -29,7 +29,7 @@ Phar Lap ETS tool chain. Right now, this is linkloc and # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/PharLapCommon.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/PharLapCommon.py 2014/09/27 12:51:43 garyo" import os import os.path diff --git a/scons/scons-local-2.3.1/SCons/Tool/RCS.py b/scons/scons-local-2.3.4/SCons/Tool/RCS.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/Tool/RCS.py rename to scons/scons-local-2.3.4/SCons/Tool/RCS.py index 4ecb4992c..402cc5925 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/RCS.py +++ b/scons/scons-local-2.3.4/SCons/Tool/RCS.py @@ -8,7 +8,7 @@ selection method. """ -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -29,7 +29,7 @@ selection method. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/RCS.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/RCS.py 2014/09/27 12:51:43 garyo" import SCons.Action import SCons.Builder diff --git a/scons/scons-local-2.3.1/SCons/Tool/SCCS.py b/scons/scons-local-2.3.4/SCons/Tool/SCCS.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/Tool/SCCS.py rename to scons/scons-local-2.3.4/SCons/Tool/SCCS.py index cee057b6a..bc697d128 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/SCCS.py +++ b/scons/scons-local-2.3.4/SCons/Tool/SCCS.py @@ -8,7 +8,7 @@ selection method. """ -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -29,7 +29,7 @@ selection method. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/SCCS.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/SCCS.py 2014/09/27 12:51:43 garyo" import SCons.Action import SCons.Builder diff --git a/scons/scons-local-2.3.1/SCons/Tool/Subversion.py b/scons/scons-local-2.3.4/SCons/Tool/Subversion.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Tool/Subversion.py rename to scons/scons-local-2.3.4/SCons/Tool/Subversion.py index 3b45b12b9..5c9f4eab1 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/Subversion.py +++ b/scons/scons-local-2.3.4/SCons/Tool/Subversion.py @@ -8,7 +8,7 @@ selection method. """ -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -29,7 +29,7 @@ selection method. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/Subversion.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/Subversion.py 2014/09/27 12:51:43 garyo" import os.path diff --git a/scons/scons-local-2.3.1/SCons/Tool/__init__.py b/scons/scons-local-2.3.4/SCons/Tool/__init__.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Tool/__init__.py rename to scons/scons-local-2.3.4/SCons/Tool/__init__.py index b946507a0..56a7d8097 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/__init__.py +++ b/scons/scons-local-2.3.4/SCons/Tool/__init__.py @@ -14,7 +14,7 @@ tool definition. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -35,7 +35,7 @@ tool definition. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/__init__.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/__init__.py 2014/09/27 12:51:43 garyo" import imp import sys @@ -705,7 +705,7 @@ def tool_list(platform, env): assemblers = ['masm', 'nasm', 'gas', '386asm' ] fortran_compilers = ['gfortran', 'g77', 'ifl', 'cvf', 'f95', 'f90', 'fortran'] ars = ['mslib', 'ar', 'tlib'] - other_plat_tools=['msvs','midl'] + other_plat_tools = ['msvs', 'midl'] elif str(platform) == 'os2': "prefer IBM tools on OS/2" linkers = ['ilink', 'gnulink', ]#'mslink'] @@ -772,6 +772,9 @@ def tool_list(platform, env): fortran_compilers = ['gfortran', 'g77', 'ifort', 'ifl', 'f95', 'f90', 'f77'] ars = ['ar', 'mslib'] + if not str(platform) == 'win32': + other_plat_tools += ['m4', 'rpm'] + c_compiler = FindTool(c_compilers, env) or c_compilers[0] # XXX this logic about what tool provides what should somehow be @@ -795,12 +798,13 @@ def tool_list(platform, env): fortran_compiler = FindTool(fortran_compilers, env) or fortran_compilers[0] ar = FindTool(ars, env) or ars[0] + d_compilers = ['dmd', 'gdc', 'ldc'] + d_compiler = FindTool(d_compilers, env) or d_compilers[0] + other_tools = FindAllTools(other_plat_tools + [ - 'dmd', #TODO: merge 'install' into 'filesystem' and # make 'filesystem' the default 'filesystem', - 'm4', 'wix', #'midl', 'msvs', # Parser generators 'lex', 'yacc', @@ -812,14 +816,14 @@ def tool_list(platform, env): 'dvipdf', 'dvips', 'gs', 'tex', 'latex', 'pdflatex', 'pdftex', # Archivers - 'tar', 'zip', 'rpm', + 'tar', 'zip', # SourceCode factories 'BitKeeper', 'CVS', 'Perforce', 'RCS', 'SCCS', # 'Subversion', ], env) tools = ([linker, c_compiler, cxx_compiler, - fortran_compiler, assembler, ar] + fortran_compiler, assembler, ar, d_compiler] + other_tools) return [x for x in tools if x] diff --git a/scons/scons-local-2.3.1/SCons/Tool/aixc++.py b/scons/scons-local-2.3.4/SCons/Tool/aixc++.py similarity index 72% rename from scons/scons-local-2.3.1/SCons/Tool/aixc++.py rename to scons/scons-local-2.3.4/SCons/Tool/aixc++.py index 6f1ea5b16..b70bfd013 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/aixc++.py +++ b/scons/scons-local-2.3.4/SCons/Tool/aixc++.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/aixc++.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/aixc++.py 2014/09/27 12:51:43 garyo" import os.path @@ -43,32 +43,25 @@ packages = ['vacpp.cmp.core', 'vacpp.cmp.batch', 'vacpp.cmp.C', 'ibmcxx.cmp'] def get_xlc(env): xlc = env.get('CXX', 'xlC') - xlc_r = env.get('SHCXX', 'xlC_r') - return SCons.Platform.aix.get_xlc(env, xlc, xlc_r, packages) - -def smart_cxxflags(source, target, env, for_signature): - build_dir = env.GetBuildPath() - if build_dir: - return '-qtempinc=' + os.path.join(build_dir, 'tempinc') - return '' + return SCons.Platform.aix.get_xlc(env, xlc, packages) def generate(env): """Add Builders and construction variables for xlC / Visual Age suite to an Environment.""" - path, _cxx, _shcxx, version = get_xlc(env) - if path: + path, _cxx, version = get_xlc(env) + if path and _cxx: _cxx = os.path.join(path, _cxx) - _shcxx = os.path.join(path, _shcxx) + + if 'CXX' not in env: + env['CXX'] = _cxx cplusplus.generate(env) - env['CXX'] = _cxx - env['SHCXX'] = _shcxx - env['CXXVERSION'] = version - env['SHOBJSUFFIX'] = '.pic.o' + if version: + env['CXXVERSION'] = version def exists(env): - path, _cxx, _shcxx, version = get_xlc(env) + path, _cxx, version = get_xlc(env) if path and _cxx: xlc = os.path.join(path, _cxx) if os.path.exists(xlc): diff --git a/scons/scons-local-2.3.1/SCons/Tool/aixcc.py b/scons/scons-local-2.3.4/SCons/Tool/aixcc.py similarity index 78% rename from scons/scons-local-2.3.1/SCons/Tool/aixcc.py rename to scons/scons-local-2.3.4/SCons/Tool/aixcc.py index bdcb68128..586edcde9 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/aixcc.py +++ b/scons/scons-local-2.3.4/SCons/Tool/aixcc.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/aixcc.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/aixcc.py 2014/09/27 12:51:43 garyo" import os.path @@ -42,25 +42,25 @@ packages = ['vac.C', 'ibmcxx.cmp'] def get_xlc(env): xlc = env.get('CC', 'xlc') - xlc_r = env.get('SHCC', 'xlc_r') - return SCons.Platform.aix.get_xlc(env, xlc, xlc_r, packages) + return SCons.Platform.aix.get_xlc(env, xlc, packages) def generate(env): """Add Builders and construction variables for xlc / Visual Age suite to an Environment.""" - path, _cc, _shcc, version = get_xlc(env) - if path: + path, _cc, version = get_xlc(env) + if path and _cc: _cc = os.path.join(path, _cc) - _shcc = os.path.join(path, _shcc) + + if 'CC' not in env: + env['CC'] = _cc cc.generate(env) - env['CC'] = _cc - env['SHCC'] = _shcc - env['CCVERSION'] = version + if version: + env['CCVERSION'] = version def exists(env): - path, _cc, _shcc, version = get_xlc(env) + path, _cc, version = get_xlc(env) if path and _cc: xlc = os.path.join(path, _cc) if os.path.exists(xlc): diff --git a/scons/scons-local-2.3.1/SCons/Tool/aixf77.py b/scons/scons-local-2.3.4/SCons/Tool/aixf77.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Tool/aixf77.py rename to scons/scons-local-2.3.4/SCons/Tool/aixf77.py index 3a8400b29..74f219489 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/aixf77.py +++ b/scons/scons-local-2.3.4/SCons/Tool/aixf77.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/aixf77.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/aixf77.py 2014/09/27 12:51:43 garyo" import os.path diff --git a/scons/scons-local-2.3.1/SCons/Tool/aixlink.py b/scons/scons-local-2.3.4/SCons/Tool/aixlink.py similarity index 80% rename from scons/scons-local-2.3.1/SCons/Tool/aixlink.py rename to scons/scons-local-2.3.4/SCons/Tool/aixlink.py index 44a7ca579..451844c36 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/aixlink.py +++ b/scons/scons-local-2.3.4/SCons/Tool/aixlink.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,14 +30,13 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/aixlink.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/aixlink.py 2014/09/27 12:51:43 garyo" import os import os.path import SCons.Util -import aixcc import link cplusplus = __import__('c++', globals(), locals(), []) @@ -62,12 +61,14 @@ def generate(env): env['SHLIBSUFFIX'] = '.a' def exists(env): - path, _cc, _shcc, version = aixcc.get_xlc(env) - if path and _cc: - xlc = os.path.join(path, _cc) - if os.path.exists(xlc): - return xlc - return None + # TODO: sync with link.smart_link() to choose a linker + linkers = { 'CXX': ['aixc++'], 'CC': ['aixcc'] } + alltools = [] + for langvar, linktools in linkers.items(): + if langvar in env: # use CC over CXX when user specified CC but not CXX + return SCons.Tool.FindTool(linktools, env) + alltools.extend(linktools) + return SCons.Tool.FindTool(alltools, env) # Local Variables: # tab-width:4 diff --git a/scons/scons-local-2.3.1/SCons/Tool/applelink.py b/scons/scons-local-2.3.4/SCons/Tool/applelink.py similarity index 93% rename from scons/scons-local-2.3.1/SCons/Tool/applelink.py rename to scons/scons-local-2.3.4/SCons/Tool/applelink.py index 70ad558d9..b9861d54e 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/applelink.py +++ b/scons/scons-local-2.3.4/SCons/Tool/applelink.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/applelink.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/applelink.py 2014/09/27 12:51:43 garyo" import SCons.Util diff --git a/scons/scons-local-2.3.1/SCons/Tool/ar.py b/scons/scons-local-2.3.4/SCons/Tool/ar.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/Tool/ar.py rename to scons/scons-local-2.3.4/SCons/Tool/ar.py index d9ef9a42a..534c7ad5f 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/ar.py +++ b/scons/scons-local-2.3.4/SCons/Tool/ar.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/ar.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/ar.py 2014/09/27 12:51:43 garyo" import SCons.Defaults import SCons.Tool diff --git a/scons/scons-local-2.3.1/SCons/Tool/as.py b/scons/scons-local-2.3.4/SCons/Tool/as.py similarity index 93% rename from scons/scons-local-2.3.1/SCons/Tool/as.py rename to scons/scons-local-2.3.4/SCons/Tool/as.py index d245f7b40..b7e545ab2 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/as.py +++ b/scons/scons-local-2.3.4/SCons/Tool/as.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/as.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/as.py 2014/09/27 12:51:43 garyo" import SCons.Defaults import SCons.Tool diff --git a/scons/scons-local-2.3.1/SCons/Tool/bcc32.py b/scons/scons-local-2.3.4/SCons/Tool/bcc32.py similarity index 93% rename from scons/scons-local-2.3.1/SCons/Tool/bcc32.py rename to scons/scons-local-2.3.4/SCons/Tool/bcc32.py index ce4f23484..e8e373fcb 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/bcc32.py +++ b/scons/scons-local-2.3.4/SCons/Tool/bcc32.py @@ -5,7 +5,7 @@ XXX """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -27,7 +27,7 @@ XXX # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/bcc32.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/bcc32.py 2014/09/27 12:51:43 garyo" import os import os.path diff --git a/scons/scons-local-2.3.1/SCons/Tool/c++.py b/scons/scons-local-2.3.4/SCons/Tool/c++.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Tool/c++.py rename to scons/scons-local-2.3.4/SCons/Tool/c++.py index 7b98b767d..179ab84c5 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/c++.py +++ b/scons/scons-local-2.3.4/SCons/Tool/c++.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/c++.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/c++.py 2014/09/27 12:51:43 garyo" import os.path @@ -72,7 +72,8 @@ def generate(env): SCons.Tool.cc.add_common_cc_variables(env) - env['CXX'] = 'c++' + if 'CXX' not in env: + env['CXX'] = env.Detect(compilers) or compilers[0] env['CXXFLAGS'] = SCons.Util.CLVar('') env['CXXCOM'] = '$CXX -o $TARGET -c $CXXFLAGS $CCFLAGS $_CCCOMCOM $SOURCES' env['SHCXX'] = '$CXX' @@ -90,7 +91,7 @@ def generate(env): env['CXXFILESUFFIX'] = '.cc' def exists(env): - return env.Detect(compilers) + return env.Detect(env.get('CXX', compilers)) # Local Variables: # tab-width:4 diff --git a/scons/scons-local-2.3.1/SCons/Tool/cc.py b/scons/scons-local-2.3.4/SCons/Tool/cc.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Tool/cc.py rename to scons/scons-local-2.3.4/SCons/Tool/cc.py index 0702138d7..12838cbe9 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/cc.py +++ b/scons/scons-local-2.3.4/SCons/Tool/cc.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/cc.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/cc.py 2014/09/27 12:51:43 garyo" import SCons.Tool import SCons.Defaults @@ -62,6 +62,8 @@ def add_common_cc_variables(env): if 'SHCCFLAGS' not in env: env['SHCCFLAGS'] = SCons.Util.CLVar('$CCFLAGS') +compilers = ['cc'] + def generate(env): """ Add Builders and construction variables for C compilers to an Environment. @@ -76,7 +78,8 @@ def generate(env): add_common_cc_variables(env) - env['CC'] = 'cc' + if 'CC' not in env: + env['CC'] = env.Detect(compilers) or compilers[0] env['CFLAGS'] = SCons.Util.CLVar('') env['CCCOM'] = '$CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES' env['SHCC'] = '$CC' @@ -93,7 +96,7 @@ def generate(env): env['CFILESUFFIX'] = '.c' def exists(env): - return env.Detect('cc') + return env.Detect(env.get('CC', compilers)) # Local Variables: # tab-width:4 diff --git a/scons/scons-local-2.3.1/SCons/Tool/cvf.py b/scons/scons-local-2.3.4/SCons/Tool/cvf.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Tool/cvf.py rename to scons/scons-local-2.3.4/SCons/Tool/cvf.py index d35c1b13d..731a66ebf 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/cvf.py +++ b/scons/scons-local-2.3.4/SCons/Tool/cvf.py @@ -5,7 +5,7 @@ Tool-specific initialization for the Compaq Visual Fortran compiler. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -27,7 +27,7 @@ Tool-specific initialization for the Compaq Visual Fortran compiler. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/cvf.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/cvf.py 2014/09/27 12:51:43 garyo" import fortran diff --git a/scons/scons-local-2.3.1/SCons/Tool/cyglink.py b/scons/scons-local-2.3.4/SCons/Tool/cyglink.py similarity index 100% rename from scons/scons-local-2.3.1/SCons/Tool/cyglink.py rename to scons/scons-local-2.3.4/SCons/Tool/cyglink.py diff --git a/scons/scons-local-2.3.1/SCons/Tool/default.py b/scons/scons-local-2.3.4/SCons/Tool/default.py similarity index 88% rename from scons/scons-local-2.3.1/SCons/Tool/default.py rename to scons/scons-local-2.3.4/SCons/Tool/default.py index ccb215c8a..068034728 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/default.py +++ b/scons/scons-local-2.3.4/SCons/Tool/default.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/default.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/default.py 2014/09/27 12:51:43 garyo" import SCons.Tool diff --git a/scons/scons-local-2.3.4/SCons/Tool/dmd.py b/scons/scons-local-2.3.4/SCons/Tool/dmd.py new file mode 100644 index 000000000..d7b797420 --- /dev/null +++ b/scons/scons-local-2.3.4/SCons/Tool/dmd.py @@ -0,0 +1,152 @@ +"""SCons.Tool.dmd + +Tool-specific initialization for the Digital Mars D compiler. +(http://digitalmars.com/d) + +Originally coded by Andy Friesen (andy@ikagames.com) +15 November 2003 + +Evolved by Russel Winder (russel@winder.org.uk) +2010-02-07 onwards + +There are a number of problems with this script at this point in time. +The one that irritates the most is the Windows linker setup. The D +linker doesn't have a way to add lib paths on the commandline, as far +as I can see. You have to specify paths relative to the SConscript or +use absolute paths. To hack around it, add '#/blah'. This will link +blah.lib from the directory where SConstruct resides. + +Compiler variables: + DC - The name of the D compiler to use. Defaults to dmd or gdmd, + whichever is found. + DPATH - List of paths to search for import modules. + DVERSIONS - List of version tags to enable when compiling. + DDEBUG - List of debug tags to enable when compiling. + +Linker related variables: + LIBS - List of library files to link in. + DLINK - Name of the linker to use. Defaults to dmd or gdmd, + whichever is found. + DLINKFLAGS - List of linker flags. + +Lib tool variables: + DLIB - Name of the lib tool to use. Defaults to lib. + DLIBFLAGS - List of flags to pass to the lib tool. + LIBS - Same as for the linker. (libraries to pull into the .lib) +""" + +# +# Copyright (c) 2001 - 2014 The SCons Foundation +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# + +__revision__ = "src/engine/SCons/Tool/dmd.py 2014/09/27 12:51:43 garyo" + +import os +import subprocess + +import SCons.Action +import SCons.Builder +import SCons.Defaults +import SCons.Scanner.D +import SCons.Tool + +import SCons.Tool.DCommon + + +def generate(env): + static_obj, shared_obj = SCons.Tool.createObjBuilders(env) + + static_obj.add_action('.d', SCons.Defaults.DAction) + shared_obj.add_action('.d', SCons.Defaults.ShDAction) + static_obj.add_emitter('.d', SCons.Defaults.StaticObjectEmitter) + shared_obj.add_emitter('.d', SCons.Defaults.SharedObjectEmitter) + + env['DC'] = env.Detect(['dmd', 'gdmd']) + env['DCOM'] = '$DC $_DINCFLAGS $_DVERFLAGS $_DDEBUGFLAGS $_DFLAGS -c -of$TARGET $SOURCES' + env['_DINCFLAGS'] = '$( ${_concat(DINCPREFIX, DPATH, DINCSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)' + env['_DVERFLAGS'] = '$( ${_concat(DVERPREFIX, DVERSIONS, DVERSUFFIX, __env__)} $)' + env['_DDEBUGFLAGS'] = '$( ${_concat(DDEBUGPREFIX, DDEBUG, DDEBUGSUFFIX, __env__)} $)' + env['_DFLAGS'] = '$( ${_concat(DFLAGPREFIX, DFLAGS, DFLAGSUFFIX, __env__)} $)' + + env['SHDC'] = '$DC' + env['SHDCOM'] = '$DC $_DINCFLAGS $_DVERFLAGS $_DDEBUGFLAGS $_DFLAGS -c -fPIC -of$TARGET $SOURCES' + + env['DPATH'] = ['#/'] + env['DFLAGS'] = [] + env['DVERSIONS'] = [] + env['DDEBUG'] = [] + + if env['DC']: + SCons.Tool.DCommon.addDPATHToEnv(env, env['DC']) + + env['DINCPREFIX'] = '-I' + env['DINCSUFFIX'] = '' + env['DVERPREFIX'] = '-version=' + env['DVERSUFFIX'] = '' + env['DDEBUGPREFIX'] = '-debug=' + env['DDEBUGSUFFIX'] = '' + env['DFLAGPREFIX'] = '-' + env['DFLAGSUFFIX'] = '' + env['DFILESUFFIX'] = '.d' + + env['DLINK'] = '$DC' + env['DLINKFLAGS'] = SCons.Util.CLVar('') + env['DLINKCOM'] = '$DLINK -of$TARGET $DLINKFLAGS $__DRPATH $SOURCES $_DLIBDIRFLAGS $_DLIBFLAGS' + + env['DSHLINK'] = '$DC' + env['DSHLINKFLAGS'] = SCons.Util.CLVar('$DLINKFLAGS -shared -defaultlib=libphobos2.so') + env['SHDLINKCOM'] = '$DLINK -of$TARGET $DSHLINKFLAGS $__DRPATH $SOURCES $_DLIBDIRFLAGS $_DLIBFLAGS' + + env['DLIBLINKPREFIX'] = '' if env['PLATFORM'] == 'win32' else '-L-l' + env['DLIBLINKSUFFIX'] = '.lib' if env['PLATFORM'] == 'win32' else '' + env['_DLIBFLAGS'] = '${_stripixes(DLIBLINKPREFIX, LIBS, DLIBLINKSUFFIX, LIBPREFIXES, LIBSUFFIXES, __env__)}' + + env['DLIBDIRPREFIX'] = '-L-L' + env['DLIBDIRSUFFIX'] = '' + env['_DLIBDIRFLAGS'] = '$( ${_concat(DLIBDIRPREFIX, LIBPATH, DLIBDIRSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)' + + + env['DLIB'] = 'lib' if env['PLATFORM'] == 'win32' else 'ar cr' + env['DLIBCOM'] = '$DLIB $_DLIBFLAGS {0}$TARGET $SOURCES $_DLIBFLAGS'.format('-c ' if env['PLATFORM'] == 'win32' else '') + + #env['_DLIBFLAGS'] = '$( ${_concat(DLIBFLAGPREFIX, DLIBFLAGS, DLIBFLAGSUFFIX, __env__)} $)' + + env['DLIBFLAGPREFIX'] = '-' + env['DLIBFLAGSUFFIX'] = '' + + # __RPATH is set to $_RPATH in the platform specification if that + # platform supports it. + env['DRPATHPREFIX'] = '-L-rpath=' + env['DRPATHSUFFIX'] = '' + env['_DRPATH'] = '${_concat(DRPATHPREFIX, RPATH, DRPATHSUFFIX, __env__)}' + + SCons.Tool.createStaticLibBuilder(env) + + +def exists(env): + return env.Detect(['dmd', 'gdmd']) + +# Local Variables: +# tab-width:4 +# indent-tabs-mode:nil +# End: +# vim: set expandtab tabstop=4 shiftwidth=4: diff --git a/scons/scons-local-2.3.1/SCons/Tool/docbook/__init__.py b/scons/scons-local-2.3.4/SCons/Tool/docbook/__init__.py similarity index 99% rename from scons/scons-local-2.3.1/SCons/Tool/docbook/__init__.py rename to scons/scons-local-2.3.4/SCons/Tool/docbook/__init__.py index 72ea17586..26a1a953f 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/docbook/__init__.py +++ b/scons/scons-local-2.3.4/SCons/Tool/docbook/__init__.py @@ -242,7 +242,7 @@ def __xml_scan(node, env, path, arg): styledoc = libxml2.parseFile(xsl_file) style = libxslt.parseStylesheetDoc(styledoc) - doc = libxml2.parseFile(str(node)) + doc = libxml2.readFile(str(node), None, libxml2.XML_PARSE_NOENT) result = style.applyStylesheet(doc, None) depfiles = [] @@ -348,7 +348,7 @@ def __xinclude_libxml2(target, source, env): Resolving XIncludes, using the libxml2 module. """ doc = libxml2.readFile(str(source[0]), None, libxml2.XML_PARSE_NOENT) - doc.xincludeProcess() + doc.xincludeProcessFlags(libxml2.XML_PARSE_NOENT) doc.saveFile(str(target[0])) doc.freeDoc() @@ -429,6 +429,11 @@ def DocbookEpub(env, target, source=None, *args, **kw): mime_file.close() zf.write(mime_file.name, compress_type = zipfile.ZIP_STORED) for s in source: + if os.path.isfile(str(s)): + head, tail = os.path.split(str(s)) + if not head: + continue + s = head for dirpath, dirnames, filenames in os.walk(str(s)): for fname in filenames: path = os.path.join(dirpath, fname) diff --git a/scons/scons-local-2.3.1/SCons/Tool/dvi.py b/scons/scons-local-2.3.4/SCons/Tool/dvi.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/Tool/dvi.py rename to scons/scons-local-2.3.4/SCons/Tool/dvi.py index f5caf21f7..e058196fb 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/dvi.py +++ b/scons/scons-local-2.3.4/SCons/Tool/dvi.py @@ -5,7 +5,7 @@ Common DVI Builder definition for various other Tool modules that use it. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -27,7 +27,7 @@ Common DVI Builder definition for various other Tool modules that use it. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/dvi.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/dvi.py 2014/09/27 12:51:43 garyo" import SCons.Builder import SCons.Tool diff --git a/scons/scons-local-2.3.1/SCons/Tool/dvipdf.py b/scons/scons-local-2.3.4/SCons/Tool/dvipdf.py similarity index 95% rename from scons/scons-local-2.3.1/SCons/Tool/dvipdf.py rename to scons/scons-local-2.3.4/SCons/Tool/dvipdf.py index a49a11241..d4bdfaebc 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/dvipdf.py +++ b/scons/scons-local-2.3.4/SCons/Tool/dvipdf.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/dvipdf.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/dvipdf.py 2014/09/27 12:51:43 garyo" import SCons.Action import SCons.Defaults diff --git a/scons/scons-local-2.3.1/SCons/Tool/dvips.py b/scons/scons-local-2.3.4/SCons/Tool/dvips.py similarity index 94% rename from scons/scons-local-2.3.1/SCons/Tool/dvips.py rename to scons/scons-local-2.3.4/SCons/Tool/dvips.py index 2b09245eb..c8381705e 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/dvips.py +++ b/scons/scons-local-2.3.4/SCons/Tool/dvips.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/dvips.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/dvips.py 2014/09/27 12:51:43 garyo" import SCons.Action import SCons.Builder diff --git a/scons/scons-local-2.3.1/SCons/Tool/f03.py b/scons/scons-local-2.3.4/SCons/Tool/f03.py similarity index 90% rename from scons/scons-local-2.3.1/SCons/Tool/f03.py rename to scons/scons-local-2.3.4/SCons/Tool/f03.py index 258db7066..a40ec4196 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/f03.py +++ b/scons/scons-local-2.3.4/SCons/Tool/f03.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/f03.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/f03.py 2014/09/27 12:51:43 garyo" import SCons.Defaults import SCons.Tool diff --git a/scons/scons-local-2.3.1/SCons/Tool/f77.py b/scons/scons-local-2.3.4/SCons/Tool/f77.py similarity index 90% rename from scons/scons-local-2.3.1/SCons/Tool/f77.py rename to scons/scons-local-2.3.4/SCons/Tool/f77.py index c56f72782..bcedb878c 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/f77.py +++ b/scons/scons-local-2.3.4/SCons/Tool/f77.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/f77.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/f77.py 2014/09/27 12:51:43 garyo" import SCons.Defaults import SCons.Scanner.Fortran diff --git a/scons/scons-local-2.3.1/SCons/Tool/f90.py b/scons/scons-local-2.3.4/SCons/Tool/f90.py similarity index 90% rename from scons/scons-local-2.3.1/SCons/Tool/f90.py rename to scons/scons-local-2.3.4/SCons/Tool/f90.py index 39be3b4bd..93faab916 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/f90.py +++ b/scons/scons-local-2.3.4/SCons/Tool/f90.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/f90.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/f90.py 2014/09/27 12:51:43 garyo" import SCons.Defaults import SCons.Scanner.Fortran diff --git a/scons/scons-local-2.3.1/SCons/Tool/f95.py b/scons/scons-local-2.3.4/SCons/Tool/f95.py similarity index 90% rename from scons/scons-local-2.3.1/SCons/Tool/f95.py rename to scons/scons-local-2.3.4/SCons/Tool/f95.py index 3acc39a51..f8ccb257e 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/f95.py +++ b/scons/scons-local-2.3.4/SCons/Tool/f95.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/f95.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/f95.py 2014/09/27 12:51:43 garyo" import SCons.Defaults import SCons.Tool diff --git a/scons/scons-local-2.3.1/SCons/Tool/filesystem.py b/scons/scons-local-2.3.4/SCons/Tool/filesystem.py similarity index 94% rename from scons/scons-local-2.3.1/SCons/Tool/filesystem.py rename to scons/scons-local-2.3.4/SCons/Tool/filesystem.py index 3c124b79c..00b47e69e 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/filesystem.py +++ b/scons/scons-local-2.3.4/SCons/Tool/filesystem.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/filesystem.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/filesystem.py 2014/09/27 12:51:43 garyo" import SCons from SCons.Tool.install import copyFunc diff --git a/scons/scons-local-2.3.1/SCons/Tool/fortran.py b/scons/scons-local-2.3.4/SCons/Tool/fortran.py similarity index 90% rename from scons/scons-local-2.3.1/SCons/Tool/fortran.py rename to scons/scons-local-2.3.4/SCons/Tool/fortran.py index b3b0d0b8e..4fea600f5 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/fortran.py +++ b/scons/scons-local-2.3.4/SCons/Tool/fortran.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/fortran.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/fortran.py 2014/09/27 12:51:43 garyo" import re diff --git a/scons/scons-local-2.3.1/SCons/Tool/g++.py b/scons/scons-local-2.3.4/SCons/Tool/g++.py similarity index 66% rename from scons/scons-local-2.3.1/SCons/Tool/g++.py rename to scons/scons-local-2.3.4/SCons/Tool/g++.py index d894644e4..3b4e383b1 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/g++.py +++ b/scons/scons-local-2.3.4/SCons/Tool/g++.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/g++.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/g++.py 2014/09/27 12:51:43 garyo" import os.path import re @@ -40,6 +40,8 @@ import subprocess import SCons.Tool import SCons.Util +import gcc + cplusplus = __import__('c++', globals(), locals(), []) compilers = ['g++'] @@ -48,9 +50,10 @@ def generate(env): """Add Builders and construction variables for g++ to an Environment.""" static_obj, shared_obj = SCons.Tool.createObjBuilders(env) - cplusplus.generate(env) + if 'CXX' not in env: + env['CXX'] = env.Detect(compilers) or compilers[0] - env['CXX'] = env.Detect(compilers) + cplusplus.generate(env) # platform specific settings if env['PLATFORM'] == 'aix': @@ -62,26 +65,13 @@ def generate(env): elif env['PLATFORM'] == 'sunos': env['SHOBJSUFFIX'] = '.pic.o' # determine compiler version - if env['CXX']: - #pipe = SCons.Action._subproc(env, [env['CXX'], '-dumpversion'], - pipe = SCons.Action._subproc(env, [env['CXX'], '--version'], - stdin = 'devnull', - stderr = 'devnull', - stdout = subprocess.PIPE) - if pipe.wait() != 0: return - # -dumpversion was added in GCC 3.0. As long as we're supporting - # GCC versions older than that, we should use --version and a - # regular expression. - #line = pipe.stdout.read().strip() - #if line: - # env['CXXVERSION'] = line - line = pipe.stdout.readline() - match = re.search(r'[0-9]+(\.[0-9]+)+', line) - if match: - env['CXXVERSION'] = match.group(0) + version = gcc.detect_version(env, env['CXX']) + if version: + env['CXXVERSION'] = version def exists(env): - return env.Detect(compilers) + # is executable, and is a GNU compiler (or accepts '--version' at least) + return gcc.detect_version(env, env.Detect(env.get('CXX', compilers))) # Local Variables: # tab-width:4 diff --git a/scons/scons-local-2.3.1/SCons/Tool/g77.py b/scons/scons-local-2.3.4/SCons/Tool/g77.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Tool/g77.py rename to scons/scons-local-2.3.4/SCons/Tool/g77.py index 7a7b7aefc..8f9dc1e74 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/g77.py +++ b/scons/scons-local-2.3.4/SCons/Tool/g77.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/g77.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/g77.py 2014/09/27 12:51:43 garyo" import SCons.Util from SCons.Tool.FortranCommon import add_all_to_env, add_f77_to_env diff --git a/scons/scons-local-2.3.1/SCons/Tool/gas.py b/scons/scons-local-2.3.4/SCons/Tool/gas.py similarity index 89% rename from scons/scons-local-2.3.1/SCons/Tool/gas.py rename to scons/scons-local-2.3.4/SCons/Tool/gas.py index f016c969f..11274e378 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/gas.py +++ b/scons/scons-local-2.3.4/SCons/Tool/gas.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/gas.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/gas.py 2014/09/27 12:51:43 garyo" as_module = __import__('as', globals(), locals(), []) diff --git a/scons/scons-local-2.3.1/SCons/Tool/gcc.py b/scons/scons-local-2.3.4/SCons/Tool/gcc.py similarity index 53% rename from scons/scons-local-2.3.1/SCons/Tool/gcc.py rename to scons/scons-local-2.3.4/SCons/Tool/gcc.py index 09e48319f..d52201b16 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/gcc.py +++ b/scons/scons-local-2.3.4/SCons/Tool/gcc.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/gcc.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/gcc.py 2014/09/27 12:51:43 garyo" import cc import os @@ -44,34 +44,54 @@ compilers = ['gcc', 'cc'] def generate(env): """Add Builders and construction variables for gcc to an Environment.""" + + if 'CC' not in env: + env['CC'] = env.Detect(compilers) or compilers[0] + cc.generate(env) - env['CC'] = env.Detect(compilers) or 'gcc' if env['PLATFORM'] in ['cygwin', 'win32']: env['SHCCFLAGS'] = SCons.Util.CLVar('$CCFLAGS') else: env['SHCCFLAGS'] = SCons.Util.CLVar('$CCFLAGS -fPIC') # determine compiler version - if env['CC']: - #pipe = SCons.Action._subproc(env, [env['CC'], '-dumpversion'], - pipe = SCons.Action._subproc(env, [env['CC'], '--version'], - stdin = 'devnull', - stderr = 'devnull', - stdout = subprocess.PIPE) - if pipe.wait() != 0: return - # -dumpversion was added in GCC 3.0. As long as we're supporting - # GCC versions older than that, we should use --version and a - # regular expression. - #line = pipe.stdout.read().strip() - #if line: - # env['CCVERSION'] = line - line = pipe.stdout.readline() - match = re.search(r'[0-9]+(\.[0-9]+)+', line) - if match: - env['CCVERSION'] = match.group(0) + version = detect_version(env, env['CC']) + if version: + env['CCVERSION'] = version def exists(env): - return env.Detect(compilers) + # is executable, and is a GNU compiler (or accepts '--version' at least) + return detect_version(env, env.Detect(env.get('CC', compilers))) + +def detect_version(env, cc): + """Return the version of the GNU compiler, or None if it is not a GNU compiler.""" + cc = env.subst(cc) + if not cc: + return None + version = None + #pipe = SCons.Action._subproc(env, SCons.Util.CLVar(cc) + ['-dumpversion'], + pipe = SCons.Action._subproc(env, SCons.Util.CLVar(cc) + ['--version'], + stdin = 'devnull', + stderr = 'devnull', + stdout = subprocess.PIPE) + # -dumpversion was added in GCC 3.0. As long as we're supporting + # GCC versions older than that, we should use --version and a + # regular expression. + #line = pipe.stdout.read().strip() + #if line: + # version = line + line = pipe.stdout.readline() + match = re.search(r'[0-9]+(\.[0-9]+)+', line) + if match: + version = match.group(0) + # Non-GNU compiler's output (like AIX xlc's) may exceed the stdout buffer: + # So continue with reading to let the child process actually terminate. + while pipe.stdout.readline(): + pass + ret = pipe.wait() + if ret != 0: + return None + return version # Local Variables: # tab-width:4 diff --git a/scons/scons-local-2.3.4/SCons/Tool/gdc.py b/scons/scons-local-2.3.4/SCons/Tool/gdc.py new file mode 100644 index 000000000..52bfb9bcc --- /dev/null +++ b/scons/scons-local-2.3.4/SCons/Tool/gdc.py @@ -0,0 +1,128 @@ +"""SCons.Tool.gdc + +Tool-specific initialization for the GDC compiler. +(https://github.com/D-Programming-GDC/GDC) + +Developed by Russel Winder (russel@winder.org.uk) +2012-05-09 onwards + +Compiler variables: + DC - The name of the D compiler to use. Defaults to gdc. + DPATH - List of paths to search for import modules. + DVERSIONS - List of version tags to enable when compiling. + DDEBUG - List of debug tags to enable when compiling. + +Linker related variables: + LIBS - List of library files to link in. + DLINK - Name of the linker to use. Defaults to gdc. + DLINKFLAGS - List of linker flags. + +Lib tool variables: + DLIB - Name of the lib tool to use. Defaults to lib. + DLIBFLAGS - List of flags to pass to the lib tool. + LIBS - Same as for the linker. (libraries to pull into the .lib) +""" + +# +# Copyright (c) 2001 - 2014 The SCons Foundation +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# + +__revision__ = "src/engine/SCons/Tool/gdc.py 2014/09/27 12:51:43 garyo" + +import SCons.Action +import SCons.Defaults +import SCons.Tool + +import SCons.Tool.DCommon + + +def generate(env): + static_obj, shared_obj = SCons.Tool.createObjBuilders(env) + + static_obj.add_action('.d', SCons.Defaults.DAction) + shared_obj.add_action('.d', SCons.Defaults.ShDAction) + static_obj.add_emitter('.d', SCons.Defaults.StaticObjectEmitter) + shared_obj.add_emitter('.d', SCons.Defaults.SharedObjectEmitter) + + env['DC'] = env.Detect('gdc') + env['DCOM'] = '$DC $_DINCFLAGS $_DVERFLAGS $_DDEBUGFLAGS $_DFLAGS -c -o $TARGET $SOURCES' + env['_DINCFLAGS'] = '$( ${_concat(DINCPREFIX, DPATH, DINCSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)' + env['_DVERFLAGS'] = '$( ${_concat(DVERPREFIX, DVERSIONS, DVERSUFFIX, __env__)} $)' + env['_DDEBUGFLAGS'] = '$( ${_concat(DDEBUGPREFIX, DDEBUG, DDEBUGSUFFIX, __env__)} $)' + env['_DFLAGS'] = '$( ${_concat(DFLAGPREFIX, DFLAGS, DFLAGSUFFIX, __env__)} $)' + + env['SHDC'] = '$DC' + env['SHDCOM'] = '$SHDC $_DINCFLAGS $_DVERFLAGS $_DDEBUGFLAGS $_DFLAGS -fPIC -c -o $TARGET $SOURCES' + + env['DPATH'] = ['#/'] + env['DFLAGS'] = [] + env['DVERSIONS'] = [] + env['DDEBUG'] = [] + + if env['DC']: + SCons.Tool.DCommon.addDPATHToEnv(env, env['DC']) + + env['DINCPREFIX'] = '-I' + env['DINCSUFFIX'] = '' + env['DVERPREFIX'] = '-version=' + env['DVERSUFFIX'] = '' + env['DDEBUGPREFIX'] = '-debug=' + env['DDEBUGSUFFIX'] = '' + env['DFLAGPREFIX'] = '-' + env['DFLAGSUFFIX'] = '' + env['DFILESUFFIX'] = '.d' + + env['DLINK'] = '$DC' + env['DLINKFLAGS'] = SCons.Util.CLVar('') + env['DLINKCOM'] = '$DLINK -o $TARGET $DLINKFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS $_LIBFLAGS' + + env['DSHLINK'] = '$DC' + env['DSHLINKFLAGS'] = SCons.Util.CLVar('$DLINKFLAGS -shared') + env['SHDLINKCOM'] = '$DLINK -o $TARGET $DSHLINKFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS $_LIBFLAGS' + + env['DLIB'] = 'lib' if env['PLATFORM'] == 'win32' else 'ar cr' + env['DLIBCOM'] = '$DLIB $_DLIBFLAGS {0}$TARGET $SOURCES $_DLINKLIBFLAGS'.format('-c ' if env['PLATFORM'] == 'win32' else '') + + env['_DLIBFLAGS'] = '$( ${_concat(DLIBFLAGPREFIX, DLIBFLAGS, DLIBFLAGSUFFIX, __env__)} $)' + + env['DLIBFLAGPREFIX'] = '-' + env['DLIBFLAGSUFFIX'] = '' + env['DLINKFLAGPREFIX'] = '-' + env['DLINKFLAGSUFFIX'] = '' + + # __RPATH is set to $_RPATH in the platform specification if that + # platform supports it. + env['RPATHPREFIX'] = '-Wl,-rpath=' + env['RPATHSUFFIX'] = '' + env['_RPATH'] = '${_concat(RPATHPREFIX, RPATH, RPATHSUFFIX, __env__)}' + + SCons.Tool.createStaticLibBuilder(env) + + +def exists(env): + return env.Detect('gdc') + +# Local Variables: +# tab-width:4 +# indent-tabs-mode:nil +# End: +# vim: set expandtab tabstop=4 shiftwidth=4: diff --git a/scons/scons-local-2.3.1/SCons/Tool/gettext.py b/scons/scons-local-2.3.4/SCons/Tool/gettext.py similarity index 90% rename from scons/scons-local-2.3.1/SCons/Tool/gettext.py rename to scons/scons-local-2.3.4/SCons/Tool/gettext.py index 8a2588834..6a7f68153 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/gettext.py +++ b/scons/scons-local-2.3.4/SCons/Tool/gettext.py @@ -2,7 +2,7 @@ """ -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -23,7 +23,7 @@ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/gettext.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/gettext.py 2014/09/27 12:51:43 garyo" ############################################################################# def generate(env,**kw): diff --git a/scons/scons-local-2.3.1/SCons/Tool/gfortran.py b/scons/scons-local-2.3.4/SCons/Tool/gfortran.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/Tool/gfortran.py rename to scons/scons-local-2.3.4/SCons/Tool/gfortran.py index 4d2c137d1..53a2104d0 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/gfortran.py +++ b/scons/scons-local-2.3.4/SCons/Tool/gfortran.py @@ -10,7 +10,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -32,7 +32,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/gfortran.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/gfortran.py 2014/09/27 12:51:43 garyo" import SCons.Util diff --git a/scons/scons-local-2.3.1/SCons/Tool/gnulink.py b/scons/scons-local-2.3.4/SCons/Tool/gnulink.py similarity index 78% rename from scons/scons-local-2.3.1/SCons/Tool/gnulink.py rename to scons/scons-local-2.3.4/SCons/Tool/gnulink.py index d475de444..8dc649154 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/gnulink.py +++ b/scons/scons-local-2.3.4/SCons/Tool/gnulink.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,14 +31,12 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/gnulink.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/gnulink.py 2014/09/27 12:51:43 garyo" import SCons.Util import link -linkers = ['g++', 'gcc'] - def generate(env): """Add Builders and construction variables for gnulink to an Environment.""" link.generate(env) @@ -53,7 +51,14 @@ def generate(env): env['_RPATH'] = '${_concat(RPATHPREFIX, RPATH, RPATHSUFFIX, __env__)}' def exists(env): - return env.Detect(linkers) + # TODO: sync with link.smart_link() to choose a linker + linkers = { 'CXX': ['g++'], 'CC': ['gcc'] } + alltools = [] + for langvar, linktools in linkers.items(): + if langvar in env: # use CC over CXX when user specified CC but not CXX + return SCons.Tool.FindTool(linktools, env) + alltools.extend(linktools) + return SCons.Tool.FindTool(alltools, env) # find CXX or CC # Local Variables: # tab-width:4 diff --git a/scons/scons-local-2.3.1/SCons/Tool/gs.py b/scons/scons-local-2.3.4/SCons/Tool/gs.py similarity index 93% rename from scons/scons-local-2.3.1/SCons/Tool/gs.py rename to scons/scons-local-2.3.4/SCons/Tool/gs.py index 91c6434a0..0cb4c5ddb 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/gs.py +++ b/scons/scons-local-2.3.4/SCons/Tool/gs.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/gs.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/gs.py 2014/09/27 12:51:43 garyo" import SCons.Action import SCons.Builder diff --git a/scons/scons-local-2.3.1/SCons/Tool/hpc++.py b/scons/scons-local-2.3.4/SCons/Tool/hpc++.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Tool/hpc++.py rename to scons/scons-local-2.3.4/SCons/Tool/hpc++.py index 4920cffe1..2ec4e8280 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/hpc++.py +++ b/scons/scons-local-2.3.4/SCons/Tool/hpc++.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/hpc++.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/hpc++.py 2014/09/27 12:51:43 garyo" import os.path diff --git a/scons/scons-local-2.3.1/SCons/Tool/hpcc.py b/scons/scons-local-2.3.4/SCons/Tool/hpcc.py similarity index 89% rename from scons/scons-local-2.3.1/SCons/Tool/hpcc.py rename to scons/scons-local-2.3.4/SCons/Tool/hpcc.py index bb745bae2..cce0517d0 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/hpcc.py +++ b/scons/scons-local-2.3.4/SCons/Tool/hpcc.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/hpcc.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/hpcc.py 2014/09/27 12:51:43 garyo" import SCons.Util diff --git a/scons/scons-local-2.3.1/SCons/Tool/hplink.py b/scons/scons-local-2.3.4/SCons/Tool/hplink.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/Tool/hplink.py rename to scons/scons-local-2.3.4/SCons/Tool/hplink.py index ea979f568..9f7221bbb 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/hplink.py +++ b/scons/scons-local-2.3.4/SCons/Tool/hplink.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/hplink.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/hplink.py 2014/09/27 12:51:43 garyo" import os import os.path diff --git a/scons/scons-local-2.3.1/SCons/Tool/icc.py b/scons/scons-local-2.3.4/SCons/Tool/icc.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/Tool/icc.py rename to scons/scons-local-2.3.4/SCons/Tool/icc.py index ac0629c6a..2591756e3 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/icc.py +++ b/scons/scons-local-2.3.4/SCons/Tool/icc.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/icc.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/icc.py 2014/09/27 12:51:43 garyo" import cc diff --git a/scons/scons-local-2.3.1/SCons/Tool/icl.py b/scons/scons-local-2.3.4/SCons/Tool/icl.py similarity index 90% rename from scons/scons-local-2.3.1/SCons/Tool/icl.py rename to scons/scons-local-2.3.4/SCons/Tool/icl.py index 518a90267..66b1e20b0 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/icl.py +++ b/scons/scons-local-2.3.4/SCons/Tool/icl.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/icl.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/icl.py 2014/09/27 12:51:43 garyo" import SCons.Tool.intelc diff --git a/scons/scons-local-2.3.1/SCons/Tool/ifl.py b/scons/scons-local-2.3.4/SCons/Tool/ifl.py similarity index 93% rename from scons/scons-local-2.3.1/SCons/Tool/ifl.py rename to scons/scons-local-2.3.4/SCons/Tool/ifl.py index 6e52fca03..d4453bdbc 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/ifl.py +++ b/scons/scons-local-2.3.4/SCons/Tool/ifl.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/ifl.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/ifl.py 2014/09/27 12:51:43 garyo" import SCons.Defaults from SCons.Scanner.Fortran import FortranScan diff --git a/scons/scons-local-2.3.1/SCons/Tool/ifort.py b/scons/scons-local-2.3.4/SCons/Tool/ifort.py similarity index 94% rename from scons/scons-local-2.3.1/SCons/Tool/ifort.py rename to scons/scons-local-2.3.4/SCons/Tool/ifort.py index c61dc1275..c28fd008b 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/ifort.py +++ b/scons/scons-local-2.3.4/SCons/Tool/ifort.py @@ -10,7 +10,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -32,7 +32,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/ifort.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/ifort.py 2014/09/27 12:51:43 garyo" import SCons.Defaults from SCons.Scanner.Fortran import FortranScan diff --git a/scons/scons-local-2.3.1/SCons/Tool/ilink.py b/scons/scons-local-2.3.4/SCons/Tool/ilink.py similarity index 90% rename from scons/scons-local-2.3.1/SCons/Tool/ilink.py rename to scons/scons-local-2.3.4/SCons/Tool/ilink.py index 7cd94d74e..4ba870f34 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/ilink.py +++ b/scons/scons-local-2.3.4/SCons/Tool/ilink.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/ilink.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/ilink.py 2014/09/27 12:51:43 garyo" import SCons.Defaults import SCons.Tool diff --git a/scons/scons-local-2.3.1/SCons/Tool/ilink32.py b/scons/scons-local-2.3.4/SCons/Tool/ilink32.py similarity index 90% rename from scons/scons-local-2.3.1/SCons/Tool/ilink32.py rename to scons/scons-local-2.3.4/SCons/Tool/ilink32.py index c8a49db78..c915276d3 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/ilink32.py +++ b/scons/scons-local-2.3.4/SCons/Tool/ilink32.py @@ -5,7 +5,7 @@ XXX """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -27,7 +27,7 @@ XXX # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/ilink32.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/ilink32.py 2014/09/27 12:51:43 garyo" import SCons.Tool import SCons.Tool.bcc32 diff --git a/scons/scons-local-2.3.1/SCons/Tool/install.py b/scons/scons-local-2.3.4/SCons/Tool/install.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Tool/install.py rename to scons/scons-local-2.3.4/SCons/Tool/install.py index 8c3265078..5aff9a8d4 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/install.py +++ b/scons/scons-local-2.3.4/SCons/Tool/install.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/install.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/install.py 2014/09/27 12:51:43 garyo" import os import re diff --git a/scons/scons-local-2.3.1/SCons/Tool/intelc.py b/scons/scons-local-2.3.4/SCons/Tool/intelc.py similarity index 88% rename from scons/scons-local-2.3.1/SCons/Tool/intelc.py rename to scons/scons-local-2.3.4/SCons/Tool/intelc.py index 1bd799fd7..20af1c5f5 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/intelc.py +++ b/scons/scons-local-2.3.4/SCons/Tool/intelc.py @@ -10,7 +10,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -32,7 +32,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. from __future__ import division -__revision__ = "src/engine/SCons/Tool/intelc.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/intelc.py 2014/09/27 12:51:43 garyo" import math, sys, os.path, glob, string, re @@ -156,7 +156,43 @@ def get_intel_registry_value(valuename, version=None, abi=None): try: k = SCons.Util.RegOpenKeyEx(SCons.Util.HKEY_LOCAL_MACHINE, K) except SCons.Util.RegError: - raise MissingRegistryError("%s was not found in the registry, for Intel compiler version %s, abi='%s'"%(K, version,abi)) + # For version 13 and later, check UUID subkeys for valuename + if is_win64: + K = 'Software\\Wow6432Node\\Intel\\Suites\\' + version + "\\Defaults\\C++\\" + abi.upper() + else: + K = 'Software\\Intel\\Suites\\' + version + "\\Defaults\\C++\\" + abi.upper() + try: + k = SCons.Util.RegOpenKeyEx(SCons.Util.HKEY_LOCAL_MACHINE, K) + uuid = SCons.Util.RegQueryValueEx(k, 'SubKey')[0] + + if is_win64: + K = 'Software\\Wow6432Node\\Intel\\Suites\\' + version + "\\" + uuid + "\\C++" + else: + K = 'Software\\Intel\\Suites\\' + version + "\\" + uuid + "\\C++" + k = SCons.Util.RegOpenKeyEx(SCons.Util.HKEY_LOCAL_MACHINE, K) + + try: + v = SCons.Util.RegQueryValueEx(k, valuename)[0] + return v # or v.encode('iso-8859-1', 'replace') to remove unicode? + except SCons.Util.RegError: + if abi.upper() == 'EM64T': + abi = 'em64t_native' + if is_win64: + K = 'Software\\Wow6432Node\\Intel\\Suites\\' + version + "\\" + uuid + "\\C++\\" + abi.upper() + else: + K = 'Software\\Intel\\Suites\\' + version + "\\" + uuid + "\\C++\\" + abi.upper() + k = SCons.Util.RegOpenKeyEx(SCons.Util.HKEY_LOCAL_MACHINE, K) + + try: + v = SCons.Util.RegQueryValueEx(k, valuename)[0] + return v # or v.encode('iso-8859-1', 'replace') to remove unicode? + except SCons.Util.RegError: + raise MissingRegistryError("%s was not found in the registry, for Intel compiler version %s, abi='%s'"%(K, version,abi)) + + except SCons.Util.RegError: + raise MissingRegistryError("%s was not found in the registry, for Intel compiler version %s, abi='%s'"%(K, version,abi)) + except WindowsError: + raise MissingRegistryError("%s was not found in the registry, for Intel compiler version %s, abi='%s'"%(K, version,abi)) # Get the value: try: @@ -180,7 +216,16 @@ def get_all_compiler_versions(): k = SCons.Util.RegOpenKeyEx(SCons.Util.HKEY_LOCAL_MACHINE, keyname) except WindowsError: - return [] + # For version 13 or later, check for default instance UUID + if is_win64: + keyname = 'Software\\WoW6432Node\\Intel\\Suites' + else: + keyname = 'Software\\Intel\\Suites' + try: + k = SCons.Util.RegOpenKeyEx(SCons.Util.HKEY_LOCAL_MACHINE, + keyname) + except WindowsError: + return [] i = 0 versions = [] try: @@ -192,6 +237,9 @@ def get_all_compiler_versions(): # and then the install directory deleted or moved (rather # than uninstalling properly), so the registry values # are still there. + if subkey == 'Defaults': # Ignore default instances + i = i + 1 + continue ok = False for try_abi in ('IA32', 'IA32e', 'IA64', 'EM64T'): try: @@ -268,9 +316,17 @@ def get_intel_compiler_top(version, abi): if not SCons.Util.can_read_reg: raise NoRegistryModuleError("No Windows registry module was found") top = get_intel_registry_value('ProductDir', version, abi) + archdir={'x86_64': 'intel64', + 'amd64' : 'intel64', + 'em64t' : 'intel64', + 'x86' : 'ia32', + 'i386' : 'ia32', + 'ia32' : 'ia32' + }[abi] # for v11 and greater # pre-11, icl was in Bin. 11 and later, it's in Bin/ apparently. if not os.path.exists(os.path.join(top, "Bin", "icl.exe")) \ - and not os.path.exists(os.path.join(top, "Bin", abi, "icl.exe")): + and not os.path.exists(os.path.join(top, "Bin", abi, "icl.exe")) \ + and not os.path.exists(os.path.join(top, "Bin", archdir, "icl.exe")): raise MissingDirError("Can't find Intel compiler in %s"%(top)) elif is_mac or is_linux: def find_in_2008style_dir(version): diff --git a/scons/scons-local-2.3.1/SCons/Tool/ipkg.py b/scons/scons-local-2.3.4/SCons/Tool/ipkg.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Tool/ipkg.py rename to scons/scons-local-2.3.4/SCons/Tool/ipkg.py index 3fb58db92..ccfa0e14e 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/ipkg.py +++ b/scons/scons-local-2.3.4/SCons/Tool/ipkg.py @@ -11,7 +11,7 @@ packages fake_root. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -33,7 +33,7 @@ packages fake_root. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/ipkg.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/ipkg.py 2014/09/27 12:51:43 garyo" import os diff --git a/scons/scons-local-2.3.1/SCons/Tool/jar.py b/scons/scons-local-2.3.4/SCons/Tool/jar.py similarity index 95% rename from scons/scons-local-2.3.1/SCons/Tool/jar.py rename to scons/scons-local-2.3.4/SCons/Tool/jar.py index 8b5c7f1fe..b99aa7f1a 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/jar.py +++ b/scons/scons-local-2.3.4/SCons/Tool/jar.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/jar.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/jar.py 2014/09/27 12:51:43 garyo" import SCons.Subst import SCons.Util diff --git a/scons/scons-local-2.3.1/SCons/Tool/javac.py b/scons/scons-local-2.3.4/SCons/Tool/javac.py similarity index 97% rename from scons/scons-local-2.3.1/SCons/Tool/javac.py rename to scons/scons-local-2.3.4/SCons/Tool/javac.py index 924998984..4fa23b14a 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/javac.py +++ b/scons/scons-local-2.3.4/SCons/Tool/javac.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/javac.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/javac.py 2014/09/27 12:51:43 garyo" import os import os.path diff --git a/scons/scons-local-2.3.1/SCons/Tool/javah.py b/scons/scons-local-2.3.4/SCons/Tool/javah.py similarity index 95% rename from scons/scons-local-2.3.1/SCons/Tool/javah.py rename to scons/scons-local-2.3.4/SCons/Tool/javah.py index 2c2533dc8..3deb78a71 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/javah.py +++ b/scons/scons-local-2.3.4/SCons/Tool/javah.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/javah.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/javah.py 2014/09/27 12:51:43 garyo" import os.path diff --git a/scons/scons-local-2.3.1/SCons/Tool/latex.py b/scons/scons-local-2.3.4/SCons/Tool/latex.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Tool/latex.py rename to scons/scons-local-2.3.4/SCons/Tool/latex.py index 899a508df..b83773526 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/latex.py +++ b/scons/scons-local-2.3.4/SCons/Tool/latex.py @@ -10,7 +10,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -32,7 +32,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/latex.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/latex.py 2014/09/27 12:51:43 garyo" import SCons.Action import SCons.Defaults diff --git a/scons/scons-local-2.3.4/SCons/Tool/ldc.py b/scons/scons-local-2.3.4/SCons/Tool/ldc.py new file mode 100644 index 000000000..a32c5ab60 --- /dev/null +++ b/scons/scons-local-2.3.4/SCons/Tool/ldc.py @@ -0,0 +1,141 @@ +"""SCons.Tool.ldc + +Tool-specific initialization for the LDC compiler. +(http://www.dsource.org/projects/ldc) + +Developed by Russel Winder (russel@winder.org.uk) +2012-05-09 onwards + +Compiler variables: + DC - The name of the D compiler to use. Defaults to ldc2. + DPATH - List of paths to search for import modules. + DVERSIONS - List of version tags to enable when compiling. + DDEBUG - List of debug tags to enable when compiling. + +Linker related variables: + LIBS - List of library files to link in. + DLINK - Name of the linker to use. Defaults to ldc2. + DLINKFLAGS - List of linker flags. + +Lib tool variables: + DLIB - Name of the lib tool to use. Defaults to lib. + DLIBFLAGS - List of flags to pass to the lib tool. + LIBS - Same as for the linker. (libraries to pull into the .lib) +""" + +# +# Copyright (c) 2001 - 2014 The SCons Foundation +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# + +__revision__ = "src/engine/SCons/Tool/ldc.py 2014/09/27 12:51:43 garyo" + +import os +import subprocess + +import SCons.Action +import SCons.Builder +import SCons.Defaults +import SCons.Scanner.D +import SCons.Tool + +import SCons.Tool.DCommon + + +def generate(env): + static_obj, shared_obj = SCons.Tool.createObjBuilders(env) + + static_obj.add_action('.d', SCons.Defaults.DAction) + shared_obj.add_action('.d', SCons.Defaults.ShDAction) + static_obj.add_emitter('.d', SCons.Defaults.StaticObjectEmitter) + shared_obj.add_emitter('.d', SCons.Defaults.SharedObjectEmitter) + + env['DC'] = env.Detect('ldc2') + env['DCOM'] = '$DC $_DINCFLAGS $_DVERFLAGS $_DDEBUGFLAGS $_DFLAGS -c -of=$TARGET $SOURCES' + env['_DINCFLAGS'] = '$( ${_concat(DINCPREFIX, DPATH, DINCSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)' + env['_DVERFLAGS'] = '$( ${_concat(DVERPREFIX, DVERSIONS, DVERSUFFIX, __env__)} $)' + env['_DDEBUGFLAGS'] = '$( ${_concat(DDEBUGPREFIX, DDEBUG, DDEBUGSUFFIX, __env__)} $)' + env['_DFLAGS'] = '$( ${_concat(DFLAGPREFIX, DFLAGS, DFLAGSUFFIX, __env__)} $)' + + env['SHDC'] = '$DC' + env['SHDCOM'] = '$DC $_DINCFLAGS $_DVERFLAGS $_DDEBUGFLAGS $_DFLAGS -c -relocation-model=pic -of=$TARGET $SOURCES' + + env['DPATH'] = ['#/'] + env['DFLAGS'] = [] + env['DVERSIONS'] = [] + env['DDEBUG'] = [] + + if env['DC']: + SCons.Tool.DCommon.addDPATHToEnv(env, env['DC']) + + env['DINCPREFIX'] = '-I=' + env['DINCSUFFIX'] = '' + env['DVERPREFIX'] = '-version=' + env['DVERSUFFIX'] = '' + env['DDEBUGPREFIX'] = '-debug=' + env['DDEBUGSUFFIX'] = '' + env['DFLAGPREFIX'] = '-' + env['DFLAGSUFFIX'] = '' + env['DFILESUFFIX'] = '.d' + + env['DLINK'] = '$DC' + env['DLINKFLAGS'] = SCons.Util.CLVar('') + env['DLINKCOM'] = '$DLINK -of=$TARGET $DLINKFLAGS $__DRPATH $SOURCES $_DLIBDIRFLAGS $_DLIBFLAGS' + + env['DSHLINK'] = '$DC' + env['DSHLINKFLAGS'] = SCons.Util.CLVar('$DLINKFLAGS -shared -defaultlib=phobos2') + env['SHDLINKCOM'] = '$DLINK -of=$TARGET $DSHLINKFLAGS $__DRPATH $SOURCES $_DLIBDIRFLAGS $_DLIBFLAGS' + + env['DLIBLINKPREFIX'] = '' if env['PLATFORM'] == 'win32' else '-L-l' + env['DLIBLINKSUFFIX'] = '.lib' if env['PLATFORM'] == 'win32' else '' + #env['_DLIBFLAGS'] = '$( ${_concat(DLIBLINKPREFIX, LIBS, DLIBLINKSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)' + env['_DLIBFLAGS'] = '${_stripixes(DLIBLINKPREFIX, LIBS, DLIBLINKSUFFIX, LIBPREFIXES, LIBSUFFIXES, __env__)}' + + env['DLIBDIRPREFIX'] = '-L-L' + env['DLIBDIRSUFFIX'] = '' + env['_DLIBDIRFLAGS'] = '$( ${_concat(DLIBDIRPREFIX, LIBPATH, DLIBDIRSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)' + + + env['DLIB'] = 'lib' if env['PLATFORM'] == 'win32' else 'ar cr' + env['DLIBCOM'] = '$DLIB $_DLIBFLAGS {0}$TARGET $SOURCES $_DLIBFLAGS'.format('-c ' if env['PLATFORM'] == 'win32' else '') + + #env['_DLIBFLAGS'] = '$( ${_concat(DLIBFLAGPREFIX, DLIBFLAGS, DLIBFLAGSUFFIX, __env__)} $)' + + env['DLIBFLAGPREFIX'] = '-' + env['DLIBFLAGSUFFIX'] = '' + + # __RPATH is set to $_RPATH in the platform specification if that + # platform supports it. + env['DRPATHPREFIX'] = '-L-rpath=' + env['DRPATHSUFFIX'] = '' + env['_DRPATH'] = '${_concat(DRPATHPREFIX, RPATH, DRPATHSUFFIX, __env__)}' + + SCons.Tool.createStaticLibBuilder(env) + + +def exists(env): + return env.Detect('ldc2') + +# Local Variables: +# tab-width:4 +# indent-tabs-mode:nil +# End: +# vim: set expandtab tabstop=4 shiftwidth=4: diff --git a/scons/scons-local-2.3.1/SCons/Tool/lex.py b/scons/scons-local-2.3.4/SCons/Tool/lex.py similarity index 94% rename from scons/scons-local-2.3.1/SCons/Tool/lex.py rename to scons/scons-local-2.3.4/SCons/Tool/lex.py index 00e292f03..501c6a1ec 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/lex.py +++ b/scons/scons-local-2.3.4/SCons/Tool/lex.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/lex.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/lex.py 2014/09/27 12:51:43 garyo" import os.path diff --git a/scons/scons-local-2.3.1/SCons/Tool/link.py b/scons/scons-local-2.3.4/SCons/Tool/link.py similarity index 94% rename from scons/scons-local-2.3.1/SCons/Tool/link.py rename to scons/scons-local-2.3.4/SCons/Tool/link.py index f6e883fd7..3871e8d46 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/link.py +++ b/scons/scons-local-2.3.4/SCons/Tool/link.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/link.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/link.py 2014/09/27 12:51:43 garyo" import re @@ -42,6 +42,8 @@ import SCons.Warnings from SCons.Tool.FortranCommon import isfortran +from SCons.Tool.DCommon import isD + cplusplus = __import__('c++', globals(), locals(), []) issued_mixed_link_warning = False @@ -49,7 +51,8 @@ issued_mixed_link_warning = False def smart_link(source, target, env, for_signature): has_cplusplus = cplusplus.iscplusplus(source) has_fortran = isfortran(env, source) - if has_cplusplus and has_fortran: + has_d = isD(env, source) + if has_cplusplus and has_fortran and not has_d: global issued_mixed_link_warning if not issued_mixed_link_warning: msg = "Using $CXX to link Fortran and C++ code together.\n\t" + \ @@ -59,6 +62,10 @@ def smart_link(source, target, env, for_signature): msg % env.subst('$CXX')) issued_mixed_link_warning = True return '$CXX' + elif has_d: + env['LINKCOM'] = env['DLINKCOM'] + env['SHLINKCOM'] = env['SHDLINKCOM'] + return '$DC' elif has_fortran: return '$FORTRAN' elif has_cplusplus: @@ -138,7 +145,7 @@ def shlib_emitter_names(target, source, env): print "shlib_emitter_names: side effect: ", name # add version_name to list of names to be a Side effect version_names.append(version_name) - + except KeyError: version = None return version_names @@ -178,8 +185,8 @@ def generate(env): # don't set up the emitter, cause AppendUnique will generate a list # starting with None :-( env.Append(LDMODULEEMITTER='$SHLIBEMITTER') - env['LDMODULEPREFIX'] = '$SHLIBPREFIX' - env['LDMODULESUFFIX'] = '$SHLIBSUFFIX' + env['LDMODULEPREFIX'] = '$SHLIBPREFIX' + env['LDMODULESUFFIX'] = '$SHLIBSUFFIX' env['LDMODULEFLAGS'] = '$SHLINKFLAGS' env['LDMODULECOM'] = '$LDMODULE -o $TARGET $LDMODULEFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS $_LIBFLAGS' diff --git a/scons/scons-local-2.3.1/SCons/Tool/linkloc.py b/scons/scons-local-2.3.4/SCons/Tool/linkloc.py similarity index 95% rename from scons/scons-local-2.3.1/SCons/Tool/linkloc.py rename to scons/scons-local-2.3.4/SCons/Tool/linkloc.py index 9f5a6dccc..e1c67ed7a 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/linkloc.py +++ b/scons/scons-local-2.3.4/SCons/Tool/linkloc.py @@ -10,7 +10,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -32,7 +32,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/linkloc.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/linkloc.py 2014/09/27 12:51:43 garyo" import os.path import re diff --git a/scons/scons-local-2.3.1/SCons/Tool/m4.py b/scons/scons-local-2.3.4/SCons/Tool/m4.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Tool/m4.py rename to scons/scons-local-2.3.4/SCons/Tool/m4.py index 5088b5819..9c2887155 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/m4.py +++ b/scons/scons-local-2.3.4/SCons/Tool/m4.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/m4.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/m4.py 2014/09/27 12:51:43 garyo" import SCons.Action import SCons.Builder diff --git a/scons/scons-local-2.3.1/SCons/Tool/masm.py b/scons/scons-local-2.3.4/SCons/Tool/masm.py similarity index 93% rename from scons/scons-local-2.3.1/SCons/Tool/masm.py rename to scons/scons-local-2.3.4/SCons/Tool/masm.py index 178584d90..6006ed425 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/masm.py +++ b/scons/scons-local-2.3.4/SCons/Tool/masm.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/masm.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/masm.py 2014/09/27 12:51:43 garyo" import SCons.Defaults import SCons.Tool diff --git a/scons/scons-local-2.3.1/SCons/Tool/midl.py b/scons/scons-local-2.3.4/SCons/Tool/midl.py similarity index 93% rename from scons/scons-local-2.3.1/SCons/Tool/midl.py rename to scons/scons-local-2.3.4/SCons/Tool/midl.py index e5a871f12..6b170d525 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/midl.py +++ b/scons/scons-local-2.3.4/SCons/Tool/midl.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/midl.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/midl.py 2014/09/27 12:51:43 garyo" import SCons.Action import SCons.Builder diff --git a/scons/scons-local-2.3.1/SCons/Tool/mingw.py b/scons/scons-local-2.3.4/SCons/Tool/mingw.py similarity index 97% rename from scons/scons-local-2.3.1/SCons/Tool/mingw.py rename to scons/scons-local-2.3.4/SCons/Tool/mingw.py index 46ca9e415..bf26a0617 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/mingw.py +++ b/scons/scons-local-2.3.4/SCons/Tool/mingw.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/mingw.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/mingw.py 2014/09/27 12:51:43 garyo" import os import os.path diff --git a/scons/scons-local-2.3.1/SCons/Tool/msgfmt.py b/scons/scons-local-2.3.4/SCons/Tool/msgfmt.py similarity index 95% rename from scons/scons-local-2.3.1/SCons/Tool/msgfmt.py rename to scons/scons-local-2.3.4/SCons/Tool/msgfmt.py index b83173838..84d3becf6 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/msgfmt.py +++ b/scons/scons-local-2.3.4/SCons/Tool/msgfmt.py @@ -1,6 +1,6 @@ """ msgfmt tool """ -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/msgfmt.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/msgfmt.py 2014/09/27 12:51:43 garyo" from SCons.Builder import BuilderBase ############################################################################# diff --git a/scons/scons-local-2.3.1/SCons/Tool/msginit.py b/scons/scons-local-2.3.4/SCons/Tool/msginit.py similarity index 95% rename from scons/scons-local-2.3.1/SCons/Tool/msginit.py rename to scons/scons-local-2.3.4/SCons/Tool/msginit.py index d745dc54c..e59423021 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/msginit.py +++ b/scons/scons-local-2.3.4/SCons/Tool/msginit.py @@ -3,7 +3,7 @@ Tool specific initialization of msginit tool. """ -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -24,7 +24,7 @@ Tool specific initialization of msginit tool. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/msginit.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/msginit.py 2014/09/27 12:51:43 garyo" import SCons.Warnings import SCons.Builder diff --git a/scons/scons-local-2.3.1/SCons/Tool/msgmerge.py b/scons/scons-local-2.3.4/SCons/Tool/msgmerge.py similarity index 95% rename from scons/scons-local-2.3.1/SCons/Tool/msgmerge.py rename to scons/scons-local-2.3.4/SCons/Tool/msgmerge.py index e50824e45..644be856d 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/msgmerge.py +++ b/scons/scons-local-2.3.4/SCons/Tool/msgmerge.py @@ -3,7 +3,7 @@ Tool specific initialization for `msgmerge` tool. """ -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -24,7 +24,7 @@ Tool specific initialization for `msgmerge` tool. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/msgmerge.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/msgmerge.py 2014/09/27 12:51:43 garyo" ############################################################################# def _update_or_init_po_files(target, source, env): diff --git a/scons/scons-local-2.3.1/SCons/Tool/mslib.py b/scons/scons-local-2.3.4/SCons/Tool/mslib.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/Tool/mslib.py rename to scons/scons-local-2.3.4/SCons/Tool/mslib.py index 0f95e4143..f51b9574a 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/mslib.py +++ b/scons/scons-local-2.3.4/SCons/Tool/mslib.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/mslib.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/mslib.py 2014/09/27 12:51:43 garyo" import SCons.Defaults import SCons.Tool diff --git a/scons/scons-local-2.3.1/SCons/Tool/mslink.py b/scons/scons-local-2.3.4/SCons/Tool/mslink.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Tool/mslink.py rename to scons/scons-local-2.3.4/SCons/Tool/mslink.py index 9374ffefa..e10662b1b 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/mslink.py +++ b/scons/scons-local-2.3.4/SCons/Tool/mslink.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/mslink.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/mslink.py 2014/09/27 12:51:43 garyo" import os.path diff --git a/scons/scons-local-2.3.1/SCons/Tool/mssdk.py b/scons/scons-local-2.3.4/SCons/Tool/mssdk.py similarity index 89% rename from scons/scons-local-2.3.1/SCons/Tool/mssdk.py rename to scons/scons-local-2.3.4/SCons/Tool/mssdk.py index 6112bff65..c70e7888a 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/mssdk.py +++ b/scons/scons-local-2.3.4/SCons/Tool/mssdk.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/mssdk.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/mssdk.py 2014/09/27 12:51:43 garyo" """engine.SCons.Tool.mssdk diff --git a/scons/scons-local-2.3.1/SCons/Tool/msvc.py b/scons/scons-local-2.3.4/SCons/Tool/msvc.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Tool/msvc.py rename to scons/scons-local-2.3.4/SCons/Tool/msvc.py index e09fe9f89..d93bfa705 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/msvc.py +++ b/scons/scons-local-2.3.4/SCons/Tool/msvc.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/msvc.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/msvc.py 2014/09/27 12:51:43 garyo" import os.path import re diff --git a/scons/scons-local-2.3.1/SCons/Tool/msvs.py b/scons/scons-local-2.3.4/SCons/Tool/msvs.py similarity index 99% rename from scons/scons-local-2.3.1/SCons/Tool/msvs.py rename to scons/scons-local-2.3.4/SCons/Tool/msvs.py index 6e05b47a7..ce4d83428 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/msvs.py +++ b/scons/scons-local-2.3.4/SCons/Tool/msvs.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/msvs.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/msvs.py 2014/09/27 12:51:43 garyo" import SCons.compat diff --git a/scons/scons-local-2.3.1/SCons/Tool/mwcc.py b/scons/scons-local-2.3.4/SCons/Tool/mwcc.py similarity index 97% rename from scons/scons-local-2.3.1/SCons/Tool/mwcc.py rename to scons/scons-local-2.3.4/SCons/Tool/mwcc.py index 1f12b4864..ae0d03049 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/mwcc.py +++ b/scons/scons-local-2.3.4/SCons/Tool/mwcc.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/mwcc.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/mwcc.py 2014/09/27 12:51:43 garyo" import os import os.path diff --git a/scons/scons-local-2.3.1/SCons/Tool/mwld.py b/scons/scons-local-2.3.4/SCons/Tool/mwld.py similarity index 94% rename from scons/scons-local-2.3.1/SCons/Tool/mwld.py rename to scons/scons-local-2.3.4/SCons/Tool/mwld.py index 649e22047..5309ea259 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/mwld.py +++ b/scons/scons-local-2.3.4/SCons/Tool/mwld.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/mwld.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/mwld.py 2014/09/27 12:51:43 garyo" import SCons.Tool diff --git a/scons/scons-local-2.3.1/SCons/Tool/nasm.py b/scons/scons-local-2.3.4/SCons/Tool/nasm.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Tool/nasm.py rename to scons/scons-local-2.3.4/SCons/Tool/nasm.py index 805eeb046..063624767 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/nasm.py +++ b/scons/scons-local-2.3.4/SCons/Tool/nasm.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/nasm.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/nasm.py 2014/09/27 12:51:43 garyo" import SCons.Defaults import SCons.Tool diff --git a/scons/scons-local-2.3.1/SCons/Tool/packaging/__init__.py b/scons/scons-local-2.3.4/SCons/Tool/packaging/__init__.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Tool/packaging/__init__.py rename to scons/scons-local-2.3.4/SCons/Tool/packaging/__init__.py index a356f4634..4249925d4 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/packaging/__init__.py +++ b/scons/scons-local-2.3.4/SCons/Tool/packaging/__init__.py @@ -4,7 +4,7 @@ SCons Packaging Tool. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -25,7 +25,7 @@ SCons Packaging Tool. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/packaging/__init__.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/packaging/__init__.py 2014/09/27 12:51:43 garyo" import SCons.Environment from SCons.Variables import * diff --git a/scons/scons-local-2.3.1/SCons/Tool/packaging/ipk.py b/scons/scons-local-2.3.4/SCons/Tool/packaging/ipk.py similarity index 96% rename from scons/scons-local-2.3.1/SCons/Tool/packaging/ipk.py rename to scons/scons-local-2.3.4/SCons/Tool/packaging/ipk.py index c7c2ecbea..f8cb3f7e9 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/packaging/ipk.py +++ b/scons/scons-local-2.3.4/SCons/Tool/packaging/ipk.py @@ -2,7 +2,7 @@ """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -24,7 +24,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/packaging/ipk.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/packaging/ipk.py 2014/09/27 12:51:43 garyo" import SCons.Builder import SCons.Node.FS diff --git a/scons/scons-local-2.3.1/SCons/Tool/packaging/msi.py b/scons/scons-local-2.3.4/SCons/Tool/packaging/msi.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Tool/packaging/msi.py rename to scons/scons-local-2.3.4/SCons/Tool/packaging/msi.py index 5c81c2fe1..9611af471 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/packaging/msi.py +++ b/scons/scons-local-2.3.4/SCons/Tool/packaging/msi.py @@ -4,7 +4,7 @@ The msi packager. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -25,7 +25,7 @@ The msi packager. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/packaging/msi.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/packaging/msi.py 2014/09/27 12:51:43 garyo" import os import SCons diff --git a/scons/scons-local-2.3.1/SCons/Tool/packaging/rpm.py b/scons/scons-local-2.3.4/SCons/Tool/packaging/rpm.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Tool/packaging/rpm.py rename to scons/scons-local-2.3.4/SCons/Tool/packaging/rpm.py index 049bf4597..39f2b5ed6 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/packaging/rpm.py +++ b/scons/scons-local-2.3.4/SCons/Tool/packaging/rpm.py @@ -4,7 +4,7 @@ The rpm packager. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -25,7 +25,7 @@ The rpm packager. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/packaging/rpm.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/packaging/rpm.py 2014/09/27 12:51:43 garyo" import os @@ -182,7 +182,7 @@ def build_specfile_sections(spec): spec['X_RPM_PREP'] = '[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"' + '\n%setup -q' if 'X_RPM_BUILD' not in spec: - spec['X_RPM_BUILD'] = 'mkdir "$RPM_BUILD_ROOT"' + spec['X_RPM_BUILD'] = '[ ! -e "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && mkdir "$RPM_BUILD_ROOT"' if 'X_RPM_INSTALL' not in spec: spec['X_RPM_INSTALL'] = 'scons --install-sandbox="$RPM_BUILD_ROOT" "$RPM_BUILD_ROOT"' diff --git a/scons/scons-local-2.3.1/SCons/Tool/packaging/src_tarbz2.py b/scons/scons-local-2.3.4/SCons/Tool/packaging/src_tarbz2.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/Tool/packaging/src_tarbz2.py rename to scons/scons-local-2.3.4/SCons/Tool/packaging/src_tarbz2.py index 6a98b385d..bb243cfef 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/packaging/src_tarbz2.py +++ b/scons/scons-local-2.3.4/SCons/Tool/packaging/src_tarbz2.py @@ -4,7 +4,7 @@ The tarbz2 SRC packager. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -26,7 +26,7 @@ The tarbz2 SRC packager. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/packaging/src_tarbz2.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/packaging/src_tarbz2.py 2014/09/27 12:51:43 garyo" from SCons.Tool.packaging import putintopackageroot diff --git a/scons/scons-local-2.3.1/SCons/Tool/packaging/src_targz.py b/scons/scons-local-2.3.4/SCons/Tool/packaging/src_targz.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/Tool/packaging/src_targz.py rename to scons/scons-local-2.3.4/SCons/Tool/packaging/src_targz.py index de7d17b22..1b80433ea 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/packaging/src_targz.py +++ b/scons/scons-local-2.3.4/SCons/Tool/packaging/src_targz.py @@ -4,7 +4,7 @@ The targz SRC packager. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -26,7 +26,7 @@ The targz SRC packager. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/packaging/src_targz.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/packaging/src_targz.py 2014/09/27 12:51:43 garyo" from SCons.Tool.packaging import putintopackageroot diff --git a/scons/scons-local-2.3.1/SCons/Tool/packaging/src_zip.py b/scons/scons-local-2.3.4/SCons/Tool/packaging/src_zip.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/Tool/packaging/src_zip.py rename to scons/scons-local-2.3.4/SCons/Tool/packaging/src_zip.py index 86160dece..d6d3a5d59 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/packaging/src_zip.py +++ b/scons/scons-local-2.3.4/SCons/Tool/packaging/src_zip.py @@ -4,7 +4,7 @@ The zip SRC packager. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -26,7 +26,7 @@ The zip SRC packager. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/packaging/src_zip.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/packaging/src_zip.py 2014/09/27 12:51:43 garyo" from SCons.Tool.packaging import putintopackageroot diff --git a/scons/scons-local-2.3.1/SCons/Tool/packaging/tarbz2.py b/scons/scons-local-2.3.4/SCons/Tool/packaging/tarbz2.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Tool/packaging/tarbz2.py rename to scons/scons-local-2.3.4/SCons/Tool/packaging/tarbz2.py index 7df69320d..f1ff223c5 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/packaging/tarbz2.py +++ b/scons/scons-local-2.3.4/SCons/Tool/packaging/tarbz2.py @@ -4,7 +4,7 @@ The tarbz2 SRC packager. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -26,7 +26,7 @@ The tarbz2 SRC packager. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/packaging/tarbz2.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/packaging/tarbz2.py 2014/09/27 12:51:43 garyo" from SCons.Tool.packaging import stripinstallbuilder, putintopackageroot diff --git a/scons/scons-local-2.3.1/SCons/Tool/packaging/targz.py b/scons/scons-local-2.3.4/SCons/Tool/packaging/targz.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Tool/packaging/targz.py rename to scons/scons-local-2.3.4/SCons/Tool/packaging/targz.py index 6a9024ceb..8b317680f 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/packaging/targz.py +++ b/scons/scons-local-2.3.4/SCons/Tool/packaging/targz.py @@ -4,7 +4,7 @@ The targz SRC packager. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -26,7 +26,7 @@ The targz SRC packager. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/packaging/targz.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/packaging/targz.py 2014/09/27 12:51:43 garyo" from SCons.Tool.packaging import stripinstallbuilder, putintopackageroot diff --git a/scons/scons-local-2.3.1/SCons/Tool/packaging/zip.py b/scons/scons-local-2.3.4/SCons/Tool/packaging/zip.py similarity index 88% rename from scons/scons-local-2.3.1/SCons/Tool/packaging/zip.py rename to scons/scons-local-2.3.4/SCons/Tool/packaging/zip.py index 862589ca7..09a320d51 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/packaging/zip.py +++ b/scons/scons-local-2.3.4/SCons/Tool/packaging/zip.py @@ -4,7 +4,7 @@ The zip SRC packager. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -26,7 +26,7 @@ The zip SRC packager. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/packaging/zip.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/packaging/zip.py 2014/09/27 12:51:43 garyo" from SCons.Tool.packaging import stripinstallbuilder, putintopackageroot diff --git a/scons/scons-local-2.3.1/SCons/Tool/pdf.py b/scons/scons-local-2.3.4/SCons/Tool/pdf.py similarity index 93% rename from scons/scons-local-2.3.1/SCons/Tool/pdf.py rename to scons/scons-local-2.3.4/SCons/Tool/pdf.py index b93891d39..f38cdbf86 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/pdf.py +++ b/scons/scons-local-2.3.4/SCons/Tool/pdf.py @@ -6,7 +6,7 @@ Add an explicit action to run epstopdf to convert .eps files to .pdf """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -28,7 +28,7 @@ Add an explicit action to run epstopdf to convert .eps files to .pdf # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/pdf.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/pdf.py 2014/09/27 12:51:43 garyo" import SCons.Builder import SCons.Tool diff --git a/scons/scons-local-2.3.1/SCons/Tool/pdflatex.py b/scons/scons-local-2.3.4/SCons/Tool/pdflatex.py similarity index 93% rename from scons/scons-local-2.3.1/SCons/Tool/pdflatex.py rename to scons/scons-local-2.3.4/SCons/Tool/pdflatex.py index a5ec45876..1caac9110 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/pdflatex.py +++ b/scons/scons-local-2.3.4/SCons/Tool/pdflatex.py @@ -10,7 +10,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -32,7 +32,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/pdflatex.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/pdflatex.py 2014/09/27 12:51:43 garyo" import SCons.Action import SCons.Util diff --git a/scons/scons-local-2.3.1/SCons/Tool/pdftex.py b/scons/scons-local-2.3.4/SCons/Tool/pdftex.py similarity index 94% rename from scons/scons-local-2.3.1/SCons/Tool/pdftex.py rename to scons/scons-local-2.3.4/SCons/Tool/pdftex.py index aa002ad10..92b54d049 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/pdftex.py +++ b/scons/scons-local-2.3.4/SCons/Tool/pdftex.py @@ -10,7 +10,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -32,7 +32,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/pdftex.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/pdftex.py 2014/09/27 12:51:43 garyo" import os import SCons.Action diff --git a/scons/scons-local-2.3.1/SCons/Tool/qt.py b/scons/scons-local-2.3.4/SCons/Tool/qt.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Tool/qt.py rename to scons/scons-local-2.3.4/SCons/Tool/qt.py index 22c777000..004fce75f 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/qt.py +++ b/scons/scons-local-2.3.4/SCons/Tool/qt.py @@ -10,7 +10,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -32,7 +32,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/qt.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/qt.py 2014/09/27 12:51:43 garyo" import os.path import re diff --git a/scons/scons-local-2.3.1/SCons/Tool/rmic.py b/scons/scons-local-2.3.4/SCons/Tool/rmic.py similarity index 95% rename from scons/scons-local-2.3.1/SCons/Tool/rmic.py rename to scons/scons-local-2.3.4/SCons/Tool/rmic.py index 689d823b0..2e684d45a 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/rmic.py +++ b/scons/scons-local-2.3.4/SCons/Tool/rmic.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/rmic.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/rmic.py 2014/09/27 12:51:43 garyo" import os.path diff --git a/scons/scons-local-2.3.1/SCons/Tool/rpcgen.py b/scons/scons-local-2.3.4/SCons/Tool/rpcgen.py similarity index 93% rename from scons/scons-local-2.3.1/SCons/Tool/rpcgen.py rename to scons/scons-local-2.3.4/SCons/Tool/rpcgen.py index 2caf244fe..24895e948 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/rpcgen.py +++ b/scons/scons-local-2.3.4/SCons/Tool/rpcgen.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/rpcgen.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/rpcgen.py 2014/09/27 12:51:43 garyo" from SCons.Builder import Builder import SCons.Util diff --git a/scons/scons-local-2.3.1/SCons/Tool/rpm.py b/scons/scons-local-2.3.4/SCons/Tool/rpm.py similarity index 95% rename from scons/scons-local-2.3.1/SCons/Tool/rpm.py rename to scons/scons-local-2.3.4/SCons/Tool/rpm.py index 9be0d796d..20156d4a6 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/rpm.py +++ b/scons/scons-local-2.3.4/SCons/Tool/rpm.py @@ -11,7 +11,7 @@ tar.gz consisting of the source file and a specfile. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -33,7 +33,7 @@ tar.gz consisting of the source file and a specfile. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/rpm.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/rpm.py 2014/09/27 12:51:43 garyo" import os import re diff --git a/scons/scons-local-2.3.1/SCons/Tool/rpmutils.py b/scons/scons-local-2.3.4/SCons/Tool/rpmutils.py similarity index 95% rename from scons/scons-local-2.3.1/SCons/Tool/rpmutils.py rename to scons/scons-local-2.3.4/SCons/Tool/rpmutils.py index f482fbbf2..91c95a15b 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/rpmutils.py +++ b/scons/scons-local-2.3.4/SCons/Tool/rpmutils.py @@ -10,11 +10,11 @@ mimic the exact naming rules of the RPM source code. They were directly derived from the file "rpmrc.in" of the version rpm-4.9.1.3. For updating to a more recent version of RPM, this Python script can be used standalone. The usage() function below shows the -exact syntax. +exact syntax. """ -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -35,10 +35,11 @@ exact syntax. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/rpmutils.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/rpmutils.py 2014/09/27 12:51:43 garyo" import platform +import subprocess # Start of rpmrc dictionaries (Marker, don't change or remove!) os_canon = { @@ -435,20 +436,29 @@ arch_canon = { # End of rpmrc dictionaries (Marker, don't change or remove!) -def defaultMachine(): +def defaultMachine(use_rpm_default=True): """ Return the canonicalized machine name. """ - rmachine = platform.machine() - - # Try to lookup the string in the canon table - if rmachine in arch_canon: - rmachine = arch_canon[rmachine][0] - + + if use_rpm_default: + try: + # This should be the most reliable way to get the default arch + rmachine = subprocess.check_output(['rpm', '--eval=%_target_cpu'], shell=False).rstrip() + except Exception as e: + # Something went wrong, try again by looking up platform.machine() + return defaultMachine(False) + else: + rmachine = platform.machine() + + # Try to lookup the string in the canon table + if rmachine in arch_canon: + rmachine = arch_canon[rmachine][0] + return rmachine def defaultSystem(): """ Return the canonicalized system name. """ rsystem = platform.system() - + # Try to lookup the string in the canon tables if rsystem in os_canon: rsystem = os_canon[rsystem][0] @@ -523,7 +533,7 @@ def usage(): def main(): import sys - + if len(sys.argv) < 3: usage() sys.exit(0) diff --git a/scons/scons-local-2.3.1/SCons/Tool/sgiar.py b/scons/scons-local-2.3.4/SCons/Tool/sgiar.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Tool/sgiar.py rename to scons/scons-local-2.3.4/SCons/Tool/sgiar.py index a1a94a57d..7012bb706 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/sgiar.py +++ b/scons/scons-local-2.3.4/SCons/Tool/sgiar.py @@ -11,7 +11,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -33,7 +33,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/sgiar.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/sgiar.py 2014/09/27 12:51:43 garyo" import SCons.Defaults import SCons.Tool diff --git a/scons/scons-local-2.3.1/SCons/Tool/sgic++.py b/scons/scons-local-2.3.4/SCons/Tool/sgic++.py similarity index 90% rename from scons/scons-local-2.3.1/SCons/Tool/sgic++.py rename to scons/scons-local-2.3.4/SCons/Tool/sgic++.py index 4dcdc1d72..b4f4e5164 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/sgic++.py +++ b/scons/scons-local-2.3.4/SCons/Tool/sgic++.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/sgic++.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/sgic++.py 2014/09/27 12:51:43 garyo" import SCons.Util diff --git a/scons/scons-local-2.3.1/SCons/Tool/sgicc.py b/scons/scons-local-2.3.4/SCons/Tool/sgicc.py similarity index 89% rename from scons/scons-local-2.3.1/SCons/Tool/sgicc.py rename to scons/scons-local-2.3.4/SCons/Tool/sgicc.py index 15c34c19d..c8dd66e60 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/sgicc.py +++ b/scons/scons-local-2.3.4/SCons/Tool/sgicc.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/sgicc.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/sgicc.py 2014/09/27 12:51:43 garyo" import cc diff --git a/scons/scons-local-2.3.1/SCons/Tool/sgilink.py b/scons/scons-local-2.3.4/SCons/Tool/sgilink.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/Tool/sgilink.py rename to scons/scons-local-2.3.4/SCons/Tool/sgilink.py index 10069c6cc..8f4655828 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/sgilink.py +++ b/scons/scons-local-2.3.4/SCons/Tool/sgilink.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/sgilink.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/sgilink.py 2014/09/27 12:51:43 garyo" import SCons.Util diff --git a/scons/scons-local-2.3.1/SCons/Tool/sunar.py b/scons/scons-local-2.3.4/SCons/Tool/sunar.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Tool/sunar.py rename to scons/scons-local-2.3.4/SCons/Tool/sunar.py index 154e44f7f..6ef5b639f 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/sunar.py +++ b/scons/scons-local-2.3.4/SCons/Tool/sunar.py @@ -10,7 +10,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -32,7 +32,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/sunar.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/sunar.py 2014/09/27 12:51:43 garyo" import SCons.Defaults import SCons.Tool diff --git a/scons/scons-local-2.3.1/SCons/Tool/sunc++.py b/scons/scons-local-2.3.4/SCons/Tool/sunc++.py similarity index 95% rename from scons/scons-local-2.3.1/SCons/Tool/sunc++.py rename to scons/scons-local-2.3.4/SCons/Tool/sunc++.py index 2f1ceaf06..e563056c9 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/sunc++.py +++ b/scons/scons-local-2.3.4/SCons/Tool/sunc++.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/sunc++.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/sunc++.py 2014/09/27 12:51:43 garyo" import SCons diff --git a/scons/scons-local-2.3.1/SCons/Tool/suncc.py b/scons/scons-local-2.3.4/SCons/Tool/suncc.py similarity index 90% rename from scons/scons-local-2.3.1/SCons/Tool/suncc.py rename to scons/scons-local-2.3.4/SCons/Tool/suncc.py index 67edb8ae4..42fcf5270 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/suncc.py +++ b/scons/scons-local-2.3.4/SCons/Tool/suncc.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/suncc.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/suncc.py 2014/09/27 12:51:43 garyo" import SCons.Util diff --git a/scons/scons-local-2.3.1/SCons/Tool/sunf77.py b/scons/scons-local-2.3.4/SCons/Tool/sunf77.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/Tool/sunf77.py rename to scons/scons-local-2.3.4/SCons/Tool/sunf77.py index 5eb664de4..b3c764f4f 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/sunf77.py +++ b/scons/scons-local-2.3.4/SCons/Tool/sunf77.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/sunf77.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/sunf77.py 2014/09/27 12:51:43 garyo" import SCons.Util diff --git a/scons/scons-local-2.3.1/SCons/Tool/sunf90.py b/scons/scons-local-2.3.4/SCons/Tool/sunf90.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/Tool/sunf90.py rename to scons/scons-local-2.3.4/SCons/Tool/sunf90.py index 0a08c70e9..999aed8f5 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/sunf90.py +++ b/scons/scons-local-2.3.4/SCons/Tool/sunf90.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/sunf90.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/sunf90.py 2014/09/27 12:51:43 garyo" import SCons.Util diff --git a/scons/scons-local-2.3.1/SCons/Tool/sunf95.py b/scons/scons-local-2.3.4/SCons/Tool/sunf95.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/Tool/sunf95.py rename to scons/scons-local-2.3.4/SCons/Tool/sunf95.py index fd0be66ea..329b10bf3 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/sunf95.py +++ b/scons/scons-local-2.3.4/SCons/Tool/sunf95.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/sunf95.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/sunf95.py 2014/09/27 12:51:43 garyo" import SCons.Util diff --git a/scons/scons-local-2.3.1/SCons/Tool/sunlink.py b/scons/scons-local-2.3.4/SCons/Tool/sunlink.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/Tool/sunlink.py rename to scons/scons-local-2.3.4/SCons/Tool/sunlink.py index 5cc6024cb..ecd0ce772 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/sunlink.py +++ b/scons/scons-local-2.3.4/SCons/Tool/sunlink.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/sunlink.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/sunlink.py 2014/09/27 12:51:43 garyo" import os import os.path diff --git a/scons/scons-local-2.3.1/SCons/Tool/swig.py b/scons/scons-local-2.3.4/SCons/Tool/swig.py similarity index 96% rename from scons/scons-local-2.3.1/SCons/Tool/swig.py rename to scons/scons-local-2.3.4/SCons/Tool/swig.py index 188d229df..572c83ee9 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/swig.py +++ b/scons/scons-local-2.3.4/SCons/Tool/swig.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/swig.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/swig.py 2014/09/27 12:51:43 garyo" import os.path import re @@ -174,7 +174,8 @@ def generate(env): env.Append(SCANNERS = scanner) def exists(env): - return env.Detect(['swig']) + swig = env.get('SWIG') or env.Detect(['swig']) + return swig # Local Variables: # tab-width:4 diff --git a/scons/scons-local-2.3.1/SCons/Tool/tar.py b/scons/scons-local-2.3.4/SCons/Tool/tar.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/Tool/tar.py rename to scons/scons-local-2.3.4/SCons/Tool/tar.py index 9c09f0e58..ae054a3c0 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/tar.py +++ b/scons/scons-local-2.3.4/SCons/Tool/tar.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/tar.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/tar.py 2014/09/27 12:51:43 garyo" import SCons.Action import SCons.Builder diff --git a/scons/scons-local-2.3.1/SCons/Tool/tex.py b/scons/scons-local-2.3.4/SCons/Tool/tex.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Tool/tex.py rename to scons/scons-local-2.3.4/SCons/Tool/tex.py index 515002ced..28d0773a8 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/tex.py +++ b/scons/scons-local-2.3.4/SCons/Tool/tex.py @@ -10,7 +10,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -32,7 +32,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/tex.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/tex.py 2014/09/27 12:51:43 garyo" import os.path import re @@ -102,6 +102,7 @@ makeacronyms_re = re.compile(r"^[^%\n]*\\makeglossaries", re.MULTILINE) beamer_re = re.compile(r"^[^%\n]*\\documentclass\{beamer\}", re.MULTILINE) regex = r'^[^%\n]*\\newglossary\s*\[([^\]]+)\]?\s*\{([^}]*)\}\s*\{([^}]*)\}\s*\{([^}]*)\}\s*\{([^}]*)\}' newglossary_re = re.compile(regex, re.MULTILINE) +biblatex_re = re.compile(r"^[^%\n]*\\usepackage.*\{biblatex\}", re.MULTILINE) newglossary_suffix = [] @@ -430,7 +431,7 @@ def InternalLaTeXAuxAction(XXXLaTeXAction, target = None, source= None, env=None if Verbose: print "Need to run makeindex for newglossary" newglfile = suffix_nodes[newglossary_suffix[ig][2]] - MakeNewGlossaryAction = SCons.Action.Action("$MAKENEWGLOSSARY ${SOURCE.filebase}%s -s ${SOURCE.filebase}.ist -t ${SOURCE.filebase}%s -o ${SOURCE.filebase}%s" % (newglossary_suffix[ig][2],newglossary_suffix[ig][0],newglossary_suffix[ig][1]), "$MAKENEWGLOSSARYCOMSTR") + MakeNewGlossaryAction = SCons.Action.Action("$MAKENEWGLOSSARYCOM ${SOURCE.filebase}%s -s ${SOURCE.filebase}.ist -t ${SOURCE.filebase}%s -o ${SOURCE.filebase}%s" % (newglossary_suffix[ig][2],newglossary_suffix[ig][0],newglossary_suffix[ig][1]), "$MAKENEWGLOSSARYCOMSTR") result = MakeNewGlossaryAction(newglfile, newglfile, env) if result != 0: @@ -684,15 +685,18 @@ def tex_emitter_core(target, source, env, graphics_extensions): auxfilename = targetbase + '.aux' logfilename = targetbase + '.log' flsfilename = targetbase + '.fls' + syncfilename = targetbase + '.synctex.gz' env.SideEffect(auxfilename,target[0]) env.SideEffect(logfilename,target[0]) env.SideEffect(flsfilename,target[0]) + env.SideEffect(syncfilename,target[0]) if Verbose: - print "side effect :",auxfilename,logfilename,flsfilename + print "side effect :",auxfilename,logfilename,flsfilename,syncfilename env.Clean(target[0],auxfilename) env.Clean(target[0],logfilename) env.Clean(target[0],flsfilename) + env.Clean(target[0],syncfilename) content = source[0].get_text_contents() @@ -719,7 +723,8 @@ def tex_emitter_core(target, source, env, graphics_extensions): makeglossaries_re, makeacronyms_re, beamer_re, - newglossary_re ] + newglossary_re, + biblatex_re ] # set up list with the file suffixes that need emitting # when a feature is found file_tests_suff = [['.aux','aux_file'], @@ -737,7 +742,8 @@ def tex_emitter_core(target, source, env, graphics_extensions): ['.glo', '.gls', '.glg','glossaries'], ['.acn', '.acr', '.alg','acronyms'], ['.nav', '.snm', '.out', '.toc','beamer'], - ['newglossary',] ] + ['newglossary',], + ['.bcf', '.blg','biblatex'] ] # for newglossary the suffixes are added as we find the command # build the list of lists file_tests = [] diff --git a/scons/scons-local-2.3.1/SCons/Tool/textfile.py b/scons/scons-local-2.3.4/SCons/Tool/textfile.py similarity index 96% rename from scons/scons-local-2.3.1/SCons/Tool/textfile.py rename to scons/scons-local-2.3.4/SCons/Tool/textfile.py index 048b0f0d6..3851ef1f2 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/textfile.py +++ b/scons/scons-local-2.3.4/SCons/Tool/textfile.py @@ -1,6 +1,6 @@ # -*- python -*- # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -44,7 +44,7 @@ Textfile/Substfile builder for SCons. is unpredictible whether the expansion will occur. """ -__revision__ = "src/engine/SCons/Tool/textfile.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/textfile.py 2014/09/27 12:51:43 garyo" import SCons diff --git a/scons/scons-local-2.3.1/SCons/Tool/tlib.py b/scons/scons-local-2.3.4/SCons/Tool/tlib.py similarity index 89% rename from scons/scons-local-2.3.1/SCons/Tool/tlib.py rename to scons/scons-local-2.3.4/SCons/Tool/tlib.py index 834d5d5d4..7eedee864 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/tlib.py +++ b/scons/scons-local-2.3.4/SCons/Tool/tlib.py @@ -5,7 +5,7 @@ XXX """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -27,7 +27,7 @@ XXX # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/tlib.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/tlib.py 2014/09/27 12:51:43 garyo" import SCons.Tool import SCons.Tool.bcc32 diff --git a/scons/scons-local-2.3.1/SCons/Tool/wix.py b/scons/scons-local-2.3.4/SCons/Tool/wix.py similarity index 94% rename from scons/scons-local-2.3.1/SCons/Tool/wix.py rename to scons/scons-local-2.3.4/SCons/Tool/wix.py index 1cc2ef25d..ca2495a28 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/wix.py +++ b/scons/scons-local-2.3.4/SCons/Tool/wix.py @@ -8,7 +8,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/wix.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/wix.py 2014/09/27 12:51:43 garyo" import SCons.Builder import SCons.Action diff --git a/scons/scons-local-2.3.1/SCons/Tool/xgettext.py b/scons/scons-local-2.3.4/SCons/Tool/xgettext.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Tool/xgettext.py rename to scons/scons-local-2.3.4/SCons/Tool/xgettext.py index 3224ec929..d5db451fb 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/xgettext.py +++ b/scons/scons-local-2.3.4/SCons/Tool/xgettext.py @@ -3,7 +3,7 @@ Tool specific initialization of `xgettext` tool. """ -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -24,7 +24,7 @@ Tool specific initialization of `xgettext` tool. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Tool/xgettext.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/xgettext.py 2014/09/27 12:51:43 garyo" ############################################################################# class _CmdRunner(object): diff --git a/scons/scons-local-2.3.1/SCons/Tool/yacc.py b/scons/scons-local-2.3.4/SCons/Tool/yacc.py similarity index 96% rename from scons/scons-local-2.3.1/SCons/Tool/yacc.py rename to scons/scons-local-2.3.4/SCons/Tool/yacc.py index 15aca3968..e8bfc8cb9 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/yacc.py +++ b/scons/scons-local-2.3.4/SCons/Tool/yacc.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/yacc.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/yacc.py 2014/09/27 12:51:43 garyo" import os.path diff --git a/scons/scons-local-2.3.1/SCons/Tool/zip.py b/scons/scons-local-2.3.4/SCons/Tool/zip.py similarity index 94% rename from scons/scons-local-2.3.1/SCons/Tool/zip.py rename to scons/scons-local-2.3.4/SCons/Tool/zip.py index 8a914cf2a..86513c13d 100644 --- a/scons/scons-local-2.3.1/SCons/Tool/zip.py +++ b/scons/scons-local-2.3.4/SCons/Tool/zip.py @@ -9,7 +9,7 @@ selection method. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ selection method. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Tool/zip.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Tool/zip.py 2014/09/27 12:51:43 garyo" import os.path diff --git a/scons/scons-local-2.3.1/SCons/Util.py b/scons/scons-local-2.3.4/SCons/Util.py similarity index 99% rename from scons/scons-local-2.3.1/SCons/Util.py rename to scons/scons-local-2.3.4/SCons/Util.py index 9fc649bd5..974f96ec7 100644 --- a/scons/scons-local-2.3.1/SCons/Util.py +++ b/scons/scons-local-2.3.4/SCons/Util.py @@ -3,7 +3,7 @@ Various utility functions go here. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -24,7 +24,7 @@ Various utility functions go here. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Util.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Util.py 2014/09/27 12:51:43 garyo" import os import sys diff --git a/scons/scons-local-2.3.1/SCons/Variables/BoolVariable.py b/scons/scons-local-2.3.4/SCons/Variables/BoolVariable.py similarity index 95% rename from scons/scons-local-2.3.1/SCons/Variables/BoolVariable.py rename to scons/scons-local-2.3.4/SCons/Variables/BoolVariable.py index e7814bbb7..dd21c06d2 100644 --- a/scons/scons-local-2.3.1/SCons/Variables/BoolVariable.py +++ b/scons/scons-local-2.3.4/SCons/Variables/BoolVariable.py @@ -12,7 +12,7 @@ Usage example: """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -34,7 +34,7 @@ Usage example: # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Variables/BoolVariable.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Variables/BoolVariable.py 2014/09/27 12:51:43 garyo" __all__ = ['BoolVariable',] diff --git a/scons/scons-local-2.3.1/SCons/Variables/EnumVariable.py b/scons/scons-local-2.3.4/SCons/Variables/EnumVariable.py similarity index 96% rename from scons/scons-local-2.3.1/SCons/Variables/EnumVariable.py rename to scons/scons-local-2.3.4/SCons/Variables/EnumVariable.py index 33fa45bf2..dc606e0d7 100644 --- a/scons/scons-local-2.3.1/SCons/Variables/EnumVariable.py +++ b/scons/scons-local-2.3.4/SCons/Variables/EnumVariable.py @@ -15,7 +15,7 @@ Usage example: """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -37,7 +37,7 @@ Usage example: # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Variables/EnumVariable.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Variables/EnumVariable.py 2014/09/27 12:51:43 garyo" __all__ = ['EnumVariable',] diff --git a/scons/scons-local-2.3.1/SCons/Variables/ListVariable.py b/scons/scons-local-2.3.4/SCons/Variables/ListVariable.py similarity index 96% rename from scons/scons-local-2.3.1/SCons/Variables/ListVariable.py rename to scons/scons-local-2.3.4/SCons/Variables/ListVariable.py index e831f68cb..3137190f0 100644 --- a/scons/scons-local-2.3.1/SCons/Variables/ListVariable.py +++ b/scons/scons-local-2.3.4/SCons/Variables/ListVariable.py @@ -25,7 +25,7 @@ Usage example: """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -46,7 +46,7 @@ Usage example: # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Variables/ListVariable.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Variables/ListVariable.py 2014/09/27 12:51:43 garyo" # Know Bug: This should behave like a Set-Type, but does not really, # since elements can occur twice. diff --git a/scons/scons-local-2.3.1/SCons/Variables/PackageVariable.py b/scons/scons-local-2.3.4/SCons/Variables/PackageVariable.py similarity index 95% rename from scons/scons-local-2.3.1/SCons/Variables/PackageVariable.py rename to scons/scons-local-2.3.4/SCons/Variables/PackageVariable.py index 72e3674d5..1de397c9b 100644 --- a/scons/scons-local-2.3.1/SCons/Variables/PackageVariable.py +++ b/scons/scons-local-2.3.4/SCons/Variables/PackageVariable.py @@ -28,7 +28,7 @@ Usage example: """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -50,7 +50,7 @@ Usage example: # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Variables/PackageVariable.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Variables/PackageVariable.py 2014/09/27 12:51:43 garyo" __all__ = ['PackageVariable',] diff --git a/scons/scons-local-2.3.1/SCons/Variables/PathVariable.py b/scons/scons-local-2.3.4/SCons/Variables/PathVariable.py similarity index 97% rename from scons/scons-local-2.3.1/SCons/Variables/PathVariable.py rename to scons/scons-local-2.3.4/SCons/Variables/PathVariable.py index 556de5911..ccfbb911f 100644 --- a/scons/scons-local-2.3.1/SCons/Variables/PathVariable.py +++ b/scons/scons-local-2.3.4/SCons/Variables/PathVariable.py @@ -46,7 +46,7 @@ Usage example: """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -68,7 +68,7 @@ Usage example: # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/Variables/PathVariable.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Variables/PathVariable.py 2014/09/27 12:51:43 garyo" __all__ = ['PathVariable',] diff --git a/scons/scons-local-2.3.1/SCons/Variables/__init__.py b/scons/scons-local-2.3.4/SCons/Variables/__init__.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/Variables/__init__.py rename to scons/scons-local-2.3.4/SCons/Variables/__init__.py index f5e9b93d1..12c8af423 100644 --- a/scons/scons-local-2.3.1/SCons/Variables/__init__.py +++ b/scons/scons-local-2.3.4/SCons/Variables/__init__.py @@ -5,7 +5,7 @@ customizable variables to an SCons build. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -26,7 +26,7 @@ customizable variables to an SCons build. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Variables/__init__.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Variables/__init__.py 2014/09/27 12:51:43 garyo" import os.path import sys diff --git a/scons/scons-local-2.3.1/SCons/Warnings.py b/scons/scons-local-2.3.4/SCons/Warnings.py similarity index 97% rename from scons/scons-local-2.3.1/SCons/Warnings.py rename to scons/scons-local-2.3.4/SCons/Warnings.py index bbbd1dc4b..9ca74fc57 100644 --- a/scons/scons-local-2.3.1/SCons/Warnings.py +++ b/scons/scons-local-2.3.4/SCons/Warnings.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -27,7 +27,7 @@ This file implements the warnings framework for SCons. """ -__revision__ = "src/engine/SCons/Warnings.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/Warnings.py 2014/09/27 12:51:43 garyo" import sys @@ -54,6 +54,9 @@ class CorruptSConsignWarning(WarningOnByDefault): class DependencyWarning(Warning): pass +class DevelopmentVersionWarning(WarningOnByDefault): + pass + class DuplicateEnvironmentWarning(WarningOnByDefault): pass diff --git a/scons/scons-local-2.3.1/SCons/__init__.py b/scons/scons-local-2.3.4/SCons/__init__.py similarity index 84% rename from scons/scons-local-2.3.1/SCons/__init__.py rename to scons/scons-local-2.3.4/SCons/__init__.py index f41a1b6b9..f917a8226 100644 --- a/scons/scons-local-2.3.1/SCons/__init__.py +++ b/scons/scons-local-2.3.4/SCons/__init__.py @@ -5,7 +5,7 @@ The main package for the SCons software construction utility. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -27,15 +27,15 @@ The main package for the SCons software construction utility. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/__init__.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/__init__.py 2014/09/27 12:51:43 garyo" -__version__ = "2.3.1" +__version__ = "2.3.4" __build__ = "" __buildsys__ = "lubuntu" -__date__ = "2014/03/02 14:18:15" +__date__ = "2014/09/27 12:51:43" __developer__ = "garyo" diff --git a/scons/scons-local-2.3.1/SCons/compat/__init__.py b/scons/scons-local-2.3.4/SCons/compat/__init__.py similarity index 97% rename from scons/scons-local-2.3.1/SCons/compat/__init__.py rename to scons/scons-local-2.3.4/SCons/compat/__init__.py index 832dff6b5..845218fd6 100644 --- a/scons/scons-local-2.3.1/SCons/compat/__init__.py +++ b/scons/scons-local-2.3.4/SCons/compat/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -60,7 +60,7 @@ function defined below loads the module as the "real" name (without the rest of our code will find our pre-loaded compatibility module. """ -__revision__ = "src/engine/SCons/compat/__init__.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/compat/__init__.py 2014/09/27 12:51:43 garyo" import os import sys diff --git a/scons/scons-local-2.3.1/SCons/compat/_scons_builtins.py b/scons/scons-local-2.3.4/SCons/compat/_scons_builtins.py similarity index 96% rename from scons/scons-local-2.3.1/SCons/compat/_scons_builtins.py rename to scons/scons-local-2.3.4/SCons/compat/_scons_builtins.py index 532703228..38b2e4bd0 100644 --- a/scons/scons-local-2.3.1/SCons/compat/_scons_builtins.py +++ b/scons/scons-local-2.3.4/SCons/compat/_scons_builtins.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -51,7 +51,7 @@ the FUNCTIONS or DATA output, that means those names are already built in to this version of Python and we don't need to add them from this module. """ -__revision__ = "src/engine/SCons/compat/_scons_builtins.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/compat/_scons_builtins.py 2014/09/27 12:51:43 garyo" import builtins diff --git a/scons/scons-local-2.3.1/SCons/compat/_scons_collections.py b/scons/scons-local-2.3.4/SCons/compat/_scons_collections.py similarity index 92% rename from scons/scons-local-2.3.1/SCons/compat/_scons_collections.py rename to scons/scons-local-2.3.4/SCons/compat/_scons_collections.py index 94352acc3..a45b05d98 100644 --- a/scons/scons-local-2.3.1/SCons/compat/_scons_collections.py +++ b/scons/scons-local-2.3.4/SCons/compat/_scons_collections.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ used by SCons, in an interface that looks enough like collections for our purposes. """ -__revision__ = "src/engine/SCons/compat/_scons_collections.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/compat/_scons_collections.py 2014/09/27 12:51:43 garyo" # Use exec to hide old names from fixers. exec("""if True: diff --git a/scons/scons-local-2.3.1/SCons/compat/_scons_dbm.py b/scons/scons-local-2.3.4/SCons/compat/_scons_dbm.py similarity index 88% rename from scons/scons-local-2.3.1/SCons/compat/_scons_dbm.py rename to scons/scons-local-2.3.4/SCons/compat/_scons_dbm.py index dd02ed1a5..800ab96e6 100644 --- a/scons/scons-local-2.3.1/SCons/compat/_scons_dbm.py +++ b/scons/scons-local-2.3.4/SCons/compat/_scons_dbm.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -30,7 +30,7 @@ that the whichdb.whichdb() implementstation in the various 2.X versions of Python won't blow up even if dbm wasn't compiled in. """ -__revision__ = "src/engine/SCons/compat/_scons_dbm.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/compat/_scons_dbm.py 2014/09/27 12:51:43 garyo" class error(Exception): pass diff --git a/scons/scons-local-2.3.1/SCons/compat/_scons_hashlib.py b/scons/scons-local-2.3.4/SCons/compat/_scons_hashlib.py similarity index 94% rename from scons/scons-local-2.3.1/SCons/compat/_scons_hashlib.py rename to scons/scons-local-2.3.4/SCons/compat/_scons_hashlib.py index 32975727d..552f3bf06 100644 --- a/scons/scons-local-2.3.1/SCons/compat/_scons_hashlib.py +++ b/scons/scons-local-2.3.4/SCons/compat/_scons_hashlib.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -31,7 +31,7 @@ purposes, anyway). In fact, this module will raise an ImportError if the underlying md5 module isn't available. """ -__revision__ = "src/engine/SCons/compat/_scons_hashlib.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/compat/_scons_hashlib.py 2014/09/27 12:51:43 garyo" import md5 from string import hexdigits diff --git a/scons/scons-local-2.3.1/SCons/compat/_scons_io.py b/scons/scons-local-2.3.4/SCons/compat/_scons_io.py similarity index 89% rename from scons/scons-local-2.3.1/SCons/compat/_scons_io.py rename to scons/scons-local-2.3.4/SCons/compat/_scons_io.py index 18777eaa4..19df3510e 100644 --- a/scons/scons-local-2.3.1/SCons/compat/_scons_io.py +++ b/scons/scons-local-2.3.4/SCons/compat/_scons_io.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -29,7 +29,7 @@ functionality. It only wraps the portions of io functionality used by SCons, in an interface that looks enough like io for our purposes. """ -__revision__ = "src/engine/SCons/compat/_scons_io.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/compat/_scons_io.py 2014/09/27 12:51:43 garyo" # Use the "imp" module to protect the imports below from fixers. import imp diff --git a/scons/scons-local-2.3.1/SCons/compat/_scons_sets.py b/scons/scons-local-2.3.4/SCons/compat/_scons_sets.py similarity index 100% rename from scons/scons-local-2.3.1/SCons/compat/_scons_sets.py rename to scons/scons-local-2.3.4/SCons/compat/_scons_sets.py diff --git a/scons/scons-local-2.3.1/SCons/compat/_scons_subprocess.py b/scons/scons-local-2.3.4/SCons/compat/_scons_subprocess.py similarity index 100% rename from scons/scons-local-2.3.1/SCons/compat/_scons_subprocess.py rename to scons/scons-local-2.3.4/SCons/compat/_scons_subprocess.py diff --git a/scons/scons-local-2.3.1/SCons/cpp.py b/scons/scons-local-2.3.4/SCons/cpp.py similarity index 98% rename from scons/scons-local-2.3.1/SCons/cpp.py rename to scons/scons-local-2.3.4/SCons/cpp.py index a5698fd92..70057afed 100644 --- a/scons/scons-local-2.3.1/SCons/cpp.py +++ b/scons/scons-local-2.3.4/SCons/cpp.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/cpp.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/cpp.py 2014/09/27 12:51:43 garyo" __doc__ = """ SCons C Pre-Processor module @@ -395,9 +395,10 @@ class PreProcessor(object): """ d = self.dispatch_table - d['import'] = self.do_import - d['include'] = self.do_include - d['include_next'] = self.do_include + p = self.stack[-1] if self.stack else self.default_table + + for k in ('import', 'include', 'include_next'): + d[k] = p[k] def stop_handling_includes(self, t=None): """ diff --git a/scons/scons-local-2.3.1/SCons/dblite.py b/scons/scons-local-2.3.4/SCons/dblite.py similarity index 100% rename from scons/scons-local-2.3.1/SCons/dblite.py rename to scons/scons-local-2.3.4/SCons/dblite.py diff --git a/scons/scons-local-2.3.1/SCons/exitfuncs.py b/scons/scons-local-2.3.4/SCons/exitfuncs.py similarity index 91% rename from scons/scons-local-2.3.1/SCons/exitfuncs.py rename to scons/scons-local-2.3.4/SCons/exitfuncs.py index 586eb2796..3cab19b68 100644 --- a/scons/scons-local-2.3.1/SCons/exitfuncs.py +++ b/scons/scons-local-2.3.4/SCons/exitfuncs.py @@ -5,7 +5,7 @@ Register functions which are executed when SCons exits for any reason. """ # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -27,7 +27,7 @@ Register functions which are executed when SCons exits for any reason. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -__revision__ = "src/engine/SCons/exitfuncs.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/engine/SCons/exitfuncs.py 2014/09/27 12:51:43 garyo" import atexit diff --git a/scons/scons-local-2.3.1/scons-2.3.1.egg-info b/scons/scons-local-2.3.4/scons-2.3.4.egg-info similarity index 96% rename from scons/scons-local-2.3.1/scons-2.3.1.egg-info rename to scons/scons-local-2.3.4/scons-2.3.4.egg-info index bfd6e3f79..2343aad01 100644 --- a/scons/scons-local-2.3.1/scons-2.3.1.egg-info +++ b/scons/scons-local-2.3.4/scons-2.3.4.egg-info @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: scons -Version: 2.3.1 +Version: 2.3.4 Summary: Open Source next-generation build tool. Home-page: http://www.scons.org/ Author: Steven Knight diff --git a/scons/scons-time.py b/scons/scons-time.py index 0a515666b..0a3176b90 100755 --- a/scons/scons-time.py +++ b/scons/scons-time.py @@ -9,7 +9,7 @@ # # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -32,7 +32,7 @@ from __future__ import division from __future__ import nested_scopes -__revision__ = "src/script/scons-time.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/script/scons-time.py 2014/09/27 12:51:43 garyo" import getopt import glob diff --git a/scons/scons.py b/scons/scons.py index 87919a1ae..c917f473b 100755 --- a/scons/scons.py +++ b/scons/scons.py @@ -2,7 +2,7 @@ # # SCons - a Software Constructor # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -23,21 +23,22 @@ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/script/scons.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/script/scons.py 2014/09/27 12:51:43 garyo" -__version__ = "2.3.1" +__version__ = "2.3.4" __build__ = "" __buildsys__ = "lubuntu" -__date__ = "2014/03/02 14:18:15" +__date__ = "2014/09/27 12:51:43" __developer__ = "garyo" import os import sys + ############################################################################## # BEGIN STANDARD SCons SCRIPT HEADER # @@ -72,6 +73,11 @@ libs = [] if "SCONS_LIB_DIR" in os.environ: libs.append(os.environ["SCONS_LIB_DIR"]) +# - running from source takes priority (since 2.3.2), excluding SCONS_LIB_DIR settings +script_path = os.path.abspath(os.path.dirname(__file__)) +source_path = os.path.join(script_path, '..', 'engine') +libs.append(source_path) + local_version = 'scons-local-' + __version__ local = 'scons-local' if script_dir: @@ -85,6 +91,8 @@ scons_version = 'scons-%s' % __version__ # preferred order of scons lookup paths prefs = [] + +# - running from egg check try: import pkg_resources except ImportError: @@ -181,12 +189,11 @@ if __name__ == "__main__": try: import SCons.Script except: - ROOT = os.path.join(os.path.abspath(os.path.dirname(__file__)), '..', 'engine') - if os.path.exists(ROOT): - sys.path += [ROOT] - print("SCons import failed. Trying to run from source directory") - import SCons.Script - + print("Import failed. Unable to find SCons files in:") + for path in libs: + print " %s" % path + raise + # this does all the work, and calls sys.exit # with the proper exit status when done. SCons.Script.main() diff --git a/scons/sconsign.py b/scons/sconsign.py index 0c243229d..b2cf89509 100755 --- a/scons/sconsign.py +++ b/scons/sconsign.py @@ -2,7 +2,7 @@ # # SCons - a Software Constructor # -# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation +# Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -23,15 +23,15 @@ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/script/sconsign.py 2014/03/02 14:18:15 garyo" +__revision__ = "src/script/sconsign.py 2014/09/27 12:51:43 garyo" -__version__ = "2.3.1" +__version__ = "2.3.4" __build__ = "" __buildsys__ = "lubuntu" -__date__ = "2014/03/02 14:18:15" +__date__ = "2014/09/27 12:51:43" __developer__ = "garyo"