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

Issue 2728643003: Setting is_component_build to false by default (Closed)

Created:
3 years, 9 months ago by mbonadei
Modified:
3 years, 9 months ago
CC:
webrtc-reviews_webrtc.org, qiang.lu, niklas.enbom, yujie_mao (webrtc), peah-webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Setting is_component_build to false by default Webrtc does not support component builds so we want to override the chromium default value (which can be true on debug builds if the os is different from iOS). Please note that the user can set this value to true in two ways: - using --args (e.g.: gn gen out/default --args='is_component_build=true' - changing the value in the args.gn file But in both cases the value will be ignored because we don't use the 'component' template but we rely directly on 'rtc_static_library' and 'rtc_shared_library'. BUG=webrtc:6975 NOTRY=True Review-Url: https://codereview.webrtc.org/2728643003 Cr-Commit-Position: refs/heads/master@{#17020} Committed: https://chromium.googlesource.com/external/webrtc/+/2cb3944ba7e4467601ebd94888e1811a6d77be49

Patch Set 1 #

Patch Set 2 : Adding assertion and a meaningful error message #

Patch Set 3 : Removing 'shared' and 'static' mixin from MB #

Patch Set 4 : Meaningful error message for component builds #

Total comments: 4

Patch Set 5 : Updating assertion error message. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -16 lines) Patch
M .gn View 1 chunk +11 lines, -0 lines 0 comments Download
M tools-webrtc/mb/mb_config.pyl View 1 2 4 chunks +8 lines, -16 lines 0 comments Download
M webrtc/webrtc.gni View 1 2 3 4 1 chunk +15 lines, -0 lines 1 comment Download

Messages

Total messages: 20 (6 generated)
mbonadei
Using default_args = {} works. :)
3 years, 9 months ago (2017-03-01 17:39:27 UTC) #2
mbonadei
On 2017/03/01 17:39:27, mbonadei wrote: > Using default_args = {} works. :) Let me add ...
3 years, 9 months ago (2017-03-01 18:20:40 UTC) #3
mbonadei
On 2017/03/01 18:20:40, mbonadei wrote: > On 2017/03/01 17:39:27, mbonadei wrote: > > Using default_args ...
3 years, 9 months ago (2017-03-01 18:31:54 UTC) #4
mbonadei
On 2017/03/01 18:31:54, mbonadei wrote: > On 2017/03/01 18:20:40, mbonadei wrote: > > On 2017/03/01 ...
3 years, 9 months ago (2017-03-01 18:54:09 UTC) #5
kjellander_webrtc
On 2017/03/01 18:54:09, mbonadei wrote: > On 2017/03/01 18:31:54, mbonadei wrote: > > On 2017/03/01 ...
3 years, 9 months ago (2017-03-02 02:32:15 UTC) #6
mbonadei
On 2017/03/02 02:32:15, kjellander_webrtc wrote: > On 2017/03/01 18:54:09, mbonadei wrote: > > On 2017/03/01 ...
3 years, 9 months ago (2017-03-02 18:33:03 UTC) #7
kjellander_webrtc
https://codereview.webrtc.org/2728643003/diff/60001/webrtc/webrtc.gni File webrtc/webrtc.gni (right): https://codereview.webrtc.org/2728643003/diff/60001/webrtc/webrtc.gni#newcode18 webrtc/webrtc.gni:18: print("The Gn argument `is_component_build` is currently " + How ...
3 years, 9 months ago (2017-03-03 04:19:02 UTC) #8
mbonadei
https://codereview.webrtc.org/2728643003/diff/60001/webrtc/webrtc.gni File webrtc/webrtc.gni (right): https://codereview.webrtc.org/2728643003/diff/60001/webrtc/webrtc.gni#newcode18 webrtc/webrtc.gni:18: print("The Gn argument `is_component_build` is currently " + On ...
3 years, 9 months ago (2017-03-03 18:03:59 UTC) #9
kjellander_webrtc
lgtm with the assert message updated. https://codereview.webrtc.org/2728643003/diff/60001/webrtc/webrtc.gni File webrtc/webrtc.gni (right): https://codereview.webrtc.org/2728643003/diff/60001/webrtc/webrtc.gni#newcode18 webrtc/webrtc.gni:18: print("The Gn argument ...
3 years, 9 months ago (2017-03-03 19:10:03 UTC) #10
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/2728643003/80001
3 years, 9 months ago (2017-03-03 19:34:22 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/external/webrtc/+/2cb3944ba7e4467601ebd94888e1811a6d77be49
3 years, 9 months ago (2017-03-03 19:36:41 UTC) #16
tommi
https://codereview.webrtc.org/2728643003/diff/80001/webrtc/webrtc.gni File webrtc/webrtc.gni (right): https://codereview.webrtc.org/2728643003/diff/80001/webrtc/webrtc.gni#newcode28 webrtc/webrtc.gni:28: assert(!is_component_build, "Component builds are not supported in WebRTC.") Although ...
3 years, 9 months ago (2017-03-04 00:14:05 UTC) #18
tommi
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.webrtc.org/2731703004/ by tommi@webrtc.org. ...
3 years, 9 months ago (2017-03-04 00:14:47 UTC) #19
mbonadei
3 years, 9 months ago (2017-03-04 03:36:19 UTC) #20
Message was sent while issue was closed.
On 2017/03/04 00:14:05, tommi (webrtc) wrote:
> https://codereview.webrtc.org/2728643003/diff/80001/webrtc/webrtc.gni
> File webrtc/webrtc.gni (right):
> 
>
https://codereview.webrtc.org/2728643003/diff/80001/webrtc/webrtc.gni#newcode28
> webrtc/webrtc.gni:28: assert(!is_component_build, "Component builds are not
> supported in WebRTC.")
> Although webrtc ignores the switch, we can't break chrome when it's used. This
> fails when rolling.

Yes, my bad. I always forget to add 'build_with_chromium' to isolate them from
this kind of changes.

Thanks for reverting. I've just created
https://codereview.webrtc.org/2729243003/ to address the problem.

Powered by Google App Engine
This is Rietveld 408576698