Giovanni Ortuño Urquidi | 2874067 | 2018-06-20 01:03:01 | [diff] [blame] | 1 | # Copyright 2018 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 | |
Alexey Baskakov | 51e6352 | 2018-07-31 05:49:41 | [diff] [blame] | 5 | group("web_app_group") { |
| 6 | public_configs = [ "//build/config/compiler:wexit_time_destructors" ] |
| 7 | } |
| 8 | |
Giovanni Ortuño Urquidi | 2874067 | 2018-06-20 01:03:01 | [diff] [blame] | 9 | source_set("web_applications") { |
| 10 | sources = [ |
Alexey Baskakov | ac8c4b0 | 2018-11-07 06:10:02 | [diff] [blame^] | 11 | "abstract_web_app_database.h", |
Alexey Baskakov | fd3894e | 2018-10-16 06:09:58 | [diff] [blame] | 12 | "web_app.cc", |
| 13 | "web_app.h", |
Alexey Baskakov | ac8c4b0 | 2018-11-07 06:10:02 | [diff] [blame^] | 14 | "web_app_database.cc", |
| 15 | "web_app_database.h", |
| 16 | "web_app_database_factory.cc", |
| 17 | "web_app_database_factory.h", |
Alexey Baskakov | fd3894e | 2018-10-16 06:09:58 | [diff] [blame] | 18 | "web_app_install_manager.cc", |
| 19 | "web_app_install_manager.h", |
| 20 | "web_app_registrar.cc", |
| 21 | "web_app_registrar.h", |
| 22 | "web_app_utils.cc", |
| 23 | "web_app_utils.h", |
| 24 | ] |
| 25 | |
| 26 | deps = [ |
| 27 | ":web_app_group", |
| 28 | "//chrome/browser/web_applications/components", |
| 29 | "//chrome/common", |
Alexey Baskakov | ac8c4b0 | 2018-11-07 06:10:02 | [diff] [blame^] | 30 | "//components/sync", |
Alexey Baskakov | fd3894e | 2018-10-16 06:09:58 | [diff] [blame] | 31 | "//content/public/browser", |
| 32 | "//skia", |
| 33 | ] |
Alexey Baskakov | ac8c4b0 | 2018-11-07 06:10:02 | [diff] [blame^] | 34 | |
| 35 | public_deps = [ |
| 36 | "//chrome/browser/web_applications/proto", |
| 37 | ] |
Alexey Baskakov | fd3894e | 2018-10-16 06:09:58 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | source_set("web_applications_test_support") { |
| 41 | testonly = true |
| 42 | |
| 43 | sources = [ |
| 44 | "test/test_data_retriever.cc", |
| 45 | "test/test_data_retriever.h", |
Alexey Baskakov | ac8c4b0 | 2018-11-07 06:10:02 | [diff] [blame^] | 46 | "test/test_web_app_database.cc", |
| 47 | "test/test_web_app_database.h", |
| 48 | "test/test_web_app_database_factory.cc", |
| 49 | "test/test_web_app_database_factory.h", |
Alexey Baskakov | fd3894e | 2018-10-16 06:09:58 | [diff] [blame] | 50 | "test/web_app_test.cc", |
| 51 | "test/web_app_test.h", |
| 52 | ] |
| 53 | |
| 54 | deps = [ |
| 55 | ":web_app_group", |
| 56 | ":web_applications", |
| 57 | "//chrome/browser/web_applications/components", |
| 58 | "//chrome/test:test_support", |
Alexey Baskakov | ac8c4b0 | 2018-11-07 06:10:02 | [diff] [blame^] | 59 | "//components/sync:test_support_model", |
Alexey Baskakov | fd3894e | 2018-10-16 06:09:58 | [diff] [blame] | 60 | "//testing/gtest", |
| 61 | ] |
| 62 | } |
| 63 | |
| 64 | source_set("web_applications_unit_tests") { |
| 65 | testonly = true |
| 66 | |
| 67 | sources = [ |
Alexey Baskakov | ac8c4b0 | 2018-11-07 06:10:02 | [diff] [blame^] | 68 | "web_app_database_unittest.cc", |
Alexey Baskakov | fd3894e | 2018-10-16 06:09:58 | [diff] [blame] | 69 | "web_app_install_manager_unittest.cc", |
| 70 | "web_app_registrar_unittest.cc", |
| 71 | ] |
| 72 | |
| 73 | deps = [ |
| 74 | ":web_app_group", |
| 75 | ":web_applications", |
| 76 | ":web_applications_test_support", |
| 77 | "//base/test:test_support", |
| 78 | "//chrome/browser", |
| 79 | "//chrome/browser/web_applications/components", |
| 80 | "//chrome/common", |
| 81 | "//chrome/test:test_support", |
| 82 | "//content/public/browser", |
| 83 | "//content/test:test_support", |
| 84 | "//skia", |
| 85 | ] |
| 86 | } |
| 87 | |
| 88 | # TODO(loyso): Erase this and move WebAppProvider into web_applications set. |
| 89 | # crbug.com/877898 |
| 90 | source_set("web_applications_on_extensions") { |
| 91 | sources = [ |
Nigel Tao | 192c330 | 2018-07-19 15:17:28 | [diff] [blame] | 92 | "web_app_provider.cc", |
| 93 | "web_app_provider.h", |
| 94 | "web_app_provider_factory.cc", |
| 95 | "web_app_provider_factory.h", |
Giovanni Ortuño Urquidi | 2874067 | 2018-06-20 01:03:01 | [diff] [blame] | 96 | ] |
| 97 | |
Giovanni Ortuño Urquidi | 2874067 | 2018-06-20 01:03:01 | [diff] [blame] | 98 | deps = [ |
Alexey Baskakov | 51e6352 | 2018-07-31 05:49:41 | [diff] [blame] | 99 | ":web_app_group", |
Alexey Baskakov | fd3894e | 2018-10-16 06:09:58 | [diff] [blame] | 100 | ":web_applications", |
Nigel Tao | 192c330 | 2018-07-19 15:17:28 | [diff] [blame] | 101 | "//chrome/browser/web_applications/bookmark_apps", |
Alexey Baskakov | 3f6c31f0 | 2018-08-23 00:28:09 | [diff] [blame] | 102 | "//chrome/browser/web_applications/components", |
| 103 | "//chrome/browser/web_applications/extensions", |
Nigel Tao | 192c330 | 2018-07-19 15:17:28 | [diff] [blame] | 104 | "//chrome/common", |
Alexey Baskakov | 3f6c31f0 | 2018-08-23 00:28:09 | [diff] [blame] | 105 | "//components/keyed_service/content", |
| 106 | "//extensions/browser", |
Alexey Baskakov | d538ba3 | 2018-07-12 01:36:47 | [diff] [blame] | 107 | ] |
| 108 | } |
| 109 | |
| 110 | source_set("unit_tests") { |
| 111 | testonly = true |
Alexey Baskakov | 51e6352 | 2018-07-31 05:49:41 | [diff] [blame] | 112 | |
Alexey Baskakov | d538ba3 | 2018-07-12 01:36:47 | [diff] [blame] | 113 | deps = [ |
Alexey Baskakov | 51e6352 | 2018-07-31 05:49:41 | [diff] [blame] | 114 | ":web_app_group", |
Alexey Baskakov | fd3894e | 2018-10-16 06:09:58 | [diff] [blame] | 115 | ":web_applications_unit_tests", |
Alexey Baskakov | d538ba3 | 2018-07-12 01:36:47 | [diff] [blame] | 116 | "//chrome/browser/web_applications/bookmark_apps:unit_tests", |
Alexey Baskakov | 243d7335 | 2018-07-30 06:05:09 | [diff] [blame] | 117 | "//chrome/browser/web_applications/components:unit_tests", |
Giovanni Ortuño Urquidi | 271650d5 | 2018-07-25 03:48:32 | [diff] [blame] | 118 | "//chrome/browser/web_applications/extensions:unit_tests", |
Alexey Baskakov | d538ba3 | 2018-07-12 01:36:47 | [diff] [blame] | 119 | ] |
| 120 | } |
Alexey Baskakov | 3f6c31f0 | 2018-08-23 00:28:09 | [diff] [blame] | 121 | |
| 122 | source_set("browser_tests") { |
| 123 | testonly = true |
| 124 | |
| 125 | deps = [ |
| 126 | ":web_app_group", |
Christopher Lam | 811c6675 | 2018-10-23 03:06:37 | [diff] [blame] | 127 | "//chrome/browser/web_applications/bookmark_apps:browser_tests", |
Alexey Baskakov | 3f6c31f0 | 2018-08-23 00:28:09 | [diff] [blame] | 128 | "//chrome/browser/web_applications/extensions:browser_tests", |
| 129 | ] |
| 130 | } |