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

Side by Side Diff: build/config/chromecast_build.gni

Issue 1528533002: [Chromecast] Replace architecure-based conditionals with flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: GYP Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # This block should only contain Chromecast-specific build arguments used by 5 # This block should only contain Chromecast-specific build arguments used by
6 # by components outside of //chromecast. 6 # by components outside of //chromecast.
7 declare_args() { 7 declare_args() {
8 # Set this true for a Chromecast build. Chromecast builds are supported on 8 # Set this true for a Chromecast build. Chromecast builds are supported on
9 # Linux and Android. 9 # Linux and Android.
10 is_chromecast = false 10 is_chromecast = false
11 11
12 # True if Chromecast build is targeted for linux desktop. This type of build
13 # is useful for testing and development, but currently supports only a subset
14 # of Cast functionality. Though this defaults to true for x86 Linux devices,
15 # this should be overriden manually for an embedded x86 build.
16 # TODO(slan): Remove instances of this when x86 is a fully supported platform.
17 is_cast_desktop_build =
18 is_chromecast && is_linux && (target_cpu == "x86" || target_cpu == "x64")
19
12 # Set this true for an audio-only Chromecast build. 20 # Set this true for an audio-only Chromecast build.
13 disable_display = false 21 disable_display = false
14 } 22 }
15 23
16 # Assert that Chromecast is being built for a supported platform. 24 # Assert that Chromecast is being built for a supported platform.
17 assert(is_linux || is_android || !is_chromecast, 25 assert(is_linux || is_android || !is_chromecast,
18 "Chromecast builds are not supported on $target_os") 26 "Chromecast builds are not supported on $target_os")
19 27
20 # Assert that disable_display is not true on a non-Chromecast build. 28 # Assert that disable_display and is_cast_desktop_build are both false on a
21 assert(!disable_display || is_chromecast) 29 # non-Chromecast build.
30 assert(is_chromecast || !(disable_display || is_cast_desktop_build))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698