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

11 Коммитов

Автор SHA1 Сообщение Дата
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
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
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
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
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
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
brettw@chromium.org c54085c7d3 Move files from the secondary GN directory to build.
Since this build is looking less experimental, I'm moving the files out of secondary into the corresponding location in src/build.

I added owners files that just include me. For now I'd like to review all changes here.

BUG=
R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@236319 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-20 22:21:03 +00:00