prashantv | 4025129 | 2015-04-21 21:54:22 | [diff] [blame] | 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 |
| 3 | # found in the LICENSE file. |
| 4 | |
slan | 93f59d1d | 2015-11-13 17:46:49 | [diff] [blame] | 5 | import("//build/config/chromecast_build.gni") |
Stephen Lanham | 3c2131cd | 2017-04-28 01:13:41 | [diff] [blame] | 6 | import("//build/config/locales.gni") |
slan | 93f59d1d | 2015-11-13 17:46:49 | [diff] [blame] | 7 | |
slan | 77bdc2e6 | 2015-09-21 17:56:26 | [diff] [blame] | 8 | # This args block should contain arguments used within the //chromecast |
| 9 | # directory. Arguments which are used in other Chrome components should |
| 10 | # be instead declared in //build/config/chromecast_build.gni. |
prashantv | 4025129 | 2015-04-21 21:54:22 | [diff] [blame] | 11 | declare_args() { |
slan | 77bdc2e6 | 2015-09-21 17:56:26 | [diff] [blame] | 12 | # chromecast_branding is used to include or exclude Google-branded components. |
| 13 | # Set it to "public" for a Chromium build. |
yucliu | 48ba4153 | 2015-07-30 21:09:08 | [diff] [blame] | 14 | chromecast_branding = "public" |
prashantv | 4025129 | 2015-04-21 21:54:22 | [diff] [blame] | 15 | |
slan | c7957aae | 2016-05-09 22:25:59 | [diff] [blame] | 16 | # The incremental build number. The Cast automated builders will set this |
| 17 | # value to indicate the buildset. Note: The default value should be greater |
| 18 | # than any value the builder may assign to prevent attempted automatic updates |
| 19 | # when the default value is used. |
| 20 | cast_build_incremental = "999999" |
bshaya | 1ba19b6 | 2016-08-04 18:50:42 | [diff] [blame] | 21 | |
| 22 | # If true, IS_CAST_DEBUG_BUILD() will evaluate to 1 in version.h. Otherwise, |
| 23 | # it will evaluate to 0. Overriding this when is_debug=false is useful for |
| 24 | # doing engineering builds. |
| 25 | cast_is_debug = is_debug |
gfhuang | 79ceb4f | 2016-09-07 06:43:03 | [diff] [blame] | 26 | |
thoren | 9540c6d | 2017-05-22 20:07:04 | [diff] [blame^] | 27 | if (is_android) { |
| 28 | # If true, run receiver apps in an Android service instead of an activity. |
| 29 | display_web_contents_in_service = is_cast_audio_only |
| 30 | } |
| 31 | |
gfhuang | 79ceb4f | 2016-09-07 06:43:03 | [diff] [blame] | 32 | # If true, Chromecast WebUI resources are included in a build. |
| 33 | # TODO(antz): default to false for audio-only builds, might need further |
| 34 | # clean up (b/27119303) |
| 35 | enable_chromecast_webui = !is_cast_audio_only && !is_android |
kmackay | 3801f1a | 2017-03-15 01:24:32 | [diff] [blame] | 36 | |
| 37 | # Set true to enable assistant features. |
| 38 | enable_assistant = false |
slan | c7957aae | 2016-05-09 22:25:59 | [diff] [blame] | 39 | } |
| 40 | |
sanfin | 459cccff | 2016-05-12 22:26:44 | [diff] [blame] | 41 | declare_args() { |
| 42 | # Use Playready CDMs for internal non-desktop builds. |
| 43 | use_playready = !is_cast_desktop_build && chromecast_branding != "public" |
| 44 | } |
| 45 | |
slan | c7957aae | 2016-05-09 22:25:59 | [diff] [blame] | 46 | # This is the release version, which takes the form <major>.<minor>. Internal |
| 47 | # builds will read the value from an internal file containing this value as a |
| 48 | # string. Public builds, lacking this file, will set a dummy value. |
| 49 | if (chromecast_branding == "public") { |
| 50 | cast_build_release = "eng." + getenv("USER") |
| 51 | } else { |
| 52 | cast_build_release = |
| 53 | read_file("//chromecast/internal/build/cast_build_release", "trim string") |
prashantv | 4025129 | 2015-04-21 21:54:22 | [diff] [blame] | 54 | } |
Stephen Lanham | 3c2131cd | 2017-04-28 01:13:41 | [diff] [blame] | 55 | |
| 56 | # All locales supported by Cast builds. This provides a single point of |
| 57 | # reference for all GN files referencing a locales list. |locales| is declared |
| 58 | # in //build/config/locales.gni. |
| 59 | cast_locales = locales |