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

Issue 921053003: Add option to allow mojob to specify extra gn args. (Closed)

Created:
5 years, 10 months ago by haltonhuo
Modified:
5 years, 9 months ago
Reviewers:
ppi, qsr, blundell
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

As self_built_network_service_location introduced in https://codereview.chromium.org/983143003/, this CL is adding the support to allow mojob to specify this arg via command. How to use (take x86 for eg): ============================ $ mojo/tools/mojob.py gn --android --target-cpu=x86 \ --args="self_built_network_service_location=<x86_network_service_mojo_file>" $ mojo/tools/mojob.py build --android TEST=mojo/tools/android_mojo_shell.py mojo:sample_app BUG=458409 R=qsr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/3b020f62f0fd03493ec08e400b5f387056820609

Patch Set 1 #

Patch Set 2 : Rebase code #

Patch Set 3 : Add network-service para #

Patch Set 4 : Use self_built_network_service_location if given in args.gn. #

Patch Set 5 : Add mojob option #

Total comments: 11

Patch Set 6 : Fix qsr's comments #

Total comments: 6

Patch Set 7 : fix for qsr's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -6 lines) Patch
M mojo/public/tools/BUILD.gn View 1 2 3 4 5 1 chunk +16 lines, -6 lines 0 comments Download
M mojo/tools/mojob.py View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M mojo/tools/mopy/gn.py View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (2 generated)
haltonhuo
PTAL
5 years, 10 months ago (2015-02-13 04:39:45 UTC) #2
haltonhuo
On 2015/02/13 04:39:45, haltonhuo wrote: > PTAL https://codereview.chromium.org/917423004/ is prediction of this CL. Before that, ...
5 years, 10 months ago (2015-02-13 04:48:56 UTC) #3
haltonhuo
On 2015/02/13 04:48:56, haltonhuo wrote: > On 2015/02/13 04:39:45, haltonhuo wrote: > > PTAL > ...
5 years, 10 months ago (2015-02-13 08:05:16 UTC) #4
blundell
ppi@ is actually the best reviewer here. I don't think these fixes are enough fwiw, ...
5 years, 10 months ago (2015-02-13 08:32:57 UTC) #6
haltonhuo
On 2015/02/13 08:32:57, blundell wrote: > ppi@ is actually the best reviewer here. I don't ...
5 years, 10 months ago (2015-02-13 09:09:02 UTC) #7
haltonhuo
ppi, psr, the patch set3 is updated according the discussion. Please review.
5 years, 10 months ago (2015-02-17 05:58:42 UTC) #8
qsr
On 2015/02/17 05:58:42, haltonhuo wrote: > ppi, psr, the patch set3 is updated according the ...
5 years, 10 months ago (2015-02-17 09:11:45 UTC) #9
haltonhuo
On 2015/02/17 09:11:45, qsr wrote: > On 2015/02/17 05:58:42, haltonhuo wrote: > > ppi, psr, ...
5 years, 9 months ago (2015-03-06 11:11:04 UTC) #10
qsr
On 2015/03/06 11:11:04, haltonhuo wrote: > On 2015/02/17 09:11:45, qsr wrote: > > On 2015/02/17 ...
5 years, 9 months ago (2015-03-06 12:02:28 UTC) #11
blundell
On 2015/03/06 12:02:28, qsr wrote: > On 2015/03/06 11:11:04, haltonhuo wrote: > > On 2015/02/17 ...
5 years, 9 months ago (2015-03-06 12:06:49 UTC) #12
haltonhuo
On 2015/03/06 12:06:49, blundell wrote: > I think that this variable should be in //build/module_args/mojo.gni. ...
5 years, 9 months ago (2015-03-06 12:22:23 UTC) #13
blundell
On 2015/03/06 12:06:49, blundell wrote: > On 2015/03/06 12:02:28, qsr wrote: > > On 2015/03/06 ...
5 years, 9 months ago (2015-03-06 12:23:11 UTC) #14
blundell
On 2015/03/06 12:22:23, haltonhuo wrote: > On 2015/03/06 12:06:49, blundell wrote: > > I think ...
5 years, 9 months ago (2015-03-06 12:25:01 UTC) #15
haltonhuo
blundell, I do not found the var in //build/module_args/mojo.gni will be listed in "gn args ...
5 years, 9 months ago (2015-03-06 14:29:51 UTC) #16
blundell
On 2015/03/06 14:29:51, haltonhuo wrote: > blundell, I do not found the var in //build/module_args/mojo.gni ...
5 years, 9 months ago (2015-03-06 14:34:31 UTC) #17
haltonhuo
blundell, patch set4 is updated as we discussed. Now it depends on the chromium part ...
5 years, 9 months ago (2015-03-06 15:39:27 UTC) #18
haltonhuo
On 2015/03/06 15:39:27, haltonhuo wrote: > blundell, patch set4 is updated as we discussed. Now ...
5 years, 9 months ago (2015-03-06 15:45:53 UTC) #19
haltonhuo
In patch set 5, I added --args option to allow specify self_built_network_service_location qs we discussed ...
5 years, 9 months ago (2015-03-09 11:53:53 UTC) #20
qsr
https://codereview.chromium.org/921053003/diff/80001/mojo/public/tools/BUILD.gn File mojo/public/tools/BUILD.gn (right): https://codereview.chromium.org/921053003/diff/80001/mojo/public/tools/BUILD.gn#newcode34 mojo/public/tools/BUILD.gn:34: if (defined(self_built_network_service_location) && Don't you need to define this ...
5 years, 9 months ago (2015-03-09 11:58:42 UTC) #21
haltonhuo
https://codereview.chromium.org/921053003/diff/80001/mojo/public/tools/BUILD.gn File mojo/public/tools/BUILD.gn (right): https://codereview.chromium.org/921053003/diff/80001/mojo/public/tools/BUILD.gn#newcode34 mojo/public/tools/BUILD.gn:34: if (defined(self_built_network_service_location) && On 2015/03/09 11:58:41, qsr wrote: > ...
5 years, 9 months ago (2015-03-09 12:13:00 UTC) #22
qsr
https://codereview.chromium.org/921053003/diff/80001/mojo/tools/mojob.py File mojo/tools/mojob.py (right): https://codereview.chromium.org/921053003/diff/80001/mojo/tools/mojob.py#newcode223 mojo/tools/mojob.py:223: gn_parser.add_argument('--args', help='Specify extra args for gn phase', On 2015/03/09 ...
5 years, 9 months ago (2015-03-09 13:13:06 UTC) #23
haltonhuo
qsr, all your comments are addressed in patch set 6, please review. https://codereview.chromium.org/921053003/diff/80001/mojo/public/tools/BUILD.gn File mojo/public/tools/BUILD.gn ...
5 years, 9 months ago (2015-03-10 06:50:44 UTC) #24
qsr
https://codereview.chromium.org/921053003/diff/100001/mojo/tools/mojob.py File mojo/tools/mojob.py (right): https://codereview.chromium.org/921053003/diff/100001/mojo/tools/mojob.py#newcode68 mojo/tools/mojob.py:68: additional_args['extra_args'] = args.extra_args Could you use gn_args instead of ...
5 years, 9 months ago (2015-03-10 10:02:38 UTC) #25
haltonhuo
https://codereview.chromium.org/921053003/diff/100001/mojo/tools/mojob.py File mojo/tools/mojob.py (right): https://codereview.chromium.org/921053003/diff/100001/mojo/tools/mojob.py#newcode68 mojo/tools/mojob.py:68: additional_args['extra_args'] = args.extra_args On 2015/03/10 10:02:38, qsr wrote: > ...
5 years, 9 months ago (2015-03-11 05:58:06 UTC) #26
qsr
lgtm
5 years, 9 months ago (2015-03-12 13:31:15 UTC) #27
haltonhuo
On 2015/03/12 13:31:15, qsr wrote: > lgtm thanks, could you land it by hand as ...
5 years, 9 months ago (2015-03-13 01:32:08 UTC) #28
qsr
Committed patchset #7 (id:120001) manually as 3b020f62f0fd03493ec08e400b5f387056820609 (presubmit successful).
5 years, 9 months ago (2015-03-16 09:44:20 UTC) #29
qsr
5 years, 9 months ago (2015-03-16 09:44:38 UTC) #30
Message was sent while issue was closed.
On 2015/03/13 01:32:08, haltonhuo wrote:
> On 2015/03/12 13:31:15, qsr wrote:
> > lgtm
> 
> thanks, could you land it by hand as you usually did?

Done

Powered by Google App Engine
This is Rietveld 408576698