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

Issue 1528533002: [Chromecast] Replace architecure-based conditionals with flag. (Closed)

Created:
5 years ago by slan
Modified:
5 years ago
CC:
chromium-reviews, gunsch+watch_chromium.org, lcwu+watch_chromium.org, ozone-reviews_chromium.org, halliwell+watch_chromium.org, kalyank
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chromecast] Replace architecture-based conditionals with flag. Chromecast has historically used the target architecture as a proxy for the type of device targeted (embedded vs. desktop). Looking to the future, the decisions should be made on a per-feature basis and should be independent of the architecture. Replace each of the architecture conditionals with a flag that indicates Cast is being built for desktop. BUG= Committed: https://crrev.com/5fcffc49276168c1e80ca5f0ba6d1c13fdd8dd02 Cr-Commit-Position: refs/heads/master@{#365452}

Patch Set 1 #

Patch Set 2 : Add remaining instances #

Total comments: 4

Patch Set 3 : GN corrections #

Patch Set 4 : GYP #

Total comments: 11

Patch Set 5 : nit #

Patch Set 6 : Correct declare_args bug. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -17 lines) Patch
M build/common.gypi View 1 2 3 4 4 chunks +10 lines, -1 line 0 comments Download
M build/config/chromecast_build.gni View 1 2 3 4 5 2 chunks +19 lines, -4 lines 0 comments Download
M chromecast/BUILD.gn View 2 chunks +3 lines, -2 lines 2 comments Download
M chromecast/chromecast.gni View 1 chunk +0 lines, -3 lines 0 comments Download
M chromecast/chromecast_tests.gypi View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M media/media.gyp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/media_options.gni View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/midi/midi.gyp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/ozone.gni View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 34 (10 generated)
slan
PS2 cleans up all the GN instances. GYP coming in next PS.
5 years ago (2015-12-15 01:40:06 UTC) #2
halliwell
On 2015/12/15 01:40:06, slan wrote: > PS2 cleans up all the GN instances. GYP coming ...
5 years ago (2015-12-15 02:18:39 UTC) #3
halliwell
https://codereview.chromium.org/1528533002/diff/20001/media/media_options.gni File media/media_options.gni (right): https://codereview.chromium.org/1528533002/diff/20001/media/media_options.gni#newcode41 media/media_options.gni:41: is_cast_dekstop_build) { fix "dekstop" https://codereview.chromium.org/1528533002/diff/20001/ui/ozone/ozone.gni File ui/ozone/ozone.gni (right): https://codereview.chromium.org/1528533002/diff/20001/ui/ozone/ozone.gni#newcode46 ...
5 years ago (2015-12-15 02:18:46 UTC) #4
slan
On 2015/12/15 02:18:39, halliwell wrote: > On 2015/12/15 01:40:06, slan wrote: > > PS2 cleans ...
5 years ago (2015-12-15 02:50:54 UTC) #6
slan
GYP fixes still on the way, sometime later tonight. https://codereview.chromium.org/1528533002/diff/20001/media/media_options.gni File media/media_options.gni (right): https://codereview.chromium.org/1528533002/diff/20001/media/media_options.gni#newcode41 media/media_options.gni:41: ...
5 years ago (2015-12-15 03:11:12 UTC) #7
slan
GYP updated, please take a look. Stephen, please give the GYP build a go for ...
5 years ago (2015-12-15 03:52:30 UTC) #8
slan
Excluding the declaration of the flag itself, there are only three callsites for this flag: ...
5 years ago (2015-12-15 04:15:24 UTC) #9
halliwell
https://codereview.chromium.org/1528533002/diff/60001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1528533002/diff/60001/build/common.gypi#newcode2404 build/common.gypi:2404: ['OS=="linux" and is_cast_desktop_build==1', { no need for OS=="linux" here. ...
5 years ago (2015-12-15 15:41:55 UTC) #10
slan
https://codereview.chromium.org/1528533002/diff/60001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1528533002/diff/60001/build/common.gypi#newcode2404 build/common.gypi:2404: ['OS=="linux" and is_cast_desktop_build==1', { On 2015/12/15 15:41:55, halliwell wrote: ...
5 years ago (2015-12-15 15:59:35 UTC) #11
halliwell
On 2015/12/15 15:59:35, slan wrote: > https://codereview.chromium.org/1528533002/diff/60001/build/common.gypi > File build/common.gypi (right): > > https://codereview.chromium.org/1528533002/diff/60001/build/common.gypi#newcode2404 > ...
5 years ago (2015-12-15 16:09:12 UTC) #12
halliwell
https://codereview.chromium.org/1528533002/diff/60001/media/media.gyp File media/media.gyp (right): https://codereview.chromium.org/1528533002/diff/60001/media/media.gyp#newcode16 media/media.gyp:16: ['(OS=="linux" or OS=="freebsd" or OS=="solaris") and (chromecast==0 or is_cast_desktop_build==1)', ...
5 years ago (2015-12-15 16:09:18 UTC) #13
spang
lgtm
5 years ago (2015-12-15 16:49:50 UTC) #15
slan
+dalecurtis@ for //media/OWNERS +dpranke@ for //build/common.gypi OWNERS Dale and Dirk, We are breaking our habit ...
5 years ago (2015-12-15 17:16:00 UTC) #16
slan
5 years ago (2015-12-15 17:16:19 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1528533002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1528533002/80001
5 years ago (2015-12-15 17:16:56 UTC) #20
DaleCurtis
Assuming spang@ has already reviewed the embedded changes media/ lgtm
5 years ago (2015-12-15 17:20:01 UTC) #21
slan
The latest PS corrects the declare_args block in //build/config/chromecast_build.gni to handle a known issue in ...
5 years ago (2015-12-15 20:51:04 UTC) #22
Dirk Pranke
On 2015/12/15 20:51:04, slan wrote: > The latest PS corrects the declare_args block in > ...
5 years ago (2015-12-15 22:40:19 UTC) #23
Dirk Pranke
lgtm
5 years ago (2015-12-15 22:40:36 UTC) #24
byungchul
https://codereview.chromium.org/1528533002/diff/100001/chromecast/BUILD.gn File chromecast/BUILD.gn (right): https://codereview.chromium.org/1528533002/diff/100001/chromecast/BUILD.gn#newcode98 chromecast/BUILD.gn:98: } else if (is_cast_desktop_build || target_os == "android") { ...
5 years ago (2015-12-15 23:14:17 UTC) #26
slan
https://codereview.chromium.org/1528533002/diff/100001/chromecast/BUILD.gn File chromecast/BUILD.gn (right): https://codereview.chromium.org/1528533002/diff/100001/chromecast/BUILD.gn#newcode98 chromecast/BUILD.gn:98: } else if (is_cast_desktop_build || target_os == "android") { ...
5 years ago (2015-12-16 02:48:01 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1528533002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1528533002/100001
5 years ago (2015-12-16 02:49:07 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years ago (2015-12-16 05:08:13 UTC) #32
commit-bot: I haz the power
5 years ago (2015-12-16 05:10:03 UTC) #34
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/5fcffc49276168c1e80ca5f0ba6d1c13fdd8dd02
Cr-Commit-Position: refs/heads/master@{#365452}

Powered by Google App Engine
This is Rietveld 408576698