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() { |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 # 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 |
41 # 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 |
42 # string. Public builds, lacking this file, will set a dummy value. | 42 # string. Public builds, lacking this file, will set a dummy value. |
43 if (chromecast_branding == "public") { | 43 if (chromecast_branding == "public") { |
44 cast_build_release = "eng." + getenv("USER") | 44 cast_build_release = "eng." + getenv("USER") |
45 } else { | 45 } else { |
46 cast_build_release = | 46 cast_build_release = |
47 read_file("//chromecast/internal/build/cast_build_release", "trim string") | 47 read_file("//chromecast/internal/build/cast_build_release", "trim string") |
48 } | 48 } |
49 | |
50 # Assistant shall only be enabled on audio-only builds. | |
51 assert(!enable_assistant || is_cast_audio_only, | |
52 "Assistant is only available on audio devices.") | |
OLD | NEW |