Граф коммитов

43 Коммитов

Автор SHA1 Сообщение Дата
skyostil@chromium.org 31a36bca7c Android: support glob-style gtest filters with content browser tests
This patch makes it possible to use glob-style gtest filters with
the content browser tests. An example of such a filter is
WebGLConformanceTest.*, which should cause all the WebGL conformance
tests to be run.

Previously the gtest filter was passed directly to the test executable,
causing it to run all matching tests successively in the same process.
Normally this would be fine, but with content browsertests we must run
each test in a fresh process to avoid issues with double initialization.

The fix is to expand the filter to a flat list of tests in the test
dispatcher. After this, the tests are sharded and run in exactly the
same way as when no gtest filter is provided.

BUG=138226

Review URL: https://chromiumcodereview.appspot.com/14882007

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204680 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-07 00:50:14 +00:00
mnaganov@chromium.org d5583b58c2 Generate and use LASTCHANGE for blink
The main reason for making this change is the fact that when pulling
Chromium and Blink code into Android, we have to make automatic changes
to the repository (for example, for generating *.mk files), and the Blink
commit we have as HEAD doesn't match any public commit in the main 
Blink repo. While via the LASTCHANGE file we could report a publicly 
visible revision.

Also, the way webkit_version.h header is generated now appears to be silly.
First, it doesn't leverage enough existing tools. Second, as it is noted in
webkit_user_agent.gypi, it is broken for incremental builds.

Review URL: https://chromiumcodereview.appspot.com/14973005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@203387 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-31 10:53:39 +00:00
chrisha@chromium.org ffc93fa785 Allow lastchange.py to be used for arbitrary repositories.
BUG=


Review URL: https://chromiumcodereview.appspot.com/11266037

git-svn-id: http://src.chromium.org/svn/trunk/src/build@164172 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-25 20:59:36 +00:00
torne@chromium.org 1579ccd4ab The LASTCHANGE file is created and updated by gclient runhooks under
normal circumstances, so it makes more sense to treat it as if it were a
checked-in source file, not a generated file. The rule for its
generation was still getting run once on a clean build, because the
other targets that depended on it expected a gyp timestamp file to exist
for the target.

