| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 assert(!is_ios) # TODO(sfiera): support iOS http://crbug.com/617966 |
| 6 |
| 7 if (is_android) { |
| 8 import("//build/config/android/rules.gni") |
| 9 } |
| 10 |
| 5 # GYP version: components/ntp_tiles.gypi:ntp_tiles | 11 # GYP version: components/ntp_tiles.gypi:ntp_tiles |
| 6 source_set("ntp_tiles") { | 12 source_set("ntp_tiles") { |
| 7 sources = [ | 13 sources = [ |
| 14 "most_visited_sites.cc", |
| 15 "most_visited_sites.h", |
| 16 "popular_sites.cc", |
| 17 "popular_sites.h", |
| 8 "pref_names.cc", | 18 "pref_names.cc", |
| 9 "pref_names.h", | 19 "pref_names.h", |
| 10 "switches.cc", | 20 "switches.cc", |
| 11 "switches.h", | 21 "switches.h", |
| 12 ] | 22 ] |
| 13 | 23 |
| 14 public_deps = [ | 24 public_deps = [ |
| 15 "//base", | 25 "//base", |
| 26 "//components/history/core/browser", |
| 27 "//components/suggestions", |
| 28 ] |
| 29 deps = [ |
| 30 "//components/google/core/browser", |
| 31 "//components/pref_registry", |
| 32 "//components/prefs", |
| 33 "//components/safe_json", |
| 34 "//components/search_engines", |
| 35 "//components/variations", |
| 36 "//components/variations/service", |
| 16 ] | 37 ] |
| 17 } | 38 } |
| 39 |
| 40 source_set("unit_tests") { |
| 41 testonly = true |
| 42 sources = [ |
| 43 "most_visited_sites_unittest.cc", |
| 44 ] |
| 45 |
| 46 deps = [ |
| 47 ":ntp_tiles", |
| 48 "//testing/gtest", |
| 49 ] |
| 50 } |
| 51 |
| 52 if (is_android) { |
| 53 java_cpp_enum("ntp_tiles_enums_java") { |
| 54 sources = [ |
| 55 "most_visited_sites.cc", |
| 56 ] |
| 57 } |
| 58 } |
| OLD | NEW |