Chromium Code Reviews| 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/util/process_version.gni") | 5 import("//build/util/process_version.gni") |
| 6 import("//chromecast/chromecast.gni") | 6 import("//chromecast/chromecast.gni") |
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 if (is_android) { | 9 if (is_android) { |
| 10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
| 11 } | 11 } |
| 12 | 12 |
| 13 declare_args() { | 13 declare_args() { |
| 14 # Denotes the type of Cast product. This is #defined as CAST_PRODUCT_TYPE in | 14 # Denotes the type of Cast product. This is #defined as CAST_PRODUCT_TYPE in |
| 15 # version.h. This is an integer in the range [0-4]. | 15 # version.h. This is an integer in the range [0-5]. |
| 16 if (is_android) { | 16 if (is_android) { |
| 17 cast_product_type = 4 | 17 cast_product_type = 4 |
| 18 } else { | 18 } else { |
| 19 cast_product_type = 0 | 19 cast_product_type = 0 |
| 20 } | 20 } |
| 21 } | 21 } |
| 22 | 22 |
| 23 if (is_android) { | 23 if (is_android) { |
| 24 assert(cast_product_type == 4) | 24 assert(cast_product_type == 4) |
| 25 } else { | 25 } else { |
| 26 assert(cast_product_type >= 0 && cast_product_type <= 3) | 26 assert(cast_product_type >= 0 && cast_product_type <= 5) |
|
slan
2017/03/29 19:29:17
nit: This should technically be:
assert((type >=
| |
| 27 } | 27 } |
| 28 | 28 |
| 29 source_set("base") { | 29 source_set("base") { |
| 30 sources = [ | 30 sources = [ |
| 31 "alarm_manager.cc", | 31 "alarm_manager.cc", |
| 32 "alarm_manager.h", | 32 "alarm_manager.h", |
| 33 "android/dumpstate_writer.cc", | 33 "android/dumpstate_writer.cc", |
| 34 "android/dumpstate_writer.h", | 34 "android/dumpstate_writer.h", |
| 35 "android/system_time_change_notifier_android.cc", | 35 "android/system_time_change_notifier_android.cc", |
| 36 "android/system_time_change_notifier_android.h", | 36 "android/system_time_change_notifier_android.h", |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 245 "$java_src_dir/org/chromium/chromecast/base/ChromecastConfigAndroid.java", | 245 "$java_src_dir/org/chromium/chromecast/base/ChromecastConfigAndroid.java", |
| 246 "$java_src_dir/org/chromium/chromecast/base/DumpstateWriter.java", | 246 "$java_src_dir/org/chromium/chromecast/base/DumpstateWriter.java", |
| 247 "$java_src_dir/org/chromium/chromecast/base/SystemTimeChangeNotifierAndroi d.java", | 247 "$java_src_dir/org/chromium/chromecast/base/SystemTimeChangeNotifierAndroi d.java", |
| 248 ] | 248 ] |
| 249 | 249 |
| 250 deps = [ | 250 deps = [ |
| 251 "//base:base_java", | 251 "//base:base_java", |
| 252 ] | 252 ] |
| 253 } | 253 } |
| 254 } | 254 } |
| OLD | NEW |