| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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("//build/config/ui.gni") |
| 6 |
| 7 if (is_android) { |
| 8 import("//build/config/android/config.gni") |
| 9 import("//build/config/android/rules.gni") |
| 10 } |
| 11 |
| 5 # GYP version: components/ntp_snippets.gypi:ntp_snippets | 12 # GYP version: components/ntp_snippets.gypi:ntp_snippets |
| 6 source_set("ntp_snippets") { | 13 source_set("ntp_snippets") { |
| 7 sources = [ | 14 sources = [ |
| 8 "ntp_snippet.cc", | 15 "ntp_snippet.cc", |
| 9 "ntp_snippet.h", | 16 "ntp_snippet.h", |
| 10 "ntp_snippets_constants.cc", | 17 "ntp_snippets_constants.cc", |
| 11 "ntp_snippets_constants.h", | 18 "ntp_snippets_constants.h", |
| 12 "ntp_snippets_database.cc", | 19 "ntp_snippets_database.cc", |
| 13 "ntp_snippets_database.h", | 20 "ntp_snippets_database.h", |
| 14 "ntp_snippets_fetcher.cc", | 21 "ntp_snippets_fetcher.cc", |
| 15 "ntp_snippets_fetcher.h", | 22 "ntp_snippets_fetcher.h", |
| 16 "ntp_snippets_scheduler.h", | 23 "ntp_snippets_scheduler.h", |
| 17 "ntp_snippets_service.cc", | 24 "ntp_snippets_service.cc", |
| 18 "ntp_snippets_service.h", | 25 "ntp_snippets_service.h", |
| 26 "ntp_snippets_status_service.cc", |
| 27 "ntp_snippets_status_service.h", |
| 19 "pref_names.cc", | 28 "pref_names.cc", |
| 20 "pref_names.h", | 29 "pref_names.h", |
| 21 "switches.cc", | 30 "switches.cc", |
| 22 "switches.h", | 31 "switches.h", |
| 23 ] | 32 ] |
| 24 | 33 |
| 25 public_deps = [ | 34 public_deps = [ |
| 26 "//base", | 35 "//base", |
| 27 "//components/keyed_service/core", | 36 "//components/keyed_service/core", |
| 28 "//components/leveldb_proto", | 37 "//components/leveldb_proto", |
| (...skipping 10 matching lines...) Expand all Loading... |
| 39 "//components/data_use_measurement/core", | 48 "//components/data_use_measurement/core", |
| 40 "//components/image_fetcher", | 49 "//components/image_fetcher", |
| 41 "//components/metrics", | 50 "//components/metrics", |
| 42 "//components/ntp_snippets/proto", | 51 "//components/ntp_snippets/proto", |
| 43 "//components/variations", | 52 "//components/variations", |
| 44 "//third_party/icu/", | 53 "//third_party/icu/", |
| 45 "//ui/gfx", | 54 "//ui/gfx", |
| 46 ] | 55 ] |
| 47 } | 56 } |
| 48 | 57 |
| 58 if (is_android) { |
| 59 java_cpp_enum("ntp_snippets_java_enums_srcjar") { |
| 60 sources = [ |
| 61 "ntp_snippets_status_service.h", |
| 62 ] |
| 63 } |
| 64 } |
| 65 |
| 49 source_set("unit_tests") { | 66 source_set("unit_tests") { |
| 50 testonly = true | 67 testonly = true |
| 51 sources = [ | 68 sources = [ |
| 52 "ntp_snippets_database_unittest.cc", | 69 "ntp_snippets_database_unittest.cc", |
| 53 "ntp_snippets_fetcher_unittest.cc", | 70 "ntp_snippets_fetcher_unittest.cc", |
| 54 "ntp_snippets_service_unittest.cc", | 71 "ntp_snippets_service_unittest.cc", |
| 72 "ntp_snippets_status_service_unittest.cc", |
| 73 "ntp_snippets_test_utils.cc", |
| 74 "ntp_snippets_test_utils.h", |
| 55 ] | 75 ] |
| 56 | 76 |
| 57 deps = [ | 77 deps = [ |
| 58 ":ntp_snippets", | 78 ":ntp_snippets", |
| 59 "//base", | 79 "//base", |
| 60 "//base/test:test_support", | 80 "//base/test:test_support", |
| 61 "//components/image_fetcher", | 81 "//components/image_fetcher", |
| 62 "//components/leveldb_proto:test_support", | 82 "//components/leveldb_proto:test_support", |
| 63 "//components/signin/core/browser:test_support", | 83 "//components/signin/core/browser:test_support", |
| 84 "//components/signin/core/common", |
| 64 "//components/sync_driver:test_support", | 85 "//components/sync_driver:test_support", |
| 65 "//net:test_support", | 86 "//net:test_support", |
| 66 "//testing/gtest", | 87 "//testing/gtest", |
| 67 "//third_party/icu/", | 88 "//third_party/icu/", |
| 68 ] | 89 ] |
| 69 } | 90 } |
| OLD | NEW |