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 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 "//base", | 14 "//base", |
| 15 "//net", | |
| 15 "//url", | 16 "//url", |
| 16 ] | 17 ] |
| 18 | |
| 19 public_deps = [ | |
| 20 ":open_from_clipboard_ios_impl", | |
|
sdefresne
2017/04/03 09:27:16
This should be "deps", not "public_deps" (as no co
lody
2017/04/04 13:42:17
Done.
| |
| 21 ] | |
| 17 } | 22 } |
| 18 | 23 |
| 24 static_library("open_from_clipboard_ios_impl") { | |
|
sdefresne
2017/04/03 09:27:16
This can be a source_set.
lody
2017/04/04 13:42:18
Done.
| |
| 25 sources = [ | |
| 26 "clipboard_recent_content_ios_impl.h", | |
| 27 "clipboard_recent_content_ios_impl.mm", | |
| 28 ] | |
| 29 | |
| 30 deps = [ | |
| 31 "//base", | |
| 32 ] | |
| 33 | |
| 34 configs += [ "//build/config/compiler:enable_arc" ] | |
|
sdefresne
2017/04/03 09:27:16
You'll need to put this configs behind "if (is_ios
lody
2017/04/04 13:42:17
Done.
| |
| 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 |