Move Courgette
   from src\third_party\courgette
   to   src\courgette and src\courgette\third_party

Fixed #includes

Added properties to ignore generated files:

C:\c5\src>svn pg svn:ignore courgette
courgette.xcodeproj
courgette.sln
courgette_fuzz.vcproj
courgette_lib.vcproj
courgette_minimal_tool.vcproj
courgette_tool.vcproj
courgette.vcproj
courgette_unittests.vcproj
SConstruct
courgette_fuzz.scons
courgette_lib.scons
courgette_main.scons
courgette_minimal_tool.scons
courgette.scons
courgette_tool.scons
courgette_unittests.scons


Review URL: http://codereview.chromium.org/115062

git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@15692 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix checkdeps build error.

TBR=maruel

Review URL: http://codereview.chromium.org/115151

git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@15700 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Removing sln file which should not be checked in, but rather generated by gyp.

Review URL: http://codereview.chromium.org/113231

git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@15807 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Improvements to Courgette's version of bsdiff

* Store 'diff' bytes by run-length encoding zeros. This reduces the memory
  needed to store the zeros by ~30MB for chrome.7z.
* Store the control tuple elements in separate streams.  The 'extra_bytes'
  counts are often zero so this brings all the zeros together.

The uncompressed patch file is much smaller due to the run-length encoded
zeros.  It is slightly smaller (3-8%) after compression with lzma.

Review URL: http://codereview.chromium.org/115435

git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@16343 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
When iterating over the sections in a file, omit sections that have no raw data in the file.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/113917

git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@17007 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Set svn:eol-style LF on all gyp files.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/113957

git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@17090 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix leaks found by Coverity Prevent.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/115947

git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@17272 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
New adjustment method for Courgette.
Slower, but better.

1.0.154.59 to 1.0.154.65
Old: 1m19s,  354,997 bytes
New: 4m01s,  279,798 bytes

Timings on Lenovo T61 (T7700 cpu)

BUG=none
TEST=none (existing tests)

Review URL: http://codereview.chromium.org/118031

git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@17566 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Re-enable CRC check in courgette.

Back before the gyp conversion was complete CRC checking was commented out.
This change re-enables CRC checking.

BUG=none
TEST=none (existing tests still pass)

Review URL: http://codereview.chromium.org/126186

git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@18573 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Cleanup the windows-related svn:ignore on the directories.

Removed the stale .sln and .vcproj ignores and added the new ones.

This should help the try server tremendously.

TEST=none
BUG=none
TBR=sgk

git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@18711 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix scons related svn:ignores for linux.

Cleaned up the stale .scons and SConstruct ignores and added the new ones

TEST=none
BUG=none
TBR=sgk

git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@18713 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Code changes to get the code to compile under GCC.

Courgette still only knows how to compress Windows x86 executables.
But now you can compress them on linux.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/149597

git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@21042 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fixing compilation error on Linux with GCC 4.3.3. My environment is Ubuntu 9.04 (x86, 32bit).

% hammer --mode=Release
...
Compiling /home/yusukes/chromium2/src/sconsbuild/Release/obj/courgette/adjustment_method_2.o
Linking /home/yusukes/chromium2/src/sconsbuild/Release/startup_tests
cc1plus: warnings being treated as errors
/home/yusukes/chromium2/src/courgette/adjustment_method_2.cc: In constructor 'courgette::adjustment_method_2::ShinglePattern::Index::Index(const courgette::adjustment_method_2::Shingle*)':
/home/yusukes/chromium2/src/courgette/adjustment_method_2.cc:676: error: 'kind' may be used uninitialized in this function
/home/yusukes/chromium2/src/courgette/adjustment_method_2.cc: In constructor 'courgette::adjustment_method_2::ShinglePattern::Index::Index(const courgette::adjustment_method_2::Shingle*)':
/home/yusukes/chromium2/src/courgette/adjustment_method_2.cc:676: error: 'kind' may be used uninitialized in this function
scons: *** [/home/yusukes/chromium2/src/sconsbuild/Release/obj/courgette/adjustment_method_2.o] Error 1
scons: building terminated because of errors

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/159054

git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@21062 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Coverity fixes to keep coverity quiet.

Only the first issue is remotely interesting.

* Possibility (low) of using NULL SinkStream* courgette tool 'gen1a' command.

* Added initializers for all class members to several constructors.

* return 0 at end of from wmain.

BUG=none
TEST=existing

Review URL: http://codereview.chromium.org/155820

git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@21253 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Update svn:ignores.

NO CODE CHANGE

TEST=none
BUG=none


git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@22386 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix the Linux shared build.

BUG=none
TEST=none
Review URL: http://codereview.chromium.org/203076

git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@26291 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Force inclusion of build/common.gypi for all chromium gyp files.

Why: Simpler build code. If everybody includes it, it should be included automatically.
Why now: The webkit chromium builds need it be specified, since can't default to build/common.gypi.

What was done:
1. build/common.gypi's contents were moved to a new file build/gyp_chromium.gypi
2. tools/gyp/gyp_chromium was moved to build/gyp_chromium and made to automatically include build/gyp_chromium.gypi.
3. lots of gyp files were fixed to not refer to build/common.gypi any more.
4. o3d which also builds independently of chrome, was fixed to have a gyp_o3d that includes gyp_chromium.gypi too.
5. build/common.gypi was left empty, because there are some external projects that still refer to it.

Things that are left to do after this patch is in:
1. The following external files (in other repositories) need to stop include common.gypi
  ./third_party/hunspell/hunspell.gyp
  ./third_party/icu/icu.gyp
  ./v8/tools/gyp/v8.gyp
2. Once nobody refers to common.gypi anymore, delete common.gypi
   -or-
   Delete gyp_chromium.gypi and move its content back to common.gypi

Tested on mac, win and linux. On win, got a few unit tests errors on chrome bookmarks, which should not be related. I'm running again with clobber to verify.

Review URL: http://codereview.chromium.org/206006

git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@26302 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Update svn:ignore for *.mk and *.scons

NO CODE CHANGE.

TEST=none
BUG=none


git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@26601 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Replaces the uses of the deprecated AppendPath function in courgette 

this is same http://codereview.chromium.org/196022

commiting for him.

BUG=none
TEST=the modified test should run fine.

TBR=sra



Review URL: http://codereview.chromium.org/214044

git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@26768 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Add comments setting emacs and vim tab width and expansion variables.
BUG=none
TEST=successful builds
Review URL: http://codereview.chromium.org/256059

git-svn-id: http://src.chromium.org/svn/trunk/src/courgette@28089 4ff67af0-8c30-449e-8e8b-ad334ec8d88c