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

Issue 2670743004: Add support for extra GN args to Android build script. (Closed)

Created:
3 years, 10 months ago by kjellander_webrtc
Modified:
3 years, 10 months ago
Reviewers:
sakal
CC:
webrtc-reviews_webrtc.org
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add support for extra GN args to Android build script. By using the --extra-gn-args flag, it is now possible to specify additional GN arguments for the build. This is needed in order to pass a non-default Goma directory (needed for the bots). Example use: --extra-gn-args goma_dir=\"/path/to/goma\" You can also pass multiple args (separated by spaces). BUG=chromium:684387 NOTRY=True TESTED=Did a local successful run. Review-Url: https://codereview.webrtc.org/2670743004 Cr-Commit-Position: refs/heads/master@{#16458} Committed: https://chromium.googlesource.com/external/webrtc/+/6b3fcfd82318aea0cd4ce1705f510ece0057491a

Patch Set 1 #

Total comments: 6

Patch Set 2 : Updated after review #

Total comments: 3

Patch Set 3 : Fixed argparse oddness #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -8 lines) Patch
M tools-webrtc/android/build_aar.py View 1 2 4 chunks +7 lines, -8 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
kjellander_webrtc
3 years, 10 months ago (2017-02-03 20:16:22 UTC) #5
sakal
https://codereview.webrtc.org/2670743004/diff/20001/tools-webrtc/android/build_aar.py File tools-webrtc/android/build_aar.py (right): https://codereview.webrtc.org/2670743004/diff/20001/tools-webrtc/android/build_aar.py#newcode57 tools-webrtc/android/build_aar.py:57: parser.add_argument('--extra-gn-args', action='append', default=[], I would prefer this be a ...
3 years, 10 months ago (2017-02-06 09:24:11 UTC) #6
kjellander_webrtc
https://codereview.webrtc.org/2670743004/diff/20001/tools-webrtc/android/build_aar.py File tools-webrtc/android/build_aar.py (right): https://codereview.webrtc.org/2670743004/diff/20001/tools-webrtc/android/build_aar.py#newcode57 tools-webrtc/android/build_aar.py:57: parser.add_argument('--extra-gn-args', action='append', default=[], On 2017/02/06 09:24:11, sakal wrote: > ...
3 years, 10 months ago (2017-02-06 14:44:12 UTC) #7
kjellander_webrtc
https://codereview.webrtc.org/2670743004/diff/20001/tools-webrtc/android/build_aar.py File tools-webrtc/android/build_aar.py (right): https://codereview.webrtc.org/2670743004/diff/20001/tools-webrtc/android/build_aar.py#newcode57 tools-webrtc/android/build_aar.py:57: parser.add_argument('--extra-gn-args', action='append', default=[], On 2017/02/06 09:24:11, sakal wrote: > ...
3 years, 10 months ago (2017-02-06 14:44:13 UTC) #8
sakal
lgtm if you verify your "--arch" fix actually works. https://codereview.webrtc.org/2670743004/diff/20001/tools-webrtc/android/build_aar.py File tools-webrtc/android/build_aar.py (right): https://codereview.webrtc.org/2670743004/diff/20001/tools-webrtc/android/build_aar.py#newcode57 tools-webrtc/android/build_aar.py:57: ...
3 years, 10 months ago (2017-02-06 14:52:57 UTC) #9
kjellander_webrtc
Improved with nargs instead. PTAL https://codereview.webrtc.org/2670743004/diff/40001/tools-webrtc/android/build_aar.py File tools-webrtc/android/build_aar.py (right): https://codereview.webrtc.org/2670743004/diff/40001/tools-webrtc/android/build_aar.py#newcode51 tools-webrtc/android/build_aar.py:51: parser.add_argument('--arch', action='append', default=DEFAULT_ARCHS, On ...
3 years, 10 months ago (2017-02-07 08:02:58 UTC) #10
sakal
Cool, this looks better, lgtm.
3 years, 10 months ago (2017-02-07 08:35:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2670743004/60001
3 years, 10 months ago (2017-02-07 09:08:28 UTC) #16
commit-bot: I haz the power
3 years, 10 months ago (2017-02-07 09:11:11 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/external/webrtc/+/6b3fcfd82318aea0cd4ce1705...

Powered by Google App Engine
This is Rietveld 408576698