[go: nahoru, domu]

blob: 4310f912e8d53b1b6f18151ddb2f2e49b6d038da [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
jameswesta0889df2017-06-06 02:53:4639
40 # Set to true on devices that support multizone. Only indicates that the
41 # device supports multizone. The command line flag --enable-multizone must
42 # still be used to enable multizone.
43 supports_multizone = is_cast_audio_only && !is_cast_desktop_build
Bryan Henry35001f812017-06-13 08:17:0744
Yves Arrouyec4785f32017-07-12 02:48:0745 # Set to true for builds targeting ARC.
46 is_android_arc = false
47
Bryan Henry35001f812017-06-13 08:17:0748 # Set true for builds targeting Android Things.
49 is_android_things = false
slanc7957aae2016-05-09 22:25:5950}
51
sanfin459cccff2016-05-12 22:26:4452declare_args() {
Nat Jeffries8db55962017-07-21 23:41:2253 # Currently android things libraries live in internal. TODO(njeff): change
54 # this when Android Things API is moved to public
55 enable_athings_loopback = is_android_things && chromecast_branding != "public"
56}
57
58declare_args() {
sanfin459cccff2016-05-12 22:26:4459 # Use Playready CDMs for internal non-desktop builds.
60 use_playready = !is_cast_desktop_build && chromecast_branding != "public"
61}
62
slanc7957aae2016-05-09 22:25:5963# This is the release version, which takes the form <major>.<minor>. Internal
64# builds will read the value from an internal file containing this value as a
65# string. Public builds, lacking this file, will set a dummy value.
66if (chromecast_branding == "public") {
67 cast_build_release = "eng." + getenv("USER")
68} else {
69 cast_build_release =
70 read_file("//chromecast/internal/build/cast_build_release", "trim string")
prashantv40251292015-04-21 21:54:2271}
Stephen Lanham3c2131cd2017-04-28 01:13:4172
73# All locales supported by Cast builds. This provides a single point of
74# reference for all GN files referencing a locales list. |locales| is declared
75# in //build/config/locales.gni.
76cast_locales = locales
Stephen Lanhambd378622017-07-20 14:29:3977
78# These templates are a temporary fix fo link libc++ into shared libraries and
79# executables. These should be removed as soon as crbug.com/746091 is resolved.
80template("cast_shared_library") {
81 shared_library(target_name) {
82 forward_variables_from(invoker, "*")
83 if (!defined(deps)) {
84 deps = []
85 }
86 deps += [ "//build/config:exe_and_shlib_deps" ]
87 }
88}
89
90template("cast_executable") {
91 executable(target_name) {
92 forward_variables_from(invoker, "*")
93 if (!defined(deps)) {
94 deps = []
95 }
96 deps += [ "//build/config:exe_and_shlib_deps" ]
97 }
98}