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("//chrome/version.gni") # TODO layering violation! | 5 import("//chrome/version.gni") # TODO layering violation! |
| 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() { |
|
slan
2016/08/29 03:11:20
Simeon, I take back my earlier comment, could we d
| |
| 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-4]. |
| 16 cast_product_type = 0 | 16 cast_product_type = -1 |
| 17 } | |
| 18 | |
| 19 if (is_android) { | |
| 20 assert(cast_product_type == -1) | |
| 21 cast_product_type = 4 | |
| 17 } | 22 } |
| 18 | 23 |
| 19 assert(cast_product_type >= 0 && cast_product_type <= 4) | 24 assert(cast_product_type >= 0 && cast_product_type <= 4) |
| 20 | 25 |
| 21 # GYP target: chromecast.gyp:cast_base | 26 # GYP target: chromecast.gyp:cast_base |
| 22 source_set("base") { | 27 source_set("base") { |
| 23 sources = [ | 28 sources = [ |
| 24 "android/dumpstate_writer.cc", | 29 "android/dumpstate_writer.cc", |
| 25 "android/dumpstate_writer.h", | 30 "android/dumpstate_writer.h", |
| 26 "android/system_time_change_notifier_android.cc", | 31 "android/system_time_change_notifier_android.cc", |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 237 "$java_src_dir/org/chromium/chromecast/base/ChromecastConfigAndroid.java", | 242 "$java_src_dir/org/chromium/chromecast/base/ChromecastConfigAndroid.java", |
| 238 "$java_src_dir/org/chromium/chromecast/base/DumpstateWriter.java", | 243 "$java_src_dir/org/chromium/chromecast/base/DumpstateWriter.java", |
| 239 "$java_src_dir/org/chromium/chromecast/base/SystemTimeChangeNotifierAndroi d.java", | 244 "$java_src_dir/org/chromium/chromecast/base/SystemTimeChangeNotifierAndroi d.java", |
| 240 ] | 245 ] |
| 241 | 246 |
| 242 deps = [ | 247 deps = [ |
| 243 "//base:base_java", | 248 "//base:base_java", |
| 244 ] | 249 ] |
| 245 } | 250 } |
| 246 } | 251 } |
| OLD | NEW |