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

101 Коммитов

Автор SHA1 Сообщение Дата
thakis 5edc6803c4 lastchange: Remove two flags that look unused.
Removes --git-svn-go-deeper and -d/--default-lastchange.
No intended behavior change.

BUG=none

Review-Url: https://codereview.chromium.org/2808193002
Cr-Original-Commit-Position: refs/heads/master@{#463362}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 007754f7d6f8116be3dc08b553e262156966706c
2017-04-10 19:32:22 +00:00
thakis 4b335d8ccb lastchange.py: Remove SVN support.
We've been on git for a long time now, this code has been unused for years.
No intended behavior change.

BUG=none

Review-Url: https://codereview.chromium.org/2814503002
Cr-Original-Commit-Position: refs/heads/master@{#463319}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7d48b1ebf6fd1f326a7b437b438c05c7296ecaba
2017-04-10 17:58:10 +00:00
sdy 03387808c9 Fix up the Mac installer’s Info.plist, build with branding info
BUG=

Review-Url: https://codereview.chromium.org/2359953003
Cr-Original-Commit-Position: refs/heads/master@{#420450}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a00c1a94b41da9c22220ebbbb6b5f903890179b2
2016-09-22 20:46:03 +00:00
raphael.kubo.da.costa 62e298d3c8 gn: Point to process_version_rc_template() from process_version()'s docs
The documentation for process_version()'s |template_file| argument was
outdated and corresponded to a previous iteration of
https://codereview.chromium.org/2341673003

Update the docs and point to where the rc_template template currently
is.

R=brettw@chromium.org,dpranke@chromium.org

Review-Url: https://codereview.chromium.org/2350953006
Cr-Original-Commit-Position: refs/heads/master@{#419818}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 73326001a1ce814fef68e64b28dc2f17fdcc18a8
2016-09-20 18:23:24 +00:00
raphael.kubo.da.costa f73c6cd905 gn: Generalize process_version() and move it to build/util (take #2)
(Compared to https://codereview.chromium.org/2308313003/, this version
fixes chrome/installer/linux/BUILD.gn by including all required files)

There is nothing really chrome-specific in the process_version()
template, and if we stop always passing some files in chrome/ on every
invocation it is possible to generalize it and move it to build/util
instead (and fix some layering violation comments along the way).

Compared to its previous incarnation, process_version() no longer passes
LASTCHANGE, BRANDING and VERSION automatically to version.py. This makes
it easier for callers to specify their own |sources| with values that
may override those set in those 3 files.

A new wrapper, process_version_rc_template(), was introduced to cater
for callers (generally Windows ones) who need to process a .rc.version
file that requires the values from LASTCHANGE, BRANDING and VERSION. It
always passes those 3 files to process_version() before any optional
additional |sources|, and |template_file| defaults to
chrome_version.rc.version.
Since this template depends on files from //chrome, it lives in the
newly-added //chrome/process_version_rc_template.gni.

R=dpranke@chromium.org,brettw@chromium.org,phajdan.jr@chromium.org,ddorwin@chromium.org
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng

Review-Url: https://codereview.chromium.org/2341673003
Cr-Original-Commit-Position: refs/heads/master@{#419377}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: dc683d2a5c9af8b55245ce5ab2253d0b6977ccfb
2016-09-17 19:42:59 +00:00
yutak b5e81eb16f Revert of gn: Generalize process_version() and move it to build/util (patchset #4 id:60001 of https://codereview.chromium.org/2308313003/ )
Reason for revert:
This appears to cause compile errors on
"Google Chrome Linux x64", closing the main waterfall.

https://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Linux%20x64/builds/13577

FAILED: installer/version.txt
python ../../build/util/version.py --official -f ../../chrome/VERSION -f ../../chrome/app/theme/google_chrome/BRANDING -o installer/version.txt
Traceback (most recent call last):
  File "../../build/util/version.py", line 170, in <module>
    sys.exit(main())
  File "../../build/util/version.py", line 159, in main
    """ % values
KeyError: 'LASTCHANGE'

Original issue's description:
> There is nothing really chrome-specific in the process_version()
> template, and if we stop always passing some files in chrome/ on every
> invocation it is possible to generalize it and move it to build/util
> instead (and fix some layering violation comments along the way).
>
> Compared to its previous incarnation, process_version() no longer passes
> LASTCHANGE, BRANDING and VERSION automatically to version.py. This makes
> it easier for callers to specify their own |sources| with values that
> may override those set in those 3 files.
>
> A new wrapper, process_version_rc_template(), was introduced to cater
> for callers (generally Windows ones) who need to process a .rc.version
> file that requires the values from LASTCHANGE, BRANDING and VERSION. It
> always passes those 3 files to process_version() before any optional
> additional |sources|, and |template_file| defaults to
> chrome_version.rc.version.
> Since this template depends on files from //chrome, it lives in the
> newly-added //chrome/process_version_rc_template.gni.
>
> R=dpranke@chromium.org,brettw@chromium.org
>
> Committed: https://crrev.com/cf276fc41653b2830a5ec796d4db09b199754677
> Cr-Commit-Position: refs/heads/master@{#418514}

TBR=phajdan.jr@chromium.org,brettw@chromium.org,ddorwin@chromium.org,dpranke@chromium.org,xhwang@chromium.org,raphael.kubo.da.costa@intel.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

Review-Url: https://codereview.chromium.org/2338093003
Cr-Original-Commit-Position: refs/heads/master@{#418519}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b4efc387bb10eef38bbd8cb20a79802e508dd1ba
2016-09-14 09:49:16 +00:00
raphael.kubo.da.costa 98b10b13ce There is nothing really chrome-specific in the process_version()
template, and if we stop always passing some files in chrome/ on every
invocation it is possible to generalize it and move it to build/util
instead (and fix some layering violation comments along the way).

Compared to its previous incarnation, process_version() no longer passes
LASTCHANGE, BRANDING and VERSION automatically to version.py. This makes
it easier for callers to specify their own |sources| with values that
may override those set in those 3 files.

A new wrapper, process_version_rc_template(), was introduced to cater
for callers (generally Windows ones) who need to process a .rc.version
file that requires the values from LASTCHANGE, BRANDING and VERSION. It
always passes those 3 files to process_version() before any optional
additional |sources|, and |template_file| defaults to
chrome_version.rc.version.
Since this template depends on files from //chrome, it lives in the
newly-added //chrome/process_version_rc_template.gni.

R=dpranke@chromium.org,brettw@chromium.org

Review-Url: https://codereview.chromium.org/2308313003
Cr-Original-Commit-Position: refs/heads/master@{#418514}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cf276fc41653b2830a5ec796d4db09b199754677
2016-09-14 08:56:48 +00:00
brettw ffe5408f3a Remove GYP files in breakpad, build, and tools.
These are now unused.

Review-Url: https://codereview.chromium.org/2331893004
Cr-Original-Commit-Position: refs/heads/master@{#418010}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8c0eb8ed764590108f0278e5bbbddec3fc14b522
2016-09-12 19:55:25 +00:00
rsesek 9374720c1f [Mac/GN] Fix all the //remoting Info.plist substitutions.
BUG=628686
R=nicholss@chromium.org,sergeyu@chromium.org

Review-Url: https://codereview.chromium.org/2169273002
Cr-Original-Commit-Position: refs/heads/master@{#407338}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c311f11649393ec89cc92a1958ca92b2fd27d7f7
2016-07-23 03:38:06 +00:00
rsesek 088b7b3be0 [Mac/GN] Move the bundle ID and creator code into the BRANDING file, and use it.
This also updates //components/policy to produce the manifest bundle with the
proper branding.

BUG=431177
R=mark@chromium.org,tnagel@chromium.org

Review-Url: https://codereview.chromium.org/1950493002
Cr-Original-Commit-Position: refs/heads/master@{#391523}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0e40811ddc3347d46421380adfce64c0573141c5
2016-05-04 15:59:52 +00:00
rsesek 10b93a1e0e [Mac/GN] Get chrome and chrome_framework building.
This only does an un-branded Chromium build in the static library configuration.

BUG=431177

Review-Url: https://codereview.chromium.org/1930403003
Cr-Original-Commit-Position: refs/heads/master@{#391226}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e8b24a9c1528052fc510b17945822c906187b72d
2016-05-03 14:31:29 +00:00
wnwen 84e9a473d1 Reland of Propagate is_official_build to version script. (patchset #1 id:1 of https://codereview.chromium.org/1851843002/ )
Reason for revert:
The actual crash was in OmahaClient, which is fixed in: http://crrev.com/1856823002

Original issue's description:
> Revert of Propagate is_official_build to version script. (patchset #1 id:1 of https://codereview.chromium.org/1838173005/ )
>
> Reason for revert:
> Made all the Android perf bots red: https://bugs.chromium.org/p/chromium/issues/detail?id=599830
>
> Original issue's description:
> > Propagate is_official_build to version script.
> >
> > OFFICIAL_BUILD is a special variable in the version script which
> > takes its value from the environment variable. This means that local
> > builds with is_official_build will not actually result in
> > ChromeVersionConstants.isOfficialBuild() returning true.
> >
> > This CL propagates the is_official_build truthiness to the script so
> > official builds no longer depend solely on the environment variable.
> >
> > BUG=599268
> >
> > Committed: https://crrev.com/eab85df0275b825e428954c4030e358ce968ecd9
> > Cr-Commit-Position: refs/heads/master@{#384340}
>
> TBR=agrieve@chromium.org,thestig@chromium.org,wnwen@chromium.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=599268
>
> Committed: https://crrev.com/756e9b934bf1d706dd59ab39bed2af842b67063b
> Cr-Commit-Position: refs/heads/master@{#384610}

TBR=agrieve@chromium.org,thestig@chromium.org,skyostil@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=599268

Review URL: https://codereview.chromium.org/1856843002

Cr-Original-Commit-Position: refs/heads/master@{#385007}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 87d01a7e475b0785364328af5b22b15b28a40e66
2016-04-04 21:16:58 +00:00
skyostil c79495991f Revert of Propagate is_official_build to version script. (patchset #1 id:1 of https://codereview.chromium.org/1838173005/ )
Reason for revert:
Made all the Android perf bots red: https://bugs.chromium.org/p/chromium/issues/detail?id=599830

Original issue's description:
> Propagate is_official_build to version script.
>
> OFFICIAL_BUILD is a special variable in the version script which
> takes its value from the environment variable. This means that local
> builds with is_official_build will not actually result in
> ChromeVersionConstants.isOfficialBuild() returning true.
>
> This CL propagates the is_official_build truthiness to the script so
> official builds no longer depend solely on the environment variable.
>
> BUG=599268
>
> Committed: https://crrev.com/eab85df0275b825e428954c4030e358ce968ecd9
> Cr-Commit-Position: refs/heads/master@{#384340}

TBR=agrieve@chromium.org,thestig@chromium.org,wnwen@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=599268

Review URL: https://codereview.chromium.org/1851843002

Cr-Original-Commit-Position: refs/heads/master@{#384610}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 756e9b934bf1d706dd59ab39bed2af842b67063b
2016-04-01 16:57:35 +00:00
wnwen 4586fd67de Propagate is_official_build to version script.
OFFICIAL_BUILD is a special variable in the version script which
takes its value from the environment variable. This means that local
builds with is_official_build will not actually result in
ChromeVersionConstants.isOfficialBuild() returning true.

This CL propagates the is_official_build truthiness to the script so
official builds no longer depend solely on the environment variable.

BUG=599268

Review URL: https://codereview.chromium.org/1838173005

Cr-Original-Commit-Position: refs/heads/master@{#384340}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: eab85df0275b825e428954c4030e358ce968ecd9
2016-03-31 18:36:33 +00:00
mostynb 9f4b949d37 update obsolete code.google.com documentation links
This is a documentation-only change.

Disabling presubmit checks, due to "noparent" settings for the following files:
components/policy/resources/policy_templates.json
content/common/font_config_ipc_linux.h

BUG=567488
NOPRESUBMIT=true
TBR=atwilson,dcheng

Review URL: https://codereview.chromium.org/1592403002

Cr-Original-Commit-Position: refs/heads/master@{#374213}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: df175a8c3d1c1060f96d123a5896fdfbe4b3782d
2016-02-08 23:28:49 +00:00
alexandermont e3b4deaf56 enforce ordering of test execution through filtering in test_runner.py
BUG=569723

Review URL: https://codereview.chromium.org/1531013002

Cr-Original-Commit-Position: refs/heads/master@{#366160}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ce319f72997625e985a6b3819b168e11d330dc2a
2015-12-18 20:31:47 +00:00
alexandermont 49d5e65ba9 Revert of Enforce ordering in FilterTestNames. (patchset #5 id:80001 of https://codereview.chromium.org/1522303002/ )
Reason for revert:
causing test failures

Original issue's description:
> Enforce ordering in FilterTestNames.
>
> BUG=569723
>
> Committed: https://crrev.com/daeb80935df8b1532de2cf12879ea3d40a0615ae
> Cr-Commit-Position: refs/heads/master@{#365376}

TBR=jbudorick@chromium.org,mikecase@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=569723

Review URL: https://codereview.chromium.org/1532463002

Cr-Original-Commit-Position: refs/heads/master@{#365409}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 005afed80274bf93a2ddc853c64baf3875367e7b
2015-12-16 00:57:55 +00:00
alexandermont 21b42bc6a5 Enforce ordering in FilterTestNames.
BUG=569723

Review URL: https://codereview.chromium.org/1522303002

Cr-Original-Commit-Position: refs/heads/master@{#365376}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: daeb80935df8b1532de2cf12879ea3d40a0615ae
2015-12-15 23:14:42 +00:00
dpranke e13828971b port remoting_me2me_host_archive to GN
This CL ports the remoting_me2me_host_archive target to GN and several
of its dependent targets. This is only a partial port of the target, as
the 'remoting_infoplist_strings' target hasn't been ported yet, but I'm
not actually sure if that's needed on Linux.

This CL also fixes the path to the remoting-webapp zip file.

Both of these targets were needed in order to flip the official
Linux x64 build over to GN.

BUG=512899, 530733

Review URL: https://codereview.chromium.org/1426113002

Cr-Original-Commit-Position: refs/heads/master@{#357697}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 63e164a242653dbed7932fe9213da828aa280f78
2015-11-04 01:14:27 +00:00
tfarina 85eda77de5 Output webkit_version.h into the target_gen_dir.
And update callers to include it like build/util/webkit_version.h.

BUG=None
R=brettw@chromium.org

Review URL: https://codereview.chromium.org/1418623009

Cr-Original-Commit-Position: refs/heads/master@{#356401}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c2103c407dbce8f4fb29c4332d87812300a10a57
2015-10-27 21:38:28 +00:00
tfarina 7032b45295 Move webkit_version.h.in from content to build directory.
This fixes the TODO in build/util/BUILD.gn

BUG=None
R=brettw@chromium.org

Review URL: https://codereview.chromium.org/1421143003

Cr-Original-Commit-Position: refs/heads/master@{#355992}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f766cab6f0e02f465f35a615f23819a426c817c1
2015-10-25 14:43:06 +00:00
sdefresne f345848333 [iOS][GN] Port ios_web_unittests to build with gn
Add template to run a java command as an "script", i.e. templates
java_action/java_action_foreach similar to action/action_foreach.

Add template to compile a bunch of JavaScript to a bundle and to
compile JavaScript files with closure compile (only enable checks
that are known to work).

Fix gcdwebserver public configuration to add the dependency on libz
to libs instead of using ldflags.

Add files missing from //ui/base:test_support when building for iOS
with gn (they are present in the gyp build).

BUG=459705

Review URL: https://codereview.chromium.org/1393303003

Cr-Original-Commit-Position: refs/heads/master@{#355460}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: aa7c1cf96274a0a531629f934bd9091a55439270
2015-10-22 00:42:04 +00:00
jochen 4e3474e202 Use the latest hash with a commit position as webkit version
This will guarantee that a development build with a not yet commit HEAD
will also get a valid devtools frontend from the servers

BUG=535268
R=pfeldman@chromium.org,mnaganov@chromium.org,dpranke@chromium.org

Review URL: https://codereview.chromium.org/1361393002

Cr-Original-Commit-Position: refs/heads/master@{#350565}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fb61e3682fe7301373360fa851c7cb3dea9aec1f
2015-09-24 15:54:26 +00:00
Jochen Eisinger f28a372a9c Omit commit position for Blink lastchange / version
BUG=535268
R=dpranke@chromium.org, pfeldman@chromium.org

Review URL: https://codereview.chromium.org/1361203002 .

Cr-Original-Commit-Position: refs/heads/master@{#350370}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f880f0071d47ec1aa9608245222ad0b6f350e48c
2015-09-23 21:08:39 +00:00
brettw 44ae0b3aad Hook up chrome.exe manifest in the Windows GN build.
This generates a proper version manifest for chrome.exe and also for the version assembly.

This adds a new way to get the chrome version info programatically at GN time. Although this adds another exec_script call, it removes four such calls in remoting so there is a net speed increase.

BUG=

Review URL: https://codereview.chromium.org/1250853007

Cr-Original-Commit-Position: refs/heads/master@{#339833}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 983c0562bba1e4d93bb7ee489f56bcbd61fc55f9
2015-07-22 04:27:41 +00:00
gunsch d9ad4f1c59 Android test runner: support negative gtest filter syntax.
Using --gtest_filter=-AudioInputTest.* currently results in no tests being
run, instead of "all tests except for AudioInputTest".

R=skyostil@chromium.org,cjhopman@chromium.org

Review URL: https://codereview.chromium.org/1235713003

Cr-Original-Commit-Position: refs/heads/master@{#338396}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: db9824bb2ffd51cc023e19077749ffe777887223
2015-07-10 23:37:39 +00:00
agrieve 478e342ca0 Move Android version stamping from an exec_script -> build rule
BUG=

Review URL: https://codereview.chromium.org/1229073003

Cr-Original-Commit-Position: refs/heads/master@{#338292}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5f3dec8ead48312eea0b4a27329c4faf231333c7
2015-07-10 15:19:05 +00:00
mnaganov 2997f0f83b Restore under flag historic behaviour of lastchange.py wrt. Git-SVN repos
Adds optional flag '--git-svn-go-deeper' to allow lastchange.py find
the last committed SVN revision in a Git-SVN repo.

This is to help access DevTools frontend on Android for Chromium developers
that have local changes to Blink.

BUG=468691

Review URL: https://codereview.chromium.org/1197483002

Cr-Original-Commit-Position: refs/heads/master@{#335156}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b73e2ea7a4e319eb2e6183090dfe6b9796d42c3b
2015-06-18 23:16:45 +00:00
agable 73bad27810 Break out after finding Cr-Commit-Position in lastchange
R=mmoss@chromium.org
BUG=478179

Review URL: https://codereview.chromium.org/1093233002

Cr-Original-Commit-Position: refs/heads/master@{#326097}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ead70ba1e0db6dfd9bdb722363b2cfbc41d1a7d6
2015-04-21 19:34:57 +00:00
scottmg 317bbea2be gn format // (the rest, except mojo)
Excluded mojo because I think that needs to happen on the other side.

At gn --version = 306668 for which roll is in CQ.

R=brettw@chromium.org
TBR=scherkus@chromium.org
BUG=348474

Review URL: https://codereview.chromium.org/774353003

Cr-Original-Commit-Position: refs/heads/master@{#306708}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 34fb7e5919ed42dc800acf3961fe6a2bf9e7d6eb
2014-12-03 23:27:41 +00:00
scottmg fd96972e70 gn format //build
A starting point for doing all of src, and adding a PRESUBMIT.

Includes https://codereview.chromium.org/772663002/ and https://codereview.chromium.org/770053002/.
I haven't pushed new binaries yet.

Generated via:
> cd build
> git ls-files *.gn *.gni | sed -e "s/^/@..\\\\out\\\\Debug\\\\gn format --in-place /" >x.bat && x.bat

The only things that I don't love in the current output are:

1. Turning

    args = [
      "--depfile", rebase_path(depfile, root_build_dir),
      "--android-sdk-tools", rebased_android_sdk_build_tools,
      "--dex-path", rebased_output,
    ]

into:

    args = [
      "--depfile",
      rebase_path(depfile, root_build_dir),
      "--android-sdk-tools",
      rebased_android_sdk_build_tools,
      "--dex-path",
      rebased_output,
    ]

The heuristic for this isn't trivial though, and it also affects e.g. '-Xclang' in cflags, as well
as assignments to temporaries that are later assigned to args.

2. Turning single line

    if (defined(invoker.inputs)) { inputs = invoker.inputs }

into

    if (defined(invoker.inputs)) {
      inputs = invoker.inputs
    }

This could be argued to be an improvement, but as it's very boilerplate-y perhaps an exception to
allow single line in this case is worthwhile. I think there was discussion of new syntax for this
case too, something like "inputs ?= invoker.inputs" maybe.

In both cases, I think it's worthwhile to get formatting turned on, and then go back and special
case these if we decide it's worthwhile.

R=brettw@chromium.org
BUG=348474

Review URL: https://codereview.chromium.org/766573003

Cr-Original-Commit-Position: refs/heads/master@{#306305}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b199254f481c5db36d56e83fce40594b06d2b81f
2014-12-02 00:25:35 +00:00
feng 6748b8c503 [Android] Remove the workaround code of a platform bug.
From our UMA and operation feedbacks, we don't see such issue anymore.
(We notified the manufactor of the issue and likely they addressed it
in OTA). The cleanup restores native library name to libchrome.so
instead of libchrome.<VER>.so.

BUG=311644

Review URL: https://codereview.chromium.org/759833002

Cr-Original-Commit-Position: refs/heads/master@{#305925}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d9201758ca9e6dc47e36026a4029dae5cc69e4c4
2014-11-27 00:29:05 +00:00
primiano f6dde24a34 Make lastchange.py faster using git cat-file.
lastchange.py is using git show -s to get the commit message of HEAD.
It turns out that on some older versions of git that is a rather
expensive operation. Under particular circumstances it can eventually
take several minutes (see crbug.com/431463 #27).
Anyways, git cat-file is x45 faster than the equivalent show command
for the sake of printing the commit message.
$ sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'
$ time git show -s --format=%B HEAD > /dev/null
real    0m0.090s

$ sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'
$ time git cat-file commit HEAD > /dev/null
real    0m0.002s

BUG=431463

Review URL: https://codereview.chromium.org/726413003

Cr-Original-Commit-Position: refs/heads/master@{#304444}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5176f672c91c461a2f87f333e2b88ab407b2bc52
2014-11-17 18:39:23 +00:00
torne f3d2db6624 android_webview: use chrome version information.
Replace the hardcoded version number used for the WebView's user agent
with the real version number of the corresponding Chrome build. This
uses the version information from src/chrome/VERSION; there is a pending
bug to move this out of chrome/ (http://crbug.com/345538) which will not
be impeded by this change as the location of the version info is
obtained from build/util/version.gypi.

BUG=297522

Review URL: https://codereview.chromium.org/695313002

Cr-Original-Commit-Position: refs/heads/master@{#302614}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e72c9f4cc8e2d5abdf9ae4506abf94d5eb7a91d6
2014-11-04 16:32:03 +00:00
brettw 26697bdbff Remove brettw from some owners files.
TBR=cpu

Review URL: https://codereview.chromium.org/626643002

Cr-Original-Commit-Position: refs/heads/master@{#297923}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5a6926e12a19c554b7e4efb28f0adc4101a20365
2014-10-02 22:19:36 +00:00
agable 464e2cff74 Lengthen lastchange VERSION string to show full hash and commit position.
Now that the DMServer has been fixed to accept 'agent' strings longer than
64 characters (http://crbug.com/406948), we can re-lengthen the string
produced by lastchange.py to include both the full git hash and the
Cr-Commit-Position.

R=joaodasilva@chromium.org, scottmg@chromium.org
BUG=406783

Review URL: https://codereview.chromium.org/527103004

Cr-Original-Commit-Position: refs/heads/master@{#292963}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 740c00432f11b2378fcb2cc72e09dd0c9a74e62f
2014-09-02 18:36:45 +00:00
Brett Wilson 9c0c8d3cbb GN build improvements
Add a "last_commit_position" script so we can use commit positions for GN builds rather than git hashes. Remove the old last_change target in build/util which is no longer used.

Fix ozone GN build.
Fix Windows GN build.

R=jamesr@chromium.org

Review URL: https://codereview.chromium.org/483403005

Cr-Original-Commit-Position: refs/heads/master@{#291729}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 48c29f238165e02c0e6c56c406c4c0ad8fd0f1cc
2014-08-25 19:07:44 +00:00
agable 25e8a6c0de Further shorten the lastchange string.
Even the 40-character hash causes problems when the pieces of the string before
it push the length to >64 characters. Truncating it is a temporary fix until
we discuss ways to accept strings longer than 64 chars.

R=cmp@chromium.org, scottmg@chromium.org
NOTRY=True
BUG=406783

Review URL: https://codereview.chromium.org/499133003

Cr-Original-Commit-Position: refs/heads/master@{#291626}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 15a2a65986f6dec827cce5bc7d58601ed9b1eb2a
2014-08-24 18:43:13 +00:00
agable 723c40a25c Temporarily make lastchange use only the git hash.
This will fix the currently failing browser_tests
CloudPolicyTests, which fail because the lastchange
string is too long.

TBR=scottmg@chromium.org, tandrii@chromium.org
NOTRY=True
NOTREECHECKS=True
TEST=passed browser_tests on linux_chromium_rel trybot
BUG=406783

Review URL: https://codereview.chromium.org/499063002

Cr-Original-Commit-Position: refs/heads/master@{#291571}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 993d8dde169387c432c706e5b7a559dcb622bcc9
2014-08-23 18:51:27 +00:00
agable@chromium.org 804b22bcf1 Get lastchange.py to work correctly on Git repositories.
This changes lastchange.py in two ways:
1) If the commit it finds is a Git hash, it outputs the whole hash, not just
   the first 7 characters.
2) It only looks at HEAD to see if there is a git-svn id. Previously, it used
   --grep=git-svn-id, which would find the most recent commit containing a
   git-svn id. This would be broken after the switch to git, as it would always
   find the last commit before the switch. Now, it only inspects the most recent
   commit, and falls through to pure-Git if that fails.

R=dilmah@chromium.org, stip@chromium.org
BUG=399113

Review URL: https://codereview.chromium.org/488733002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@291165 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-21 20:27:40 +00:00
brettw@chromium.org 28303e4e48 Rename source_prereqs to inputs in the GN build.
This variable changed name.

R=jamesr@chromium.org

Review URL: https://codereview.chromium.org/375873006

git-svn-id: http://src.chromium.org/svn/trunk/src/build@282076 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-09 17:29:31 +00:00
raphael.kubo.da.costa@intel.com a4d003eb7a version.py: Use argparse instead of getopt.
Rewrite the argument handling code using argparse. It allows us to get
rid of a lot of manual parsing as well as the whole help message.

In addition, it fixes a few other bugs present in the previous
implementation:

- Passing 3 or more arguments that are not values for parameters would
  cause an infinite loop.
- The "--template" option was not allowed (only its short form "-t"
  was).

R=mark@chromium.org, brettw@chromium.org

Review URL: https://codereview.chromium.org/336513002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@277450 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-06-16 15:41:40 +00:00
raphael.kubo.da.costa@intel.com 8c481aa2e5 version.py: Pass the right object to Usage in getopt exceptions.
Usage() expects a string, not a full GetoptError object.

TEST=build/util/version.py --file chrome/VERSION --blargh
R=brettw@chromium.org, mark@chromium.org

Review URL: https://codereview.chromium.org/326043004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@276315 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-06-11 09:13:21 +00:00
brettw@chromium.org 9a06fdddb7 GN build improvements, misc plus
Parameterize webrtc enabling.

Add use_seccomp_pbf flag

Add a webkit version target

Work on ui/base GN build, especially on Windows. This target is a mess (in GYP). This patch tries to make it make a bit more sense while fixing the errors I found.

Fix ui/gl target for non-Linux platform. A bunch of X11 stuff was not parameterized.

Add unscaled resources target

BUG=
R=scottmg@chromium.org

Review URL: https://codereview.chromium.org/287343006

git-svn-id: http://src.chromium.org/svn/trunk/src/build@271724 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-20 19:20:40 +00:00
brettw@chromium.org f2677258aa Remove the hard_dep flag in GN.
This was not hooked up but I kept it being acceptsed until all uses can be deleted. This deletes the remaining uses from the tree.

R=scottmg@chromium.org

Review URL: https://codereview.chromium.org/283883002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@270779 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-15 19:38:00 +00:00
brettw@chromium.org 84171adb19 Fix line endings on build/util/BUILD.gn
TBR=scottmg@chromium.org

Review URL: https://codereview.chromium.org/282193002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@270723 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-15 17:40:09 +00:00
brettw@chromium.org 8d03cb1c06 This renames all custom GN targets to actions in the GN build like the new version requires.
R=scottmg@chromium.org
TBR=scottmg

Review URL: https://codereview.chromium.org/206373007

git-svn-id: http://src.chromium.org/svn/trunk/src/build@259610 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-26 17:04:14 +00:00
feng@chromium.org 35a6d219f5 [Android] Workaround of an android platform bug.
On some Android devices (e.g., Sony Xperia), package manager may
fail to extract native libraries when updating Chrome.

The change tries alleviate the situation by:
1) name libchrome with version number;
2) when failed to load library, try to extract native libraies
   and load them.

BUG=311644

Review URL: https://codereview.chromium.org/200753002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@258546 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-21 12:39:56 +00:00
mad@chromium.org d822f25af7 Moving version script and gypi file to build\util.
BUG=343792

OK, it's been almost a week now, with regular pings to OWNERs, so I guess it's OK to TBR... It's only Gyp/script changes anyway... Feel free to uncheck the CQ box if you disagree...

TBR=beng@chromium.org, darin@chromium.org

Review URL: https://codereview.chromium.org/165893002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@252481 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-21 03:14:02 +00:00
brettw@chromium.org d80b402bc9 Pull GN @ 252040, update calls
Updates all rebase_path calls to use the new parameter ordering.

Use the new getenv function and delete the Python script we had to get the home directory.

Takes advantage of the new ability to have the default value of declare_args blocks be dependent on other values. This simplifies some code.

R=scottmg@chromium.org

Review URL: https://codereview.chromium.org/164773005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@252065 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-19 20:31:52 +00:00