qrscanner 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/Manifest +478 -0
- data/README +41 -0
- data/Rakefile +9 -0
- data/bin/qrscanner +9 -0
- data/ext/qrscanner/extconf.rb +70 -0
- data/ext/qrscanner/qrscanner.c +32 -0
- data/ext/qrscanner/zxing/README +43 -0
- data/ext/qrscanner/zxing/SConscript +55 -0
- data/ext/qrscanner/zxing/SConstruct +7 -0
- data/ext/qrscanner/zxing/astyle-options +12 -0
- data/ext/qrscanner/zxing/blackboxtest.sh +45 -0
- data/ext/qrscanner/zxing/core/src/zxing/BarcodeFormat.cpp +38 -0
- data/ext/qrscanner/zxing/core/src/zxing/BarcodeFormat.h +42 -0
- data/ext/qrscanner/zxing/core/src/zxing/Binarizer.cpp +36 -0
- data/ext/qrscanner/zxing/core/src/zxing/Binarizer.h +46 -0
- data/ext/qrscanner/zxing/core/src/zxing/BinaryBitmap.cpp +67 -0
- data/ext/qrscanner/zxing/core/src/zxing/BinaryBitmap.h +57 -0
- data/ext/qrscanner/zxing/core/src/zxing/DecodeHints.cpp +111 -0
- data/ext/qrscanner/zxing/core/src/zxing/DecodeHints.h +69 -0
- data/ext/qrscanner/zxing/core/src/zxing/Exception.cpp +25 -0
- data/ext/qrscanner/zxing/core/src/zxing/Exception.h +39 -0
- data/ext/qrscanner/zxing/core/src/zxing/LuminanceSource.cpp +47 -0
- data/ext/qrscanner/zxing/core/src/zxing/LuminanceSource.h +49 -0
- data/ext/qrscanner/zxing/core/src/zxing/MultiFormatReader.cpp +102 -0
- data/ext/qrscanner/zxing/core/src/zxing/MultiFormatReader.h +49 -0
- data/ext/qrscanner/zxing/core/src/zxing/Reader.cpp +31 -0
- data/ext/qrscanner/zxing/core/src/zxing/Reader.h +40 -0
- data/ext/qrscanner/zxing/core/src/zxing/ReaderException.cpp +32 -0
- data/ext/qrscanner/zxing/core/src/zxing/ReaderException.h +34 -0
- data/ext/qrscanner/zxing/core/src/zxing/Result.cpp +59 -0
- data/ext/qrscanner/zxing/core/src/zxing/Result.h +53 -0
- data/ext/qrscanner/zxing/core/src/zxing/ResultPoint.cpp +27 -0
- data/ext/qrscanner/zxing/core/src/zxing/ResultPoint.h +39 -0
- data/ext/qrscanner/zxing/core/src/zxing/ResultPointCallback.cpp +26 -0
- data/ext/qrscanner/zxing/core/src/zxing/ResultPointCallback.h +39 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/Array.cpp +22 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/Array.h +207 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/BitArray.cpp +129 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/BitArray.h +55 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/BitMatrix.cpp +178 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/BitMatrix.h +65 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/BitSource.cpp +75 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/BitSource.h +67 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/Counted.cpp +32 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/Counted.h +205 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/DecoderResult.cpp +37 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/DecoderResult.h +43 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/DetectorResult.cpp +41 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/DetectorResult.h +46 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/EdgeDetector.cpp +191 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/EdgeDetector.h +38 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/GlobalHistogramBinarizer.cpp +209 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/GlobalHistogramBinarizer.h +47 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/GreyscaleLuminanceSource.cpp +70 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/GreyscaleLuminanceSource.h +62 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/GreyscaleRotatedLuminanceSource.cpp +65 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/GreyscaleRotatedLuminanceSource.h +60 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/GridSampler.cpp +101 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/GridSampler.h +43 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/HybridBinarizer.cpp +168 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/HybridBinarizer.h +55 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/IllegalArgumentException.cpp +31 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/IllegalArgumentException.h +33 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/PerspectiveTransform.cpp +107 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/PerspectiveTransform.h +49 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/Point.h +47 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/Str.cpp +38 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/Str.h +40 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/reedsolomon/GF256.cpp +136 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/reedsolomon/GF256.h +68 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/reedsolomon/GF256Poly.cpp +198 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/reedsolomon/GF256Poly.h +53 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/reedsolomon/ReedSolomonDecoder.cpp +193 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/reedsolomon/ReedSolomonDecoder.h +46 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/reedsolomon/ReedSolomonException.cpp +30 -0
- data/ext/qrscanner/zxing/core/src/zxing/common/reedsolomon/ReedSolomonException.h +33 -0
- data/ext/qrscanner/zxing/core/src/zxing/datamatrix/DataMatrixReader.cpp +82 -0
- data/ext/qrscanner/zxing/core/src/zxing/datamatrix/DataMatrixReader.h +45 -0
- data/ext/qrscanner/zxing/core/src/zxing/datamatrix/Version.cpp +199 -0
- data/ext/qrscanner/zxing/core/src/zxing/datamatrix/Version.h +87 -0
- data/ext/qrscanner/zxing/core/src/zxing/datamatrix/decoder/BitMatrixParser.cpp +364 -0
- data/ext/qrscanner/zxing/core/src/zxing/datamatrix/decoder/BitMatrixParser.h +59 -0
- data/ext/qrscanner/zxing/core/src/zxing/datamatrix/decoder/DataBlock.cpp +113 -0
- data/ext/qrscanner/zxing/core/src/zxing/datamatrix/decoder/DataBlock.h +49 -0
- data/ext/qrscanner/zxing/core/src/zxing/datamatrix/decoder/DecodedBitStreamParser.cpp +404 -0
- data/ext/qrscanner/zxing/core/src/zxing/datamatrix/decoder/DecodedBitStreamParser.h +103 -0
- data/ext/qrscanner/zxing/core/src/zxing/datamatrix/decoder/Decoder.cpp +96 -0
- data/ext/qrscanner/zxing/core/src/zxing/datamatrix/decoder/Decoder.h +50 -0
- data/ext/qrscanner/zxing/core/src/zxing/datamatrix/detector/CornerPoint.cpp +54 -0
- data/ext/qrscanner/zxing/core/src/zxing/datamatrix/detector/CornerPoint.h +47 -0
- data/ext/qrscanner/zxing/core/src/zxing/datamatrix/detector/Detector.cpp +315 -0
- data/ext/qrscanner/zxing/core/src/zxing/datamatrix/detector/Detector.h +79 -0
- data/ext/qrscanner/zxing/core/src/zxing/datamatrix/detector/MonochromeRectangleDetector.cpp +172 -0
- data/ext/qrscanner/zxing/core/src/zxing/datamatrix/detector/MonochromeRectangleDetector.h +61 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/Code128Reader.cpp +490 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/Code128Reader.h +63 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/Code39Reader.cpp +352 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/Code39Reader.h +58 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/EAN13Reader.cpp +95 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/EAN13Reader.h +44 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/EAN8Reader.cpp +73 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/EAN8Reader.h +41 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/ITFReader.cpp +363 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/ITFReader.h +56 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/MultiFormatOneDReader.cpp +66 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/MultiFormatOneDReader.h +38 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/MultiFormatUPCEANReader.cpp +87 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/MultiFormatUPCEANReader.h +38 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/OneDReader.cpp +206 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/OneDReader.h +50 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/OneDResultPoint.cpp +36 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/OneDResultPoint.h +40 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/UPCAReader.cpp +65 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/UPCAReader.h +49 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/UPCEANReader.cpp +311 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/UPCEANReader.h +77 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/UPCEReader.cpp +143 -0
- data/ext/qrscanner/zxing/core/src/zxing/oned/UPCEReader.h +47 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/ErrorCorrectionLevel.cpp +49 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/ErrorCorrectionLevel.h +46 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/FormatInformation.cpp +108 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/FormatInformation.h +54 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/QRCodeReader.cpp +82 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/QRCodeReader.h +43 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/Version.cpp +557 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/Version.h +85 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/decoder/BitMatrixParser.cpp +191 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/decoder/BitMatrixParser.h +56 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/decoder/DataBlock.cpp +118 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/decoder/DataBlock.h +50 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/decoder/DataMask.cpp +159 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/decoder/DataMask.h +50 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/decoder/DecodedBitStreamParser.cpp +353 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/decoder/DecodedBitStreamParser.h +59 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/decoder/Decoder.cpp +103 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/decoder/Decoder.h +47 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/decoder/Mode.cpp +73 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/decoder/Mode.h +50 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/detector/AlignmentPattern.cpp +46 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/detector/AlignmentPattern.h +45 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/detector/AlignmentPatternFinder.cpp +209 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/detector/AlignmentPatternFinder.h +68 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/detector/Detector.cpp +286 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/detector/Detector.h +64 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/detector/FinderPattern.cpp +58 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/detector/FinderPattern.h +48 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/detector/FinderPatternFinder.cpp +540 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/detector/FinderPatternFinder.h +69 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/detector/FinderPatternInfo.cpp +41 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/detector/FinderPatternInfo.h +47 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/detector/QREdgeDetector.cpp +169 -0
- data/ext/qrscanner/zxing/core/src/zxing/qrcode/detector/QREdgeDetector.h +48 -0
- data/ext/qrscanner/zxing/core/tests/src/TestRunner.cpp +30 -0
- data/ext/qrscanner/zxing/core/tests/src/common/BitArrayTest.cpp +96 -0
- data/ext/qrscanner/zxing/core/tests/src/common/BitArrayTest.h +50 -0
- data/ext/qrscanner/zxing/core/tests/src/common/BitMatrixTest.cpp +107 -0
- data/ext/qrscanner/zxing/core/tests/src/common/BitMatrixTest.h +55 -0
- data/ext/qrscanner/zxing/core/tests/src/common/BitSourceTest.cpp +49 -0
- data/ext/qrscanner/zxing/core/tests/src/common/BitSourceTest.h +42 -0
- data/ext/qrscanner/zxing/core/tests/src/common/BlackPointEstimatorTest.cpp +47 -0
- data/ext/qrscanner/zxing/core/tests/src/common/BlackPointEstimatorTest.h +45 -0
- data/ext/qrscanner/zxing/core/tests/src/common/CountedTest.cpp +54 -0
- data/ext/qrscanner/zxing/core/tests/src/common/CountedTest.h +46 -0
- data/ext/qrscanner/zxing/core/tests/src/common/PerspectiveTransformTest.cpp +69 -0
- data/ext/qrscanner/zxing/core/tests/src/common/PerspectiveTransformTest.h +47 -0
- data/ext/qrscanner/zxing/core/tests/src/common/reedsolomon/ReedSolomonTest.cpp +130 -0
- data/ext/qrscanner/zxing/core/tests/src/common/reedsolomon/ReedSolomonTest.h +62 -0
- data/ext/qrscanner/zxing/core/tests/src/qrcode/ErrorCorrectionLevelTest.cpp +47 -0
- data/ext/qrscanner/zxing/core/tests/src/qrcode/ErrorCorrectionLevelTest.h +45 -0
- data/ext/qrscanner/zxing/core/tests/src/qrcode/FormatInformationTest.cpp +70 -0
- data/ext/qrscanner/zxing/core/tests/src/qrcode/FormatInformationTest.h +47 -0
- data/ext/qrscanner/zxing/core/tests/src/qrcode/VersionTest.cpp +88 -0
- data/ext/qrscanner/zxing/core/tests/src/qrcode/VersionTest.h +49 -0
- data/ext/qrscanner/zxing/core/tests/src/qrcode/decoder/DataMaskTest.cpp +134 -0
- data/ext/qrscanner/zxing/core/tests/src/qrcode/decoder/DataMaskTest.h +91 -0
- data/ext/qrscanner/zxing/core/tests/src/qrcode/decoder/ModeTest.cpp +52 -0
- data/ext/qrscanner/zxing/core/tests/src/qrcode/decoder/ModeTest.h +47 -0
- data/ext/qrscanner/zxing/format +2 -0
- data/ext/qrscanner/zxing/magick/src/MagickBitmapSource.cpp +99 -0
- data/ext/qrscanner/zxing/magick/src/MagickBitmapSource.h +49 -0
- data/ext/qrscanner/zxing/magick/src/example.cpp +83 -0
- data/ext/qrscanner/zxing/magick/src/main.cpp +241 -0
- data/ext/qrscanner/zxing/magick/src/qrscanner.cpp +188 -0
- data/ext/qrscanner/zxing/osx.xcodeproj/project.pbxproj +1045 -0
- data/ext/qrscanner/zxing/scons/scons-LICENSE +25 -0
- data/ext/qrscanner/zxing/scons/scons-README +204 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Action.py +1241 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Action.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Builder.py +877 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Builder.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/CacheDir.py +216 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/CacheDir.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.py +793 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Debug.py +220 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Debug.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Defaults.py +480 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Defaults.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Environment.py +2318 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Environment.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Errors.py +205 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Errors.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Executor.py +633 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Executor.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Job.py +435 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Job.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Memoize.py +244 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Memoize.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Node/Alias.py +152 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Node/Alias.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Node/FS.py +3142 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Node/FS.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Node/Python.py +128 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Node/Python.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Node/__init__.py +1328 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Node/__init__.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Options/BoolOption.py +50 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Options/BoolOption.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Options/EnumOption.py +50 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Options/EnumOption.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Options/ListOption.py +50 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Options/ListOption.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Options/PackageOption.py +50 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Options/PackageOption.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Options/PathOption.py +76 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Options/PathOption.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Options/__init__.py +67 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Options/__init__.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/PathList.py +231 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/PathList.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Platform/__init__.py +241 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Platform/__init__.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Platform/aix.py +69 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Platform/cygwin.py +55 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Platform/darwin.py +46 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Platform/hpux.py +46 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Platform/irix.py +44 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Platform/os2.py +58 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Platform/posix.py +263 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Platform/posix.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Platform/sunos.py +50 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Platform/win32.py +385 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/SConf.py +1030 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/SConf.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/SConsign.py +383 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/SConsign.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/C.py +132 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/C.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/D.py +73 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/D.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/Dir.py +109 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/Dir.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/Fortran.py +316 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/Fortran.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/IDL.py +48 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/LaTeX.py +362 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/LaTeX.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/Prog.py +101 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/Prog.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/RC.py +55 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/__init__.py +413 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Scanner/__init__.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Script/Interactive.py +384 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Script/Interactive.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Script/Main.py +1334 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Script/Main.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Script/SConsOptions.py +939 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Script/SConsOptions.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Script/SConscript.py +640 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Script/SConscript.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Script/__init__.py +412 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Script/__init__.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Sig.py +63 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Subst.py +904 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Subst.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Taskmaster.py +1017 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Taskmaster.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/386asm.py +61 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/BitKeeper.py +67 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/BitKeeper.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/CVS.py +73 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/CVS.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/FortranCommon.py +246 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/FortranCommon.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/JavaCommon.py +323 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/JavaCommon.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/MSCommon/__init__.py +56 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/MSCommon/arch.py +61 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/MSCommon/common.py +240 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/MSCommon/netframework.py +82 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/MSCommon/sdk.py +391 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/MSCommon/vc.py +456 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/MSCommon/vs.py +499 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/Perforce.py +103 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/Perforce.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/PharLapCommon.py +137 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/PharLapCommon.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/RCS.py +64 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/RCS.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/SCCS.py +64 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/SCCS.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/Subversion.py +71 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/__init__.py +681 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/__init__.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/aixc++.py +82 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/aixcc.py +74 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/aixf77.py +80 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/aixlink.py +76 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/applelink.py +71 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/ar.py +63 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/ar.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/as.py +78 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/as.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/bcc32.py +81 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/c++.py +99 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/c++.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/cc.py +102 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/cc.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/cvf.py +58 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/default.py +50 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/default.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/dmd.py +223 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/dmd.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/dvi.py +64 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/dvipdf.py +124 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/dvipdf.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/dvips.py +94 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/dvips.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/f77.py +62 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/f77.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/f90.py +62 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/f90.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/f95.py +63 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/f95.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/filesystem.py +98 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/filesystem.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/fortran.py +62 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/fortran.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/g++.py +90 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/g++.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/g77.py +73 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/g77.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/gas.py +53 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/gas.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/gcc.py +80 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/gcc.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/gfortran.py +64 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/gfortran.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/gnulink.py +63 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/gnulink.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/gs.py +81 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/gs.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/hpc++.py +84 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/hpcc.py +53 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/hplink.py +77 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/icc.py +59 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/icl.py +52 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/ifl.py +72 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/ifl.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/ifort.py +88 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/ifort.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/ilink.py +59 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/ilink32.py +60 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/install.py +229 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/install.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/intelc.py +482 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/ipkg.py +67 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/jar.py +110 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/jar.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/javac.py +230 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/javac.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/javah.py +137 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/javah.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/latex.py +79 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/latex.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/lex.py +97 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/lex.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/link.py +121 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/link.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/linkloc.py +112 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/m4.py +63 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/m4.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/masm.py +77 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/midl.py +88 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/mingw.py +158 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/mslib.py +64 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/mslink.py +266 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/mssdk.py +50 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/msvc.py +268 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/msvs.py +1388 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/mwcc.py +207 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/mwld.py +107 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/nasm.py +72 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/packaging/__init__.py +312 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/packaging/ipk.py +185 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/packaging/msi.py +527 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/packaging/rpm.py +365 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/packaging/src_tarbz2.py +43 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/packaging/src_targz.py +43 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/packaging/src_zip.py +43 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/packaging/tarbz2.py +44 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/packaging/targz.py +44 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/packaging/zip.py +44 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/pdf.py +78 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/pdf.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/pdflatex.py +83 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/pdflatex.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/pdftex.py +108 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/pdftex.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/qt.py +336 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/rmic.py +120 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/rmic.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/rpcgen.py +70 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/rpcgen.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/rpm.py +132 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/rpm.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/sgiar.py +68 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/sgic++.py +58 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/sgicc.py +53 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/sgilink.py +63 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/sunar.py +67 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/sunc++.py +142 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/suncc.py +58 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/sunf77.py +63 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/sunf90.py +64 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/sunf95.py +64 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/sunlink.py +77 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/swig.py +182 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/swig.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/tar.py +73 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/tar.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/tex.py +807 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/tex.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/textfile.py +175 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/tlib.py +53 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/wix.py +99 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/wix.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/yacc.py +130 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/yacc.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/zip.py +99 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/zip.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Util.py +1496 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Util.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/BoolVariable.py +89 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/BoolVariable.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/EnumVariable.py +103 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/EnumVariable.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/ListVariable.py +135 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/ListVariable.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/PackageVariable.py +106 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/PackageVariable.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/PathVariable.py +147 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/PathVariable.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/__init__.py +312 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/__init__.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Warnings.py +246 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Warnings.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/__init__.py +49 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/__init__.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/compat/__init__.py +237 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/compat/__init__.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/compat/_scons_builtins.py +150 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/compat/_scons_builtins.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/compat/_scons_collections.py +45 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/compat/_scons_dbm.py +45 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/compat/_scons_hashlib.py +76 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/compat/_scons_io.py +45 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/compat/_scons_sets.py +563 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/compat/_scons_subprocess.py +1281 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/cpp.py +589 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/cpp.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/dblite.py +251 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/dblite.pyc +0 -0
- data/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/exitfuncs.py +77 -0
- data/ext/qrscanner/zxing/scons/scons-time.py +1544 -0
- data/ext/qrscanner/zxing/scons/scons.py +196 -0
- data/ext/qrscanner/zxing/scons/sconsign.py +513 -0
- data/qrscanner.gemspec +33 -0
- metadata +1023 -0
@@ -0,0 +1,185 @@
|
|
1
|
+
"""SCons.Tool.Packaging.ipk
|
2
|
+
"""
|
3
|
+
|
4
|
+
#
|
5
|
+
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
|
6
|
+
#
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
8
|
+
# a copy of this software and associated documentation files (the
|
9
|
+
# "Software"), to deal in the Software without restriction, including
|
10
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
11
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
12
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
13
|
+
# the following conditions:
|
14
|
+
#
|
15
|
+
# The above copyright notice and this permission notice shall be included
|
16
|
+
# in all copies or substantial portions of the Software.
|
17
|
+
#
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
19
|
+
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
20
|
+
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
21
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
22
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
23
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
24
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
|
+
#
|
26
|
+
|
27
|
+
__revision__ = "src/engine/SCons/Tool/packaging/ipk.py 5023 2010/06/14 22:05:46 scons"
|
28
|
+
|
29
|
+
import SCons.Builder
|
30
|
+
import SCons.Node.FS
|
31
|
+
import os
|
32
|
+
|
33
|
+
from SCons.Tool.packaging import stripinstallbuilder, putintopackageroot
|
34
|
+
|
35
|
+
def package(env, target, source, PACKAGEROOT, NAME, VERSION, DESCRIPTION,
|
36
|
+
SUMMARY, X_IPK_PRIORITY, X_IPK_SECTION, SOURCE_URL,
|
37
|
+
X_IPK_MAINTAINER, X_IPK_DEPENDS, **kw):
|
38
|
+
""" this function prepares the packageroot directory for packaging with the
|
39
|
+
ipkg builder.
|
40
|
+
"""
|
41
|
+
SCons.Tool.Tool('ipkg').generate(env)
|
42
|
+
|
43
|
+
# setup the Ipkg builder
|
44
|
+
bld = env['BUILDERS']['Ipkg']
|
45
|
+
target, source = stripinstallbuilder(target, source, env)
|
46
|
+
target, source = putintopackageroot(target, source, env, PACKAGEROOT)
|
47
|
+
|
48
|
+
# This should be overridable from the construction environment,
|
49
|
+
# which it is by using ARCHITECTURE=.
|
50
|
+
# Guessing based on what os.uname() returns at least allows it
|
51
|
+
# to work for both i386 and x86_64 Linux systems.
|
52
|
+
archmap = {
|
53
|
+
'i686' : 'i386',
|
54
|
+
'i586' : 'i386',
|
55
|
+
'i486' : 'i386',
|
56
|
+
}
|
57
|
+
|
58
|
+
buildarchitecture = os.uname()[4]
|
59
|
+
buildarchitecture = archmap.get(buildarchitecture, buildarchitecture)
|
60
|
+
|
61
|
+
if 'ARCHITECTURE' in kw:
|
62
|
+
buildarchitecture = kw['ARCHITECTURE']
|
63
|
+
|
64
|
+
# setup the kw to contain the mandatory arguments to this fucntion.
|
65
|
+
# do this before calling any builder or setup function
|
66
|
+
loc=locals()
|
67
|
+
del loc['kw']
|
68
|
+
kw.update(loc)
|
69
|
+
del kw['source'], kw['target'], kw['env']
|
70
|
+
|
71
|
+
# generate the specfile
|
72
|
+
specfile = gen_ipk_dir(PACKAGEROOT, source, env, kw)
|
73
|
+
|
74
|
+
# override the default target.
|
75
|
+
if str(target[0])=="%s-%s"%(NAME, VERSION):
|
76
|
+
target=[ "%s_%s_%s.ipk"%(NAME, VERSION, buildarchitecture) ]
|
77
|
+
|
78
|
+
# now apply the Ipkg builder
|
79
|
+
return bld(env, target, specfile, **kw)
|
80
|
+
|
81
|
+
def gen_ipk_dir(proot, source, env, kw):
|
82
|
+
# make sure the packageroot is a Dir object.
|
83
|
+
if SCons.Util.is_String(proot): proot=env.Dir(proot)
|
84
|
+
|
85
|
+
# create the specfile builder
|
86
|
+
s_bld=SCons.Builder.Builder(
|
87
|
+
action = build_specfiles,
|
88
|
+
)
|
89
|
+
|
90
|
+
# create the specfile targets
|
91
|
+
spec_target=[]
|
92
|
+
control=proot.Dir('CONTROL')
|
93
|
+
spec_target.append(control.File('control'))
|
94
|
+
spec_target.append(control.File('conffiles'))
|
95
|
+
spec_target.append(control.File('postrm'))
|
96
|
+
spec_target.append(control.File('prerm'))
|
97
|
+
spec_target.append(control.File('postinst'))
|
98
|
+
spec_target.append(control.File('preinst'))
|
99
|
+
|
100
|
+
# apply the builder to the specfile targets
|
101
|
+
s_bld(env, spec_target, source, **kw)
|
102
|
+
|
103
|
+
# the packageroot directory does now contain the specfiles.
|
104
|
+
return proot
|
105
|
+
|
106
|
+
def build_specfiles(source, target, env):
|
107
|
+
""" filter the targets for the needed files and use the variables in env
|
108
|
+
to create the specfile.
|
109
|
+
"""
|
110
|
+
#
|
111
|
+
# At first we care for the CONTROL/control file, which is the main file for ipk.
|
112
|
+
#
|
113
|
+
# For this we need to open multiple files in random order, so we store into
|
114
|
+
# a dict so they can be easily accessed.
|
115
|
+
#
|
116
|
+
#
|
117
|
+
opened_files={}
|
118
|
+
def open_file(needle, haystack):
|
119
|
+
try:
|
120
|
+
return opened_files[needle]
|
121
|
+
except KeyError:
|
122
|
+
file=filter(lambda x: x.get_path().rfind(needle)!=-1, haystack)[0]
|
123
|
+
opened_files[needle]=open(file.abspath, 'w')
|
124
|
+
return opened_files[needle]
|
125
|
+
|
126
|
+
control_file=open_file('control', target)
|
127
|
+
|
128
|
+
if 'X_IPK_DESCRIPTION' not in env:
|
129
|
+
env['X_IPK_DESCRIPTION']="%s\n %s"%(env['SUMMARY'],
|
130
|
+
env['DESCRIPTION'].replace('\n', '\n '))
|
131
|
+
|
132
|
+
|
133
|
+
content = """
|
134
|
+
Package: $NAME
|
135
|
+
Version: $VERSION
|
136
|
+
Priority: $X_IPK_PRIORITY
|
137
|
+
Section: $X_IPK_SECTION
|
138
|
+
Source: $SOURCE_URL
|
139
|
+
Architecture: $ARCHITECTURE
|
140
|
+
Maintainer: $X_IPK_MAINTAINER
|
141
|
+
Depends: $X_IPK_DEPENDS
|
142
|
+
Description: $X_IPK_DESCRIPTION
|
143
|
+
"""
|
144
|
+
|
145
|
+
control_file.write(env.subst(content))
|
146
|
+
|
147
|
+
#
|
148
|
+
# now handle the various other files, which purpose it is to set post-,
|
149
|
+
# pre-scripts and mark files as config files.
|
150
|
+
#
|
151
|
+
# We do so by filtering the source files for files which are marked with
|
152
|
+
# the "config" tag and afterwards we do the same for x_ipk_postrm,
|
153
|
+
# x_ipk_prerm, x_ipk_postinst and x_ipk_preinst tags.
|
154
|
+
#
|
155
|
+
# The first one will write the name of the file into the file
|
156
|
+
# CONTROL/configfiles, the latter add the content of the x_ipk_* variable
|
157
|
+
# into the same named file.
|
158
|
+
#
|
159
|
+
for f in [x for x in source if 'PACKAGING_CONFIG' in dir(x)]:
|
160
|
+
config=open_file('conffiles')
|
161
|
+
config.write(f.PACKAGING_INSTALL_LOCATION)
|
162
|
+
config.write('\n')
|
163
|
+
|
164
|
+
for str in 'POSTRM PRERM POSTINST PREINST'.split():
|
165
|
+
name="PACKAGING_X_IPK_%s"%str
|
166
|
+
for f in [x for x in source if name in dir(x)]:
|
167
|
+
file=open_file(name)
|
168
|
+
file.write(env[str])
|
169
|
+
|
170
|
+
#
|
171
|
+
# close all opened files
|
172
|
+
for f in opened_files.values():
|
173
|
+
f.close()
|
174
|
+
|
175
|
+
# call a user specified function
|
176
|
+
if 'CHANGE_SPECFILE' in env:
|
177
|
+
content += env['CHANGE_SPECFILE'](target)
|
178
|
+
|
179
|
+
return 0
|
180
|
+
|
181
|
+
# Local Variables:
|
182
|
+
# tab-width:4
|
183
|
+
# indent-tabs-mode:nil
|
184
|
+
# End:
|
185
|
+
# vim: set expandtab tabstop=4 shiftwidth=4:
|
@@ -0,0 +1,527 @@
|
|
1
|
+
"""SCons.Tool.packaging.msi
|
2
|
+
|
3
|
+
The msi packager.
|
4
|
+
"""
|
5
|
+
|
6
|
+
#
|
7
|
+
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
|
8
|
+
#
|
9
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
10
|
+
# a copy of this software and associated documentation files (the
|
11
|
+
# "Software"), to deal in the Software without restriction, including
|
12
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
13
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
14
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
15
|
+
# the following conditions:
|
16
|
+
#
|
17
|
+
# The above copyright notice and this permission notice shall be included
|
18
|
+
# in all copies or substantial portions of the Software.
|
19
|
+
#
|
20
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
21
|
+
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
22
|
+
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
23
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
24
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
25
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
26
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
27
|
+
|
28
|
+
__revision__ = "src/engine/SCons/Tool/packaging/msi.py 5023 2010/06/14 22:05:46 scons"
|
29
|
+
|
30
|
+
import os
|
31
|
+
import SCons
|
32
|
+
from SCons.Action import Action
|
33
|
+
from SCons.Builder import Builder
|
34
|
+
|
35
|
+
from xml.dom.minidom import *
|
36
|
+
from xml.sax.saxutils import escape
|
37
|
+
|
38
|
+
from SCons.Tool.packaging import stripinstallbuilder
|
39
|
+
|
40
|
+
#
|
41
|
+
# Utility functions
|
42
|
+
#
|
43
|
+
def convert_to_id(s, id_set):
|
44
|
+
""" Some parts of .wxs need an Id attribute (for example: The File and
|
45
|
+
Directory directives. The charset is limited to A-Z, a-z, digits,
|
46
|
+
underscores, periods. Each Id must begin with a letter or with a
|
47
|
+
underscore. Google for "CNDL0015" for information about this.
|
48
|
+
|
49
|
+
Requirements:
|
50
|
+
* the string created must only contain chars from the target charset.
|
51
|
+
* the string created must have a minimal editing distance from the
|
52
|
+
original string.
|
53
|
+
* the string created must be unique for the whole .wxs file.
|
54
|
+
|
55
|
+
Observation:
|
56
|
+
* There are 62 chars in the charset.
|
57
|
+
|
58
|
+
Idea:
|
59
|
+
* filter out forbidden characters. Check for a collision with the help
|
60
|
+
of the id_set. Add the number of the number of the collision at the
|
61
|
+
end of the created string. Furthermore care for a correct start of
|
62
|
+
the string.
|
63
|
+
"""
|
64
|
+
charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYabcdefghijklmnopqrstuvwxyz0123456789_.'
|
65
|
+
if s[0] in '0123456789.':
|
66
|
+
s += '_'+s
|
67
|
+
id = [c for c in s if c in charset]
|
68
|
+
|
69
|
+
# did we already generate an id for this file?
|
70
|
+
try:
|
71
|
+
return id_set[id][s]
|
72
|
+
except KeyError:
|
73
|
+
# no we did not so initialize with the id
|
74
|
+
if id not in id_set: id_set[id] = { s : id }
|
75
|
+
# there is a collision, generate an id which is unique by appending
|
76
|
+
# the collision number
|
77
|
+
else: id_set[id][s] = id + str(len(id_set[id]))
|
78
|
+
|
79
|
+
return id_set[id][s]
|
80
|
+
|
81
|
+
def is_dos_short_file_name(file):
|
82
|
+
""" examine if the given file is in the 8.3 form.
|
83
|
+
"""
|
84
|
+
fname, ext = os.path.splitext(file)
|
85
|
+
proper_ext = len(ext) == 0 or (2 <= len(ext) <= 4) # the ext contains the dot
|
86
|
+
proper_fname = file.isupper() and len(fname) <= 8
|
87
|
+
|
88
|
+
return proper_ext and proper_fname
|
89
|
+
|
90
|
+
def gen_dos_short_file_name(file, filename_set):
|
91
|
+
""" see http://support.microsoft.com/default.aspx?scid=kb;en-us;Q142982
|
92
|
+
|
93
|
+
These are no complete 8.3 dos short names. The ~ char is missing and
|
94
|
+
replaced with one character from the filename. WiX warns about such
|
95
|
+
filenames, since a collision might occur. Google for "CNDL1014" for
|
96
|
+
more information.
|
97
|
+
"""
|
98
|
+
# guard this to not confuse the generation
|
99
|
+
if is_dos_short_file_name(file):
|
100
|
+
return file
|
101
|
+
|
102
|
+
fname, ext = os.path.splitext(file) # ext contains the dot
|
103
|
+
|
104
|
+
# first try if it suffices to convert to upper
|
105
|
+
file = file.upper()
|
106
|
+
if is_dos_short_file_name(file):
|
107
|
+
return file
|
108
|
+
|
109
|
+
# strip forbidden characters.
|
110
|
+
forbidden = '."/[]:;=, '
|
111
|
+
fname = [c for c in fname if c not in forbidden]
|
112
|
+
|
113
|
+
# check if we already generated a filename with the same number:
|
114
|
+
# thisis1.txt, thisis2.txt etc.
|
115
|
+
duplicate, num = not None, 1
|
116
|
+
while duplicate:
|
117
|
+
shortname = "%s%s" % (fname[:8-len(str(num))].upper(),\
|
118
|
+
str(num))
|
119
|
+
if len(ext) >= 2:
|
120
|
+
shortname = "%s%s" % (shortname, ext[:4].upper())
|
121
|
+
|
122
|
+
duplicate, num = shortname in filename_set, num+1
|
123
|
+
|
124
|
+
assert( is_dos_short_file_name(shortname) ), 'shortname is %s, longname is %s' % (shortname, file)
|
125
|
+
filename_set.append(shortname)
|
126
|
+
return shortname
|
127
|
+
|
128
|
+
def create_feature_dict(files):
|
129
|
+
""" X_MSI_FEATURE and doc FileTag's can be used to collect files in a
|
130
|
+
hierarchy. This function collects the files into this hierarchy.
|
131
|
+
"""
|
132
|
+
dict = {}
|
133
|
+
|
134
|
+
def add_to_dict( feature, file ):
|
135
|
+
if not SCons.Util.is_List( feature ):
|
136
|
+
feature = [ feature ]
|
137
|
+
|
138
|
+
for f in feature:
|
139
|
+
if f not in dict:
|
140
|
+
dict[ f ] = [ file ]
|
141
|
+
else:
|
142
|
+
dict[ f ].append( file )
|
143
|
+
|
144
|
+
for file in files:
|
145
|
+
if hasattr( file, 'PACKAGING_X_MSI_FEATURE' ):
|
146
|
+
add_to_dict(file.PACKAGING_X_MSI_FEATURE, file)
|
147
|
+
elif hasattr( file, 'PACKAGING_DOC' ):
|
148
|
+
add_to_dict( 'PACKAGING_DOC', file )
|
149
|
+
else:
|
150
|
+
add_to_dict( 'default', file )
|
151
|
+
|
152
|
+
return dict
|
153
|
+
|
154
|
+
def generate_guids(root):
|
155
|
+
""" generates globally unique identifiers for parts of the xml which need
|
156
|
+
them.
|
157
|
+
|
158
|
+
Component tags have a special requirement. Their UUID is only allowed to
|
159
|
+
change if the list of their contained resources has changed. This allows
|
160
|
+
for clean removal and proper updates.
|
161
|
+
|
162
|
+
To handle this requirement, the uuid is generated with an md5 hashing the
|
163
|
+
whole subtree of a xml node.
|
164
|
+
"""
|
165
|
+
from hashlib import md5
|
166
|
+
|
167
|
+
# specify which tags need a guid and in which attribute this should be stored.
|
168
|
+
needs_id = { 'Product' : 'Id',
|
169
|
+
'Package' : 'Id',
|
170
|
+
'Component' : 'Guid',
|
171
|
+
}
|
172
|
+
|
173
|
+
# find all XMl nodes matching the key, retrieve their attribute, hash their
|
174
|
+
# subtree, convert hash to string and add as a attribute to the xml node.
|
175
|
+
for (key,value) in needs_id.items():
|
176
|
+
node_list = root.getElementsByTagName(key)
|
177
|
+
attribute = value
|
178
|
+
for node in node_list:
|
179
|
+
hash = md5(node.toxml()).hexdigest()
|
180
|
+
hash_str = '%s-%s-%s-%s-%s' % ( hash[:8], hash[8:12], hash[12:16], hash[16:20], hash[20:] )
|
181
|
+
node.attributes[attribute] = hash_str
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
def string_wxsfile(target, source, env):
|
186
|
+
return "building WiX file %s"%( target[0].path )
|
187
|
+
|
188
|
+
def build_wxsfile(target, source, env):
|
189
|
+
""" compiles a .wxs file from the keywords given in env['msi_spec'] and
|
190
|
+
by analyzing the tree of source nodes and their tags.
|
191
|
+
"""
|
192
|
+
file = open(target[0].abspath, 'w')
|
193
|
+
|
194
|
+
try:
|
195
|
+
# Create a document with the Wix root tag
|
196
|
+
doc = Document()
|
197
|
+
root = doc.createElement( 'Wix' )
|
198
|
+
root.attributes['xmlns']='http://schemas.microsoft.com/wix/2003/01/wi'
|
199
|
+
doc.appendChild( root )
|
200
|
+
|
201
|
+
filename_set = [] # this is to circumvent duplicates in the shortnames
|
202
|
+
id_set = {} # this is to circumvent duplicates in the ids
|
203
|
+
|
204
|
+
# Create the content
|
205
|
+
build_wxsfile_header_section(root, env)
|
206
|
+
build_wxsfile_file_section(root, source, env['NAME'], env['VERSION'], env['VENDOR'], filename_set, id_set)
|
207
|
+
generate_guids(root)
|
208
|
+
build_wxsfile_features_section(root, source, env['NAME'], env['VERSION'], env['SUMMARY'], id_set)
|
209
|
+
build_wxsfile_default_gui(root)
|
210
|
+
build_license_file(target[0].get_dir(), env)
|
211
|
+
|
212
|
+
# write the xml to a file
|
213
|
+
file.write( doc.toprettyxml() )
|
214
|
+
|
215
|
+
# call a user specified function
|
216
|
+
if 'CHANGE_SPECFILE' in env:
|
217
|
+
env['CHANGE_SPECFILE'](target, source)
|
218
|
+
|
219
|
+
except KeyError, e:
|
220
|
+
raise SCons.Errors.UserError( '"%s" package field for MSI is missing.' % e.args[0] )
|
221
|
+
|
222
|
+
#
|
223
|
+
# setup function
|
224
|
+
#
|
225
|
+
def create_default_directory_layout(root, NAME, VERSION, VENDOR, filename_set):
|
226
|
+
""" Create the wix default target directory layout and return the innermost
|
227
|
+
directory.
|
228
|
+
|
229
|
+
We assume that the XML tree delivered in the root argument already contains
|
230
|
+
the Product tag.
|
231
|
+
|
232
|
+
Everything is put under the PFiles directory property defined by WiX.
|
233
|
+
After that a directory with the 'VENDOR' tag is placed and then a
|
234
|
+
directory with the name of the project and its VERSION. This leads to the
|
235
|
+
following TARGET Directory Layout:
|
236
|
+
C:\<PFiles>\<Vendor>\<Projectname-Version>\
|
237
|
+
Example: C:\Programme\Company\Product-1.2\
|
238
|
+
"""
|
239
|
+
doc = Document()
|
240
|
+
d1 = doc.createElement( 'Directory' )
|
241
|
+
d1.attributes['Id'] = 'TARGETDIR'
|
242
|
+
d1.attributes['Name'] = 'SourceDir'
|
243
|
+
|
244
|
+
d2 = doc.createElement( 'Directory' )
|
245
|
+
d2.attributes['Id'] = 'ProgramFilesFolder'
|
246
|
+
d2.attributes['Name'] = 'PFiles'
|
247
|
+
|
248
|
+
d3 = doc.createElement( 'Directory' )
|
249
|
+
d3.attributes['Id'] = 'VENDOR_folder'
|
250
|
+
d3.attributes['Name'] = escape( gen_dos_short_file_name( VENDOR, filename_set ) )
|
251
|
+
d3.attributes['LongName'] = escape( VENDOR )
|
252
|
+
|
253
|
+
d4 = doc.createElement( 'Directory' )
|
254
|
+
project_folder = "%s-%s" % ( NAME, VERSION )
|
255
|
+
d4.attributes['Id'] = 'MY_DEFAULT_FOLDER'
|
256
|
+
d4.attributes['Name'] = escape( gen_dos_short_file_name( project_folder, filename_set ) )
|
257
|
+
d4.attributes['LongName'] = escape( project_folder )
|
258
|
+
|
259
|
+
d1.childNodes.append( d2 )
|
260
|
+
d2.childNodes.append( d3 )
|
261
|
+
d3.childNodes.append( d4 )
|
262
|
+
|
263
|
+
root.getElementsByTagName('Product')[0].childNodes.append( d1 )
|
264
|
+
|
265
|
+
return d4
|
266
|
+
|
267
|
+
#
|
268
|
+
# mandatory and optional file tags
|
269
|
+
#
|
270
|
+
def build_wxsfile_file_section(root, files, NAME, VERSION, VENDOR, filename_set, id_set):
|
271
|
+
""" builds the Component sections of the wxs file with their included files.
|
272
|
+
|
273
|
+
Files need to be specified in 8.3 format and in the long name format, long
|
274
|
+
filenames will be converted automatically.
|
275
|
+
|
276
|
+
Features are specficied with the 'X_MSI_FEATURE' or 'DOC' FileTag.
|
277
|
+
"""
|
278
|
+
root = create_default_directory_layout( root, NAME, VERSION, VENDOR, filename_set )
|
279
|
+
components = create_feature_dict( files )
|
280
|
+
factory = Document()
|
281
|
+
|
282
|
+
def get_directory( node, dir ):
|
283
|
+
""" returns the node under the given node representing the directory.
|
284
|
+
|
285
|
+
Returns the component node if dir is None or empty.
|
286
|
+
"""
|
287
|
+
if dir == '' or not dir:
|
288
|
+
return node
|
289
|
+
|
290
|
+
Directory = node
|
291
|
+
dir_parts = dir.split(os.path.sep)
|
292
|
+
|
293
|
+
# to make sure that our directory ids are unique, the parent folders are
|
294
|
+
# consecutively added to upper_dir
|
295
|
+
upper_dir = ''
|
296
|
+
|
297
|
+
# walk down the xml tree finding parts of the directory
|
298
|
+
dir_parts = [d for d in dir_parts if d != '']
|
299
|
+
for d in dir_parts[:]:
|
300
|
+
already_created = [c for c in Directory.childNodes
|
301
|
+
if c.nodeName == 'Directory'
|
302
|
+
and c.attributes['LongName'].value == escape(d)]
|
303
|
+
|
304
|
+
if already_created != []:
|
305
|
+
Directory = already_created[0]
|
306
|
+
dir_parts.remove(d)
|
307
|
+
upper_dir += d
|
308
|
+
else:
|
309
|
+
break
|
310
|
+
|
311
|
+
for d in dir_parts:
|
312
|
+
nDirectory = factory.createElement( 'Directory' )
|
313
|
+
nDirectory.attributes['LongName'] = escape( d )
|
314
|
+
nDirectory.attributes['Name'] = escape( gen_dos_short_file_name( d, filename_set ) )
|
315
|
+
upper_dir += d
|
316
|
+
nDirectory.attributes['Id'] = convert_to_id( upper_dir, id_set )
|
317
|
+
|
318
|
+
Directory.childNodes.append( nDirectory )
|
319
|
+
Directory = nDirectory
|
320
|
+
|
321
|
+
return Directory
|
322
|
+
|
323
|
+
for file in files:
|
324
|
+
drive, path = os.path.splitdrive( file.PACKAGING_INSTALL_LOCATION )
|
325
|
+
filename = os.path.basename( path )
|
326
|
+
dirname = os.path.dirname( path )
|
327
|
+
|
328
|
+
h = {
|
329
|
+
# tagname : default value
|
330
|
+
'PACKAGING_X_MSI_VITAL' : 'yes',
|
331
|
+
'PACKAGING_X_MSI_FILEID' : convert_to_id(filename, id_set),
|
332
|
+
'PACKAGING_X_MSI_LONGNAME' : filename,
|
333
|
+
'PACKAGING_X_MSI_SHORTNAME' : gen_dos_short_file_name(filename, filename_set),
|
334
|
+
'PACKAGING_X_MSI_SOURCE' : file.get_path(),
|
335
|
+
}
|
336
|
+
|
337
|
+
# fill in the default tags given above.
|
338
|
+
for k,v in [ (k, v) for (k,v) in h.items() if not hasattr(file, k) ]:
|
339
|
+
setattr( file, k, v )
|
340
|
+
|
341
|
+
File = factory.createElement( 'File' )
|
342
|
+
File.attributes['LongName'] = escape( file.PACKAGING_X_MSI_LONGNAME )
|
343
|
+
File.attributes['Name'] = escape( file.PACKAGING_X_MSI_SHORTNAME )
|
344
|
+
File.attributes['Source'] = escape( file.PACKAGING_X_MSI_SOURCE )
|
345
|
+
File.attributes['Id'] = escape( file.PACKAGING_X_MSI_FILEID )
|
346
|
+
File.attributes['Vital'] = escape( file.PACKAGING_X_MSI_VITAL )
|
347
|
+
|
348
|
+
# create the <Component> Tag under which this file should appear
|
349
|
+
Component = factory.createElement('Component')
|
350
|
+
Component.attributes['DiskId'] = '1'
|
351
|
+
Component.attributes['Id'] = convert_to_id( filename, id_set )
|
352
|
+
|
353
|
+
# hang the component node under the root node and the file node
|
354
|
+
# under the component node.
|
355
|
+
Directory = get_directory( root, dirname )
|
356
|
+
Directory.childNodes.append( Component )
|
357
|
+
Component.childNodes.append( File )
|
358
|
+
|
359
|
+
#
|
360
|
+
# additional functions
|
361
|
+
#
|
362
|
+
def build_wxsfile_features_section(root, files, NAME, VERSION, SUMMARY, id_set):
|
363
|
+
""" This function creates the <features> tag based on the supplied xml tree.
|
364
|
+
|
365
|
+
This is achieved by finding all <component>s and adding them to a default target.
|
366
|
+
|
367
|
+
It should be called after the tree has been built completly. We assume
|
368
|
+
that a MY_DEFAULT_FOLDER Property is defined in the wxs file tree.
|
369
|
+
|
370
|
+
Furthermore a top-level with the name and VERSION of the software will be created.
|
371
|
+
|
372
|
+
An PACKAGING_X_MSI_FEATURE can either be a string, where the feature
|
373
|
+
DESCRIPTION will be the same as its title or a Tuple, where the first
|
374
|
+
part will be its title and the second its DESCRIPTION.
|
375
|
+
"""
|
376
|
+
factory = Document()
|
377
|
+
Feature = factory.createElement('Feature')
|
378
|
+
Feature.attributes['Id'] = 'complete'
|
379
|
+
Feature.attributes['ConfigurableDirectory'] = 'MY_DEFAULT_FOLDER'
|
380
|
+
Feature.attributes['Level'] = '1'
|
381
|
+
Feature.attributes['Title'] = escape( '%s %s' % (NAME, VERSION) )
|
382
|
+
Feature.attributes['Description'] = escape( SUMMARY )
|
383
|
+
Feature.attributes['Display'] = 'expand'
|
384
|
+
|
385
|
+
for (feature, files) in create_feature_dict(files).items():
|
386
|
+
SubFeature = factory.createElement('Feature')
|
387
|
+
SubFeature.attributes['Level'] = '1'
|
388
|
+
|
389
|
+
if SCons.Util.is_Tuple(feature):
|
390
|
+
SubFeature.attributes['Id'] = convert_to_id( feature[0], id_set )
|
391
|
+
SubFeature.attributes['Title'] = escape(feature[0])
|
392
|
+
SubFeature.attributes['Description'] = escape(feature[1])
|
393
|
+
else:
|
394
|
+
SubFeature.attributes['Id'] = convert_to_id( feature, id_set )
|
395
|
+
if feature=='default':
|
396
|
+
SubFeature.attributes['Description'] = 'Main Part'
|
397
|
+
SubFeature.attributes['Title'] = 'Main Part'
|
398
|
+
elif feature=='PACKAGING_DOC':
|
399
|
+
SubFeature.attributes['Description'] = 'Documentation'
|
400
|
+
SubFeature.attributes['Title'] = 'Documentation'
|
401
|
+
else:
|
402
|
+
SubFeature.attributes['Description'] = escape(feature)
|
403
|
+
SubFeature.attributes['Title'] = escape(feature)
|
404
|
+
|
405
|
+
# build the componentrefs. As one of the design decision is that every
|
406
|
+
# file is also a component we walk the list of files and create a
|
407
|
+
# reference.
|
408
|
+
for f in files:
|
409
|
+
ComponentRef = factory.createElement('ComponentRef')
|
410
|
+
ComponentRef.attributes['Id'] = convert_to_id( os.path.basename(f.get_path()), id_set )
|
411
|
+
SubFeature.childNodes.append(ComponentRef)
|
412
|
+
|
413
|
+
Feature.childNodes.append(SubFeature)
|
414
|
+
|
415
|
+
root.getElementsByTagName('Product')[0].childNodes.append(Feature)
|
416
|
+
|
417
|
+
def build_wxsfile_default_gui(root):
|
418
|
+
""" this function adds a default GUI to the wxs file
|
419
|
+
"""
|
420
|
+
factory = Document()
|
421
|
+
Product = root.getElementsByTagName('Product')[0]
|
422
|
+
|
423
|
+
UIRef = factory.createElement('UIRef')
|
424
|
+
UIRef.attributes['Id'] = 'WixUI_Mondo'
|
425
|
+
Product.childNodes.append(UIRef)
|
426
|
+
|
427
|
+
UIRef = factory.createElement('UIRef')
|
428
|
+
UIRef.attributes['Id'] = 'WixUI_ErrorProgressText'
|
429
|
+
Product.childNodes.append(UIRef)
|
430
|
+
|
431
|
+
def build_license_file(directory, spec):
|
432
|
+
""" creates a License.rtf file with the content of "X_MSI_LICENSE_TEXT"
|
433
|
+
in the given directory
|
434
|
+
"""
|
435
|
+
name, text = '', ''
|
436
|
+
|
437
|
+
try:
|
438
|
+
name = spec['LICENSE']
|
439
|
+
text = spec['X_MSI_LICENSE_TEXT']
|
440
|
+
except KeyError:
|
441
|
+
pass # ignore this as X_MSI_LICENSE_TEXT is optional
|
442
|
+
|
443
|
+
if name!='' or text!='':
|
444
|
+
file = open( os.path.join(directory.get_path(), 'License.rtf'), 'w' )
|
445
|
+
file.write('{\\rtf')
|
446
|
+
if text!='':
|
447
|
+
file.write(text.replace('\n', '\\par '))
|
448
|
+
else:
|
449
|
+
file.write(name+'\\par\\par')
|
450
|
+
file.write('}')
|
451
|
+
file.close()
|
452
|
+
|
453
|
+
#
|
454
|
+
# mandatory and optional package tags
|
455
|
+
#
|
456
|
+
def build_wxsfile_header_section(root, spec):
|
457
|
+
""" Adds the xml file node which define the package meta-data.
|
458
|
+
"""
|
459
|
+
# Create the needed DOM nodes and add them at the correct position in the tree.
|
460
|
+
factory = Document()
|
461
|
+
Product = factory.createElement( 'Product' )
|
462
|
+
Package = factory.createElement( 'Package' )
|
463
|
+
|
464
|
+
root.childNodes.append( Product )
|
465
|
+
Product.childNodes.append( Package )
|
466
|
+
|
467
|
+
# set "mandatory" default values
|
468
|
+
if 'X_MSI_LANGUAGE' not in spec:
|
469
|
+
spec['X_MSI_LANGUAGE'] = '1033' # select english
|
470
|
+
|
471
|
+
# mandatory sections, will throw a KeyError if the tag is not available
|
472
|
+
Product.attributes['Name'] = escape( spec['NAME'] )
|
473
|
+
Product.attributes['Version'] = escape( spec['VERSION'] )
|
474
|
+
Product.attributes['Manufacturer'] = escape( spec['VENDOR'] )
|
475
|
+
Product.attributes['Language'] = escape( spec['X_MSI_LANGUAGE'] )
|
476
|
+
Package.attributes['Description'] = escape( spec['SUMMARY'] )
|
477
|
+
|
478
|
+
# now the optional tags, for which we avoid the KeyErrror exception
|
479
|
+
if 'DESCRIPTION' in spec:
|
480
|
+
Package.attributes['Comments'] = escape( spec['DESCRIPTION'] )
|
481
|
+
|
482
|
+
if 'X_MSI_UPGRADE_CODE' in spec:
|
483
|
+
Package.attributes['X_MSI_UPGRADE_CODE'] = escape( spec['X_MSI_UPGRADE_CODE'] )
|
484
|
+
|
485
|
+
# We hardcode the media tag as our current model cannot handle it.
|
486
|
+
Media = factory.createElement('Media')
|
487
|
+
Media.attributes['Id'] = '1'
|
488
|
+
Media.attributes['Cabinet'] = 'default.cab'
|
489
|
+
Media.attributes['EmbedCab'] = 'yes'
|
490
|
+
root.getElementsByTagName('Product')[0].childNodes.append(Media)
|
491
|
+
|
492
|
+
# this builder is the entry-point for .wxs file compiler.
|
493
|
+
wxs_builder = Builder(
|
494
|
+
action = Action( build_wxsfile, string_wxsfile ),
|
495
|
+
ensure_suffix = '.wxs' )
|
496
|
+
|
497
|
+
def package(env, target, source, PACKAGEROOT, NAME, VERSION,
|
498
|
+
DESCRIPTION, SUMMARY, VENDOR, X_MSI_LANGUAGE, **kw):
|
499
|
+
# make sure that the Wix Builder is in the environment
|
500
|
+
SCons.Tool.Tool('wix').generate(env)
|
501
|
+
|
502
|
+
# get put the keywords for the specfile compiler. These are the arguments
|
503
|
+
# given to the package function and all optional ones stored in kw, minus
|
504
|
+
# the the source, target and env one.
|
505
|
+
loc = locals()
|
506
|
+
del loc['kw']
|
507
|
+
kw.update(loc)
|
508
|
+
del kw['source'], kw['target'], kw['env']
|
509
|
+
|
510
|
+
# strip the install builder from the source files
|
511
|
+
target, source = stripinstallbuilder(target, source, env)
|
512
|
+
|
513
|
+
# put the arguments into the env and call the specfile builder.
|
514
|
+
env['msi_spec'] = kw
|
515
|
+
specfile = wxs_builder(* [env, target, source], **kw)
|
516
|
+
|
517
|
+
# now call the WiX Tool with the built specfile added as a source.
|
518
|
+
msifile = env.WiX(target, specfile)
|
519
|
+
|
520
|
+
# return the target and source tuple.
|
521
|
+
return (msifile, source+[specfile])
|
522
|
+
|
523
|
+
# Local Variables:
|
524
|
+
# tab-width:4
|
525
|
+
# indent-tabs-mode:nil
|
526
|
+
# End:
|
527
|
+
# vim: set expandtab tabstop=4 shiftwidth=4:
|