| 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 static_library("open_from_clipboard") { | 5 static_library("open_from_clipboard") { |
| 6 sources = [ | 6 sources = [ |
| 7 "clipboard_recent_content.cc", | 7 "clipboard_recent_content.cc", |
| 8 "clipboard_recent_content.h", | 8 "clipboard_recent_content.h", |
| 9 "clipboard_recent_content_ios.h", | 9 "clipboard_recent_content_ios.h", |
| 10 "clipboard_recent_content_ios.mm", | 10 "clipboard_recent_content_ios.mm", |
| 11 ] | 11 ] |
| 12 | 12 |
| 13 deps = [ | 13 deps = [ |
| 14 ":open_from_clipboard_impl", |
| 14 "//base", | 15 "//base", |
| 16 "//net", |
| 15 "//url", | 17 "//url", |
| 16 ] | 18 ] |
| 17 } | 19 } |
| 18 | 20 |
| 21 # Helper classes used by "open_from_clipboard" target. These classes have |
| 22 # no dependencies on "//base:i18n". |
| 23 source_set("open_from_clipboard_impl") { |
| 24 sources = [ |
| 25 "clipboard_recent_content_impl_ios.h", |
| 26 "clipboard_recent_content_impl_ios.mm", |
| 27 ] |
| 28 deps = [ |
| 29 "//base", |
| 30 ] |
| 31 assert_no_deps = [ "//base:i18n" ] |
| 32 if (is_ios) { |
| 33 configs += [ "//build/config/compiler:enable_arc" ] |
| 34 } |
| 35 } |
| 36 |
| 19 static_library("test_support") { | 37 static_library("test_support") { |
| 20 testonly = true | 38 testonly = true |
| 21 sources = [ | 39 sources = [ |
| 22 "fake_clipboard_recent_content.cc", | 40 "fake_clipboard_recent_content.cc", |
| 23 "fake_clipboard_recent_content.h", | 41 "fake_clipboard_recent_content.h", |
| 24 ] | 42 ] |
| 25 | 43 |
| 26 deps = [ | 44 deps = [ |
| 27 ":open_from_clipboard", | 45 ":open_from_clipboard", |
| 28 "//base", | 46 "//base", |
| 29 "//url", | 47 "//url", |
| 30 ] | 48 ] |
| 31 } | 49 } |
| 32 | 50 |
| 33 source_set("unit_tests") { | 51 source_set("unit_tests") { |
| 34 testonly = true | 52 testonly = true |
| 35 sources = [ | 53 sources = [ |
| 36 "clipboard_recent_content_ios_unittest.mm", | 54 "clipboard_recent_content_ios_unittest.mm", |
| 37 ] | 55 ] |
| 38 | 56 |
| 39 deps = [ | 57 deps = [ |
| 40 ":open_from_clipboard", | 58 ":open_from_clipboard", |
| 41 "//base", | 59 "//base", |
| 42 "//testing/gtest", | 60 "//testing/gtest", |
| 43 ] | 61 ] |
| 44 } | 62 } |
| OLD | NEW |