Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 import("//build/config/chromecast_build.gni") | 5 import("//build/config/chromecast_build.gni") |
| 6 | 6 |
| 7 # This args block should contain arguments used within the //chromecast | 7 # This args block should contain arguments used within the //chromecast |
| 8 # directory. Arguments which are used in other Chrome components should | 8 # directory. Arguments which are used in other Chrome components should |
| 9 # be instead declared in //build/config/chromecast_build.gni. | 9 # be instead declared in //build/config/chromecast_build.gni. |
| 10 declare_args() { | 10 declare_args() { |
| 11 # chromecast_branding is used to include or exclude Google-branded components. | 11 # chromecast_branding is used to include or exclude Google-branded components. |
| 12 # Set it to "public" for a Chromium build. | 12 # Set it to "public" for a Chromium build. |
| 13 chromecast_branding = "public" | 13 chromecast_branding = "public" |
| 14 | 14 |
| 15 # The incremental build number. The Cast automated builders will set this | 15 # The incremental build number. The Cast automated builders will set this |
| 16 # value to indicate the buildset. Note: The default value should be greater | 16 # value to indicate the buildset. Note: The default value should be greater |
| 17 # than any value the builder may assign to prevent attempted automatic updates | 17 # than any value the builder may assign to prevent attempted automatic updates |
| 18 # when the default value is used. | 18 # when the default value is used. |
| 19 cast_build_incremental = "999999" | 19 cast_build_incremental = "999999" |
| 20 | 20 |
| 21 # If true, IS_CAST_DEBUG_BUILD() will evaluate to 1 in version.h. Otherwise, | 21 # If true, IS_CAST_DEBUG_BUILD() will evaluate to 1 in version.h. Otherwise, |
| 22 # it will evaluate to 0. Overriding this when is_debug=false is useful for | 22 # it will evaluate to 0. Overriding this when is_debug=false is useful for |
| 23 # doing engineering builds. | 23 # doing engineering builds. |
| 24 cast_is_debug = is_debug | 24 cast_is_debug = is_debug |
| 25 | 25 |
| 26 # If true, Chromecast WebUI resources are included in a build. | 26 # If true, Chromecast WebUI resources are included in a build. |
| 27 # TODO(antz): default to false for audio-only builds, might need further | 27 # TODO(antz): default to false for audio-only builds, might need further |
| 28 # clean up (b/27119303) | 28 # clean up (b/27119303) |
| 29 enable_chromecast_webui = !is_cast_audio_only && !is_android | 29 enable_chromecast_webui = !is_cast_audio_only && !is_android |
| 30 | |
| 31 # Set true to enable assistant features. | |
| 32 enable_assistant = false | |
|
slan
2017/03/13 22:09:51
The assert from internal should be copied at the e
kmackay
2017/03/14 00:20:59
Done.
| |
| 30 } | 33 } |
| 31 | 34 |
| 32 declare_args() { | 35 declare_args() { |
| 33 # Use Playready CDMs for internal non-desktop builds. | 36 # Use Playready CDMs for internal non-desktop builds. |
| 34 use_playready = !is_cast_desktop_build && chromecast_branding != "public" | 37 use_playready = !is_cast_desktop_build && chromecast_branding != "public" |
| 35 } | 38 } |
| 36 | 39 |
| 37 # This is the release version, which takes the form <major>.<minor>. Internal | 40 # This is the release version, which takes the form <major>.<minor>. Internal |
| 38 # builds will read the value from an internal file containing this value as a | 41 # builds will read the value from an internal file containing this value as a |
| 39 # string. Public builds, lacking this file, will set a dummy value. | 42 # string. Public builds, lacking this file, will set a dummy value. |
| 40 if (chromecast_branding == "public") { | 43 if (chromecast_branding == "public") { |
| 41 cast_build_release = "eng." + getenv("USER") | 44 cast_build_release = "eng." + getenv("USER") |
| 42 } else { | 45 } else { |
| 43 cast_build_release = | 46 cast_build_release = |
| 44 read_file("//chromecast/internal/build/cast_build_release", "trim string") | 47 read_file("//chromecast/internal/build/cast_build_release", "trim string") |
| 45 } | 48 } |
| OLD | NEW |