jianli | 4089003 | 2015-04-29 21:55:34 | [diff] [blame] | 1 | # Copyright 2014 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 | |
| 5 | # GYP version: components/gcm_driver.gypi:instance_id_driver |
jianli | 2104ce61 | 2015-05-06 00:24:34 | [diff] [blame] | 6 | source_set("instance_id") { |
jianli | 4089003 | 2015-04-29 21:55:34 | [diff] [blame] | 7 | sources = [ |
| 8 | "instance_id.cc", |
| 9 | "instance_id.h", |
| 10 | "instance_id_driver.cc", |
| 11 | "instance_id_driver.h", |
| 12 | "instance_id_impl.cc", |
| 13 | "instance_id_impl.h", |
| 14 | ] |
| 15 | |
| 16 | deps = [ |
| 17 | "//base", |
jianli | 2104ce61 | 2015-05-06 00:24:34 | [diff] [blame] | 18 | "//crypto", |
| 19 | "//components/gcm_driver", |
jianli | 4089003 | 2015-04-29 21:55:34 | [diff] [blame] | 20 | ] |
| 21 | |
| 22 | if (is_android) { |
| 23 | sources -= [ |
| 24 | "instance_id_impl.cc", |
| 25 | "instance_id_impl.h", |
| 26 | ] |
| 27 | sources += [ |
| 28 | "instance_id_android.cc", |
| 29 | "instance_id_android.h", |
| 30 | ] |
| 31 | } |
| 32 | } |
jianli | 2104ce61 | 2015-05-06 00:24:34 | [diff] [blame] | 33 | |
| 34 | source_set("test_support") { |
| 35 | testonly = true |
| 36 | sources = [ |
jianli | 10018b2d | 2015-05-11 21:14:13 | [diff] [blame^] | 37 | "fake_gcm_driver_for_instance_id.cc", |
| 38 | "fake_gcm_driver_for_instance_id.h", |
jianli | 2104ce61 | 2015-05-06 00:24:34 | [diff] [blame] | 39 | ] |
| 40 | |
| 41 | deps = [ |
| 42 | ":instance_id", |
jianli | 10018b2d | 2015-05-11 21:14:13 | [diff] [blame^] | 43 | "//components/gcm_driver:test_support", |
jianli | 2104ce61 | 2015-05-06 00:24:34 | [diff] [blame] | 44 | "//testing/gtest", |
| 45 | ] |
| 46 | } |