Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Issue 1397493004: Move //build/module_args/v8.gni to //build_overrides. (Closed)

Created:
5 years, 2 months ago by Dirk Pranke
Modified:
5 years, 2 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, cbentzel+watch_chromium.org, grt+watch_chromium.org, jam, darin-cc_chromium.org, wfh+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move //build/module_args/v8.gni to //build_overrides. The original intent of the build/module_args directory was to provide a place where different repos could customize settings as needed depending on their dependencies and needs. However, given that you can't really yet embed GN by just deps-ing in //build/config and //build/toolchain, you end up needing to deps-in all of build, and so there was no good way to have different settings per-repo in //build/module_args. This CL changes the approach such that we will have an additional top-level directory called //build_overrides, which is therefore separate from //build and can be properly customized. It is unfortunate that we need to use two top-level directories for GN, but we don't have a good alternative at this time. Once we can remove the GYP build and further clean up the structure and dependencies of //build we will hopefully be able to do better. R=brettw@chromium.org BUG=541791 Committed: https://crrev.com/d4da5ab4987c2c22d96dcf8c4b3ac2449aa16c0f Cr-Commit-Position: refs/heads/master@{#353690}

Patch Set 1 #

Patch Set 2 : add //build_overrides/README.md #

Patch Set 3 : gn formatting #

Total comments: 2

Patch Set 4 : rework README to hopefully be clearer #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -35 lines) Patch
M BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M build/config/BUILD.gn View 1 1 chunk +1 line, -1 line 2 comments Download
M build/module_args/v8.gni View 1 chunk +3 lines, -15 lines 0 comments Download
A build_overrides/README.md View 1 2 3 1 chunk +20 lines, -0 lines 2 comments Download
A + build_overrides/v8.gni View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/mini_installer/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/js2gtest.gni View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/html_viewer/BUILD.gn View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M content/shell/android/BUILD.gn View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M content/test/BUILD.gn View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M gin/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M net/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 27 (11 generated)
Dirk Pranke
5 years, 2 months ago (2015-10-09 23:22:14 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1397493004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1397493004/1
5 years, 2 months ago (2015-10-09 23:24:10 UTC) #3
brettw
lgtm
5 years, 2 months ago (2015-10-09 23:44:08 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-10 00:28:06 UTC) #6
tfarina
Dirk, do you mind putting a README file explaining what should goes in in build_overrides?
5 years, 2 months ago (2015-10-10 18:25:28 UTC) #8
Dirk Pranke
On 2015/10/10 18:25:28, tfarina wrote: > Dirk, do you mind putting a README file explaining ...
5 years, 2 months ago (2015-10-10 18:32:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1397493004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1397493004/40001
5 years, 2 months ago (2015-10-13 04:29:35 UTC) #14
tfarina
I looked at everything. I have a few questions that could help me understand what ...
5 years, 2 months ago (2015-10-13 04:40:46 UTC) #15
Dirk Pranke
On 2015/10/13 04:40:46, tfarina wrote: > I looked at everything. I have a few questions ...
5 years, 2 months ago (2015-10-13 04:45:35 UTC) #17
Dirk Pranke
Okay, I tried again. tfarina, what do you think?
5 years, 2 months ago (2015-10-13 04:53:57 UTC) #18
tfarina
SLGTM. Thanks for adding this README file, it really helped me understand how this is ...
5 years, 2 months ago (2015-10-13 05:11:49 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1397493004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1397493004/60001
5 years, 2 months ago (2015-10-13 05:34:54 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-10-13 06:20:45 UTC) #23
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/d4da5ab4987c2c22d96dcf8c4b3ac2449aa16c0f Cr-Commit-Position: refs/heads/master@{#353690}
5 years, 2 months ago (2015-10-13 06:21:36 UTC) #24
kjellander_chromium
Thanks for doing this! I got a question below. https://codereview.chromium.org/1397493004/diff/60001/build/config/BUILD.gn File build/config/BUILD.gn (right): https://codereview.chromium.org/1397493004/diff/60001/build/config/BUILD.gn#newcode11 build/config/BUILD.gn:11: ...
5 years, 2 months ago (2015-10-13 07:31:35 UTC) #26
Dirk Pranke
5 years, 2 months ago (2015-10-13 17:11:41 UTC) #27
Message was sent while issue was closed.
https://codereview.chromium.org/1397493004/diff/60001/build/config/BUILD.gn
File build/config/BUILD.gn (right):

https://codereview.chromium.org/1397493004/diff/60001/build/config/BUILD.gn#n...
build/config/BUILD.gn:11: import("//build_overrides/v8.gni")
On 2015/10/13 07:31:35, kjellander (chromium) wrote:
> Having this being included in the //build tree will enforce us to create a
dummy
> v8.gni to put into our own //build_overrides directory of WebRTC, which feels
> wrong.

It should feel wrong, because it probably is wrong :). I think, ideally, //build
should not import or depend on anything outside of //build.

However, we're not there yet, and we're going to have to land a bunch of
CLs to clean things up.

In the meantime, yeah, you'll have to create a dummy v8.gni. Hopefully we can
avoid needing any others and get rid of this one.

Powered by Google App Engine
This is Rietveld 408576698