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