[go: nahoru, domu]

blob: 64d3f74bc14ea7e6337a939d4cd2f3354154b655 [file] [log] [blame]
prashantv40251292015-04-21 21:54:221# 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
slan93f59d1d2015-11-13 17:46:495import("//build/config/chromecast_build.gni")
Stephen Lanham3c2131cd2017-04-28 01:13:416import("//build/config/locales.gni")
slan93f59d1d2015-11-13 17:46:497
slan77bdc2e62015-09-21 17:56:268# 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.
prashantv40251292015-04-21 21:54:2211declare_args() {
slan77bdc2e62015-09-21 17:56:2612 # chromecast_branding is used to include or exclude Google-branded components.
13 # Set it to "public" for a Chromium build.
yucliu48ba41532015-07-30 21:09:0814 chromecast_branding = "public"
prashantv40251292015-04-21 21:54:2215
slanc7957aae2016-05-09 22:25:5916 # 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"
bshaya1ba19b62016-08-04 18:50:4221
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
gfhuang79ceb4f2016-09-07 06:43:0326
thoren9540c6d2017-05-22 20:07:0427 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
gfhuang79ceb4f2016-09-07 06:43:0332 # 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
kmackay3801f1a2017-03-15 01:24:3236
37 # Set true to enable assistant features.
38 enable_assistant = false
slanc7957aae2016-05-09 22:25:5939}
40
sanfin459cccff2016-05-12 22:26:4441declare_args() {
42 # Use Playready CDMs for internal non-desktop builds.
43 use_playready = !is_cast_desktop_build && chromecast_branding != "public"
44}
45
slanc7957aae2016-05-09 22:25:5946# 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.
49if (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")
prashantv40251292015-04-21 21:54:2254}
Stephen Lanham3c2131cd2017-04-28 01:13:4155
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.
59cast_locales = locales