There's no need for any other targets to actually depend on lastchange
(and in fact several of the targets that make use of the file already
don't depend on the target); it should already exist, and if it doesn't
then the source checkout is probably broken (as the other steps in
runhooks are also mandatory). So, remove the rule entirely.

Review URL: https://chromiumcodereview.appspot.com/10388213

git-svn-id: http://src.chromium.org/svn/trunk/src/build@139765 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-31 09:25:47 +00:00
scottmg@google.com 640075b1ec Fix lastchange.py when running on native win32 python
When running as runhooks, it's not run via cygwin like it was when run in the build, and isn't able to find git. I believe the test that checked for both cygwin and win32 before was incorrect (but was always run via cygwin before so didn't matter).

Additionally, when runhooks runs it, it's from above src/, so the cwd isn't in the repo. So, pass in the directory of the script itself so that git can find its repo.

BUG=112264

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120089

Review URL: https://chromiumcodereview.appspot.com/9317037

git-svn-id: http://src.chromium.org/svn/trunk/src/build@120110 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-02-01 21:52:41 +00:00
scottmg@google.com 7bf951a2fb Fix lastchange.py when running on native win32 python
When running as runhooks, it's not run via cygwin like it was when run in the build, and isn't able to find git. I believe the test that checked for both cygwin and win32 before was incorrect (but was always run via cygwin before so didn't matter).

Additionally, when runhooks runs it, it's from above src/, so the cwd isn't in the repo. So, pass in the directory of the script itself so that git can find its repo.

BUG=112264

Review URL: https://chromiumcodereview.appspot.com/9317037

git-svn-id: http://src.chromium.org/svn/trunk/src/build@120089 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-02-01 20:05:19 +00:00
scottmg@google.com 18d81aa5a4 Instead of always running the LASTCHANGE extractor, run it with regular file dependencies.
During gclient runhooks, update LASTCHANGE so that it will be updated at least as often as runhooks is run (i.e. for every sync).

LASTCHANGE moved to build/util rather than SHARED_INTERMEDIATE_DIR because that directory isn't known to runhooks.

BUG=111731

Review URL: https://chromiumcodereview.appspot.com/9169105

git-svn-id: http://src.chromium.org/svn/trunk/src/build@119950 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-01-31 20:45:25 +00:00
evan@chromium.org 5402752b39 lastchange: don't check git state for whether the tree is dirty
We don't show whether the tree was dirty for SVN.

Because lastchange runs on every build, these commands impact every
build.  The call to "git checkout" makes git stat every file in the
repository (including ones unrelated to the build).

This change makes a Ninja build of Chrome 20% faster.  I've seen the
command take tens of seconds on a cold disk, and it likely has a
larger impact on Windows where the disk is slower.


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@117352 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-01-12 01:46:33 +00:00
piman@chromium.org 1724c47105 Fix duplicate rule for LASTCHANGE
BUG=None
TEST=build it on linux (make/ninja), check no warning of duplicate rule


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@101793 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-09-19 19:20:38 +00:00
pkasting@chromium.org 36e607a539 Fourth attempt at the following. Unreviewed, this was originally reviewed in http://codereview.chromium.org/7550002 .
Clean up SSL false start blacklist code. Numerous changes, including:
* Handle trailing dots in LastTwoLabels() as in http://codereview.chromium.org/7518035/ . Rename this function to LastTwoComponents() to match the terminology used in the RegistryControlledDomainService and elsewhere in Chrome.
* Since callers are using std::string anyway, make the functions in the header take const std::string& instead of char*. This also allows doing string operations on them.
* Use string operations (like find_last_of()) in place of hand-written algorithms, for brevity, clarity, and safety.
* Avoid "unsigned", which the style guide forbids, and use allowed types like size_t, uint32, or int (depending on the situation).
* Avoid #define and "using".
* Use standard algorithms for similar reasons as using string ops.
* Use file_util functions to significantly abbreviate file reading/writing code.
* Use wmain() (on Windows) in combination with FilePath to avoid issues if the provided pathname has extended characters that don't flatten losslessly to the default codepage (thanks Darin for pointing out this issue).
* Avoid casting where possible. Avoid some casts for printf()-style calls by using a string stream, which also allows for slightly less boilerplate.
* Convert non-error uses of stderr to the chrome-standard VLOG(1).
* Correctly handle hostnames with trailing dots in the input file.
* In general, shorten code where possible.

Because this adds a dependency on base, and ssl_false_start_blacklist_process has the "#host" specifier in net.gyp, bradnelson tells me that base and its dependencies need an explicit "host, target" toolchain list for the Linux builds to work correctly. It would be nice if we could avoid this but I guess gyp would have to be smarter or something.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@101378 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-09-15 21:17:32 +00:00
rsleevi@chromium.org 25ccdd45b5 Revert 98885 - Third attempt at the following. Unreviewed, this was originally reviewed in http://codereview.chromium.org/7550002 .
Clean up SSL false start blacklist code. Numerous changes, including:
* Handle trailing dots in LastTwoLabels() as in http://codereview.chromium.org/7518035/ . Rename this function to LastTwoComponents() to match the terminology used in the RegistryControlledDomainService and elsewhere in Chrome.
* Since callers are using std::string anyway, make the functions in the header take const std::string& instead of char*. This also allows doing string operations on them.
* Use string operations (like find_last_of()) in place of hand-written algorithms, for brevity, clarity, and safety.
* Avoid "unsigned", which the style guide forbids, and use allowed types like size_t, uint32, or int (depending on the situation).
* Avoid #define and "using".
* Use standard algorithms for similar reasons as using string ops.
* Use file_util functions to significantly abbreviate file reading/writing code.
* Use wmain() (on Windows) in combination with FilePath to avoid issues if the provided pathname has extended characters that don't flatten losslessly to the default codepage (thanks Darin for pointing out this issue).
* Avoid casting where possible. Avoid some casts for printf()-style calls by using a string stream, which also allows for slightly less boilerplate.
* Convert non-error uses of stderr to the chrome-standard VLOG(1).
* Correctly handle hostnames with trailing dots in the input file.
* In general, shorten code where possible.

Because this adds a dependency on base, and ssl_false_start_blacklist_process has the "#host" specifier in net.gyp, bradnelson tells me that base and its dependencies need an explicit "host, target" toolchain list for the Linux builds to work correctly. It would be nice if we could avoid this but I guess gyp would have to be smarter or something.

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

TBR=pkasting@chromium.org
Review URL: http://codereview.chromium.org/7778035

git-svn-id: http://src.chromium.org/svn/trunk/src/build@98917 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-08-31 02:35:19 +00:00
pkasting@chromium.org 3674287f67 Third attempt at the following. Unreviewed, this was originally reviewed in http://codereview.chromium.org/7550002 .
Clean up SSL false start blacklist code. Numerous changes, including:
* Handle trailing dots in LastTwoLabels() as in http://codereview.chromium.org/7518035/ . Rename this function to LastTwoComponents() to match the terminology used in the RegistryControlledDomainService and elsewhere in Chrome.
* Since callers are using std::string anyway, make the functions in the header take const std::string& instead of char*. This also allows doing string operations on them.
* Use string operations (like find_last_of()) in place of hand-written algorithms, for brevity, clarity, and safety.
* Avoid "unsigned", which the style guide forbids, and use allowed types like size_t, uint32, or int (depending on the situation).
* Avoid #define and "using".
* Use standard algorithms for similar reasons as using string ops.
* Use file_util functions to significantly abbreviate file reading/writing code.
* Use wmain() (on Windows) in combination with FilePath to avoid issues if the provided pathname has extended characters that don't flatten losslessly to the default codepage (thanks Darin for pointing out this issue).
* Avoid casting where possible. Avoid some casts for printf()-style calls by using a string stream, which also allows for slightly less boilerplate.
* Convert non-error uses of stderr to the chrome-standard VLOG(1).
* Correctly handle hostnames with trailing dots in the input file.
* In general, shorten code where possible.

Because this adds a dependency on base, and ssl_false_start_blacklist_process has the "#host" specifier in net.gyp, bradnelson tells me that base and its dependencies need an explicit "host, target" toolchain list for the Linux builds to work correctly. It would be nice if we could avoid this but I guess gyp would have to be smarter or something.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@98885 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-08-30 23:38:21 +00:00
mnissler@chromium.org afe0f1f3a2 Revert 95907 - Clean up SSL false start blacklist code. Numerous changes, including:
* Handle trailing dots in LastTwoLabels() as in http://codereview.chromium.org/7518035/ .  Rename this function to LastTwoComponents() to match the terminology used in the RegistryControlledDomainService and elsewhere in Chrome.
  * Since callers are using std::string anyway, make the functions in the header take const std::string& instead of char*.  This also allows doing string operations on them.
  * Use string operations (like find_last_of()) in place of hand-written algorithms, for brevity, clarity, and safety.
  * Avoid "unsigned", which the style guide forbids, and use allowed types like size_t, uint32, or int (depending on the situation).
  * Avoid #define and "using".
  * Use standard algorithms for similar reasons as using string ops.
  * Use file_util functions to significantly abbreviate file reading/writing code.
  * Use wmain() (on Windows) in combination with FilePath to avoid issues if the provided pathname has extended characters that don't flatten losslessly to the default codepage (thanks Darin for pointing out this issue).
  * Avoid casting where possible.  Avoid some casts for printf()-style calls by using a string stream, which also allows for slightly less boilerplate.
  * Convert non-error uses of stderr to the chrome-standard VLOG(1).
  * Correctly handle hostnames with trailing dots in the input file.
  * In general, shorten code where possible.

Because this adds a dependency on base, and ssl_false_start_blacklist_process has the "#host" specifier in net.gyp, bradnelson tells me that base and its dependencies need an explicit "host, target" toolchain list for the Linux builds to work correctly.  It would be nice if we could avoid this but I guess gyp would have to be smarter or something.

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

TBR=pkasting@chromium.org
Review URL: http://codereview.chromium.org/7623015

git-svn-id: http://src.chromium.org/svn/trunk/src/build@96391 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-08-11 14:53:53 +00:00
pkasting@chromium.org 66a2c6b4c7 Revert 95910 - Revert 95907 - Clean up SSL false start blacklist code.
Now that r96121 has landed, this should not cause compile failures when compiling base/ on the host.

Original comments follow.

Numerous changes, including:
  * Handle trailing dots in LastTwoLabels() as in http://codereview.chromium.org/7518035/ .  Rename this function to LastTwoComponents() to match the terminology used in the RegistryControlledDomainService and elsewhere in Chrome.
  * Since callers are using std::string anyway, make the functions in the header take const std::string& instead of char*.  This also allows doing string operations on them.
  * Use string operations (like find_last_of()) in place of hand-written algorithms, for brevity, clarity, and safety.
  * Avoid "unsigned", which the style guide forbids, and use allowed types like size_t, uint32, or int (depending on the situation).
  * Avoid #define and "using".
  * Use standard algorithms for similar reasons as using string ops.
  * Use file_util functions to significantly abbreviate file reading/writing code.
  * Use wmain() (on Windows) in combination with FilePath to avoid issues if the provided pathname has extended characters that don't flatten losslessly to the default codepage (thanks Darin for pointing out this issue).
  * Avoid casting where possible.  Avoid some casts for printf()-style calls by using a string stream, which also allows for slightly less boilerplate.
  * Convert non-error uses of stderr to the chrome-standard VLOG(1).
  * Correctly handle hostnames with trailing dots in the input file.
  * In general, shorten code where possible.

Because this adds a dependency on base, and ssl_false_start_blacklist_process has the "#host" specifier in net.gyp, bradnelson tells me that base and its dependencies need an explicit "host, target" toolchain list for the Linux builds to work correctly.  It would be nice if we could avoid this but I guess gyp would have to be smarter or something.

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

TBR=pkasting@chromium.org
Review URL: http://codereview.chromium.org/7529035

TBR=fischman@chromium.org
Review URL: http://codereview.chromium.org/7587003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@96211 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-08-10 19:37:13 +00:00
fischman@chromium.org 25ac09bef8 Revert 95907 - Clean up SSL false start blacklist code. Numerous changes, including:
* Handle trailing dots in LastTwoLabels() as in http://codereview.chromium.org/7518035/ .  Rename this function to LastTwoComponents() to match the terminology used in the RegistryControlledDomainService and elsewhere in Chrome.
  * Since callers are using std::string anyway, make the functions in the header take const std::string& instead of char*.  This also allows doing string operations on them.
  * Use string operations (like find_last_of()) in place of hand-written algorithms, for brevity, clarity, and safety.
  * Avoid "unsigned", which the style guide forbids, and use allowed types like size_t, uint32, or int (depending on the situation).
  * Avoid #define and "using".
  * Use standard algorithms for similar reasons as using string ops.
  * Use file_util functions to significantly abbreviate file reading/writing code.
  * Use wmain() (on Windows) in combination with FilePath to avoid issues if the provided pathname has extended characters that don't flatten losslessly to the default codepage (thanks Darin for pointing out this issue).
  * Avoid casting where possible.  Avoid some casts for printf()-style calls by using a string stream, which also allows for slightly less boilerplate.
  * Convert non-error uses of stderr to the chrome-standard VLOG(1).
  * Correctly handle hostnames with trailing dots in the input file.
  * In general, shorten code where possible.

Because this adds a dependency on base, and ssl_false_start_blacklist_process has the "#host" specifier in net.gyp, bradnelson tells me that base and its dependencies need an explicit "host, target" toolchain list for the Linux builds to work correctly.  It would be nice if we could avoid this but I guess gyp would have to be smarter or something.

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

TBR=pkasting@chromium.org
Review URL: http://codereview.chromium.org/7529035

git-svn-id: http://src.chromium.org/svn/trunk/src/build@95910 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-08-08 23:44:55 +00:00
pkasting@chromium.org 99442ed8df Clean up SSL false start blacklist code. Numerous changes, including:
* Handle trailing dots in LastTwoLabels() as in http://codereview.chromium.org/7518035/ .  Rename this function to LastTwoComponents() to match the terminology used in the RegistryControlledDomainService and elsewhere in Chrome.
  * Since callers are using std::string anyway, make the functions in the header take const std::string& instead of char*.  This also allows doing string operations on them.
  * Use string operations (like find_last_of()) in place of hand-written algorithms, for brevity, clarity, and safety.
  * Avoid "unsigned", which the style guide forbids, and use allowed types like size_t, uint32, or int (depending on the situation).
  * Avoid #define and "using".
  * Use standard algorithms for similar reasons as using string ops.
  * Use file_util functions to significantly abbreviate file reading/writing code.
  * Use wmain() (on Windows) in combination with FilePath to avoid issues if the provided pathname has extended characters that don't flatten losslessly to the default codepage (thanks Darin for pointing out this issue).
  * Avoid casting where possible.  Avoid some casts for printf()-style calls by using a string stream, which also allows for slightly less boilerplate.
  * Convert non-error uses of stderr to the chrome-standard VLOG(1).
  * Correctly handle hostnames with trailing dots in the input file.
  * In general, shorten code where possible.

Because this adds a dependency on base, and ssl_false_start_blacklist_process has the "#host" specifier in net.gyp, bradnelson tells me that base and its dependencies need an explicit "host, target" toolchain list for the Linux builds to work correctly.  It would be nice if we could avoid this but I guess gyp would have to be smarter or something.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@95907 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-08-08 23:30:24 +00:00
haraken@google.com 0bb93fd15c Unify the version string to be displayed on "About Chromium" dialog. (5/6)
- Fetch Subversion URL and the revision from 'git log' even if git-svn is not available.
- Remove VersionInfo.root, since nobody is using it.
- Allow a user to specify the directory name just prior to the svn src URL.

FYI: We decided to split the changes of issue 7104106 (http://codereview.chromium.org/7104106/) into the following steps. This is the fifth step of them:

(1) Add CreateVersionString() to chrome_version_info.*, update the GTK+ code to use it. (reviewer: erg, tony)
(2) Update the mac code to use CreateVersionString(). Update About.xib. (reviewer: mark)
(3) Update the views code to use CreateVersionString(). This can happen at the same time as (2). (reviewer: davemoore, tony)
(4) Update version.bat to use lastchange.py. (reviewer: evan)
(5) Make changes to lastchange.py and webkit_version.py. (reviewer: evan, mark)
(6) Update tweak_info_plist to use lastchange.py. (reviewer: mark)

BUG=37186
TEST=Observe that "About Chromium" dialog shows the version string like "14.0.787.0 (Developer Build 88242 Windows" on Windows and Linux.


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@94828 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-07-30 05:34:48 +00:00
tony@chromium.org c9ee63aad7 Remove the comments setting emands and vim tab width and expansion variables.
These were added in r28089 (http://codereview.chromium.org/256059) but
are unnecessary bloat for everyone to carry around, even those that don't
use emacs or vim.

In an earlier change, I added editor config files in src/tools/emacs/
and src/tools/vim/ so users of the appropriate editor can source those
instead.

BUG=none
TEST=none

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@92046 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-07-11 20:22:46 +00:00
dilmah@chromium.org 4d5bc02e51 Fetch repository root for git-svn checkouts.
BUG=None
TEST=None

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@76890 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-03-04 07:50:33 +00:00
dilmah@chromium.org d9640c6030 Fix webkit build failure reported by evan@
When fetching svn URL via 'git svn info --url' command
git-svn.perl script may print its progress log to stdout instead of stderr: as a result we end up using all this junk as svn repository URL.
Fix it by filtering output.

BUG=None
TEST=None

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@76803 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-03-03 20:52:17 +00:00
dilmah@chromium.org 0019e6cb0b Fix spelling in recent commit
BUG=None
TEST=None
TBR=evan@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@76737 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-03-03 12:59:40 +00:00
dilmah@chromium.org 4876111583 Added check for None missed in recent commit.
Reported by fta At sofaraway.org

BUG=None
TEST=None
TBR=evan@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@76733 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-03-03 11:47:05 +00:00
dilmah@chromium.org ae43e46019 Try harder to dig git-svn revision.
Previous behaviour for git-svn repositories is to return git hash (this hash then appears on about:version page and can be copy-pasted into bugreport).
However for developer branches with local modifications this hash bears no information to the outside world.

Now we return svn revision for trunk git-svn checkouts and svn-revision plus "-dirty" suffix for git branches.

The magic required to run git on cygwin is factored out into separate function.

BUG=chromium:70909
TEST=Manual

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@76530 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-03-02 13:16:10 +00:00
evan@chromium.org ce459b8852 lastchange: use shell=True on Windows
I regressed this by refactoring some code together then splitting
it again.  Originally it was fixed in r18533.

BUG=71016

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@72897 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-01-27 23:26:25 +00:00
evan@chromium.org 624e01900d lastchange: don't use git rev-parse output when it fails
If you weren't using SVN or Git, but you had Git installed,
we still thought you were using Git and had empty info for
the version number.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@72706 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-01-26 22:29:14 +00:00
evan@chromium.org 63830c7f67 lastchange: give up on git-svn
Just put the git hash in the revision fields.
Developers who are using git aren't making releases.

BUG=70909

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@72661 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-01-26 19:19:07 +00:00
evan@chromium.org 6abd21fdb6 lastchange: wrap another subprocess call in a try block
Avoids throwing an exception when git isn't installed.

git-svn-id: http://src.chromium.org/svn/trunk/src/build@72418 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-01-24 23:30:15 +00:00
evan@chromium.org b6a5195494 lastchange: skip over git-svn "rebuilding..." lines
Sometimes git-svn prints extra status info.
From a glance at the source, there's no flag to skip it.
So just skip it when parsing.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@72360 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-01-24 19:13:22 +00:00
evan@chromium.org b88496d378 lastchange: handle the git-but-not-git-svn case
When we're using a git checkout of WebKit that hasn't had git-svn
set up, ignore the missing versioning information rather than
failing.

BUG=70606,private mails

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@72351 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-01-24 18:22:26 +00:00
caseq@google.com 831476ab41 Fixed invocation of "git svn info" under win32.
TBR=evan
BUG=70606
TEST=none


git-svn-id: http://src.chromium.org/svn/trunk/src/build@72335 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-01-24 16:11:12 +00:00
evan@chromium.org b7144dba1e webkit: expose webkit branch and revision number in about pages
- Change lastchange.py to work in other directories and to
  provide SVN URL.
- Use lastchange.py in place where we generate WebKit versioning
  info.
- Include branch@revision string in glue API.

BUG=41264
TEST=compiles

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@72245 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-01-22 00:41:52 +00:00
evan@chromium.org c9f4c5403d lastchange: add a flag to only print the svn revision number
This allows me to change one of the callers to not parse the
"REVISION=1234" output, which will allow me to change that output
in a future change.

BUG=41264

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@72170 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-01-21 19:19:21 +00:00
evan@chromium.org 28ca665f57 lastchange.py: fix style, unify git codepath
1) Change style to match style guide.
2) Use "git svn info" so we can use the same parsing code for
   both git and svn.

TEST=ran manually

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@72074 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-01-21 01:28:58 +00:00
dilmah@chromium.org 34035cf0ee Try harder to determine lastchange in case of git-svn repository with some local changes.
BUG=http://crosbug.com/7254
TEST=Manual

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@61526 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-10-05 17:36:30 +00:00
mmoss@google.com a650970d2f Roll gyp DEPS, and mostly revert r38366 which was fixed better in gyp.
This properly triggers build targets that depend on "always run" actions.

BUG=22044

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@39223 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-02-17 16:49:27 +00:00
mmoss@google.com 7925dac29a Make LASTCHANGE work properly for make build.
BUG=22044

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@38366 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-02-08 16:35:21 +00:00
sgk@google.com 19ba4b483e 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/build@28089 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-10-06 03:02:38 +00:00
yaar@chromium.org 348eca2172 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/build@26302 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-09-15 23:52:14 +00:00
sgk@google.com 38a119aeff Allow the lastchange target to get a hard-coded default last change
from build/LASTCHANGE.in if there's no actual svn or git change found.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/159876

git-svn-id: http://src.chromium.org/svn/trunk/src/build@22489 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-08-05 17:20:36 +00:00
sgk@google.com e967920295 Fetch the SVN revision number correctly regardless of line endings
returned by any version of Python on any platform.
BUG=14187
TEST=none
Review URL: http://codereview.chromium.org/126227

git-svn-id: http://src.chromium.org/svn/trunk/src/build@18533 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-06-16 21:27:57 +00:00
mmoss@chromium.org 9f921beb5c Grab the correct element from the match group of the git regex.
Review URL: http://codereview.chromium.org/119211


git-svn-id: http://src.chromium.org/svn/trunk/src/build@17769 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-06-05 20:58:19 +00:00
tc@google.com 7f7c618e28 Fix make build by providing a hint as to when to expand the filename.
Review URL: http://codereview.chromium.org/119182


git-svn-id: http://src.chromium.org/svn/trunk/src/build@17639 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-06-04 18:05:19 +00:00
sgk@google.com 6b9836252f Fetch last change (revision) info in a separate action that can run
every build, instead of having it occur as a side effect of updating
some other target for which we want to use normal up-to-date checks.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/118192

git-svn-id: http://src.chromium.org/svn/trunk/src/build@17634 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-06-04 16:08:16 +00:00