blob: c7b41bfda8abc0f3c8913732be18d712652e4437 [file] [log] [blame]
Giovanni Ortuño Urquidi28740672018-06-20 01:03:011# 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 Baskakov51e63522018-07-31 05:49:415group("web_app_group") {
6 public_configs = [ "//build/config/compiler:wexit_time_destructors" ]
7}
8
Giovanni Ortuño Urquidi28740672018-06-20 01:03:019source_set("web_applications") {
10 sources = [
Alexey Baskakovac8c4b02018-11-07 06:10:0211 "abstract_web_app_database.h",
Alexey Baskakovfd3894e2018-10-16 06:09:5812 "web_app.cc",
13 "web_app.h",
Alexey Baskakovac8c4b02018-11-07 06:10:0214 "web_app_database.cc",
15 "web_app_database.h",
16 "web_app_database_factory.cc",
17 "web_app_database_factory.h",
Alexey Baskakovfd3894e2018-10-16 06:09:5818 "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 Baskakovac8c4b02018-11-07 06:10:0230 "//components/sync",
Alexey Baskakovfd3894e2018-10-16 06:09:5831 "//content/public/browser",
32 "//skia",
33 ]
Alexey Baskakovac8c4b02018-11-07 06:10:0234
35 public_deps = [
36 "//chrome/browser/web_applications/proto",
37 ]
Alexey Baskakovfd3894e2018-10-16 06:09:5838}
39
40source_set("web_applications_test_support") {
41 testonly = true
42
43 sources = [
44 "test/test_data_retriever.cc",
45 "test/test_data_retriever.h",
Alexey Baskakovac8c4b02018-11-07 06:10:0246 "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 Baskakovfd3894e2018-10-16 06:09:5850 "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 Baskakovac8c4b02018-11-07 06:10:0259 "//components/sync:test_support_model",
Alexey Baskakovfd3894e2018-10-16 06:09:5860 "//testing/gtest",
61 ]
62}
63
64source_set("web_applications_unit_tests") {
65 testonly = true
66
67 sources = [
Alexey Baskakovac8c4b02018-11-07 06:10:0268 "web_app_database_unittest.cc",
Alexey Baskakovfd3894e2018-10-16 06:09:5869 "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
90source_set("web_applications_on_extensions") {
91 sources = [
Nigel Tao192c3302018-07-19 15:17:2892 "web_app_provider.cc",
93 "web_app_provider.h",
94 "web_app_provider_factory.cc",
95 "web_app_provider_factory.h",
Giovanni Ortuño Urquidi28740672018-06-20 01:03:0196 ]
97
Giovanni Ortuño Urquidi28740672018-06-20 01:03:0198 deps = [
Alexey Baskakov51e63522018-07-31 05:49:4199 ":web_app_group",
Alexey Baskakovfd3894e2018-10-16 06:09:58100 ":web_applications",
Nigel Tao192c3302018-07-19 15:17:28101 "//chrome/browser/web_applications/bookmark_apps",
Alexey Baskakov3f6c31f02018-08-23 00:28:09102 "//chrome/browser/web_applications/components",
103 "//chrome/browser/web_applications/extensions",
Nigel Tao192c3302018-07-19 15:17:28104 "//chrome/common",
Alexey Baskakov3f6c31f02018-08-23 00:28:09105 "//components/keyed_service/content",
106 "//extensions/browser",
Alexey Baskakovd538ba32018-07-12 01:36:47107 ]
108}
109
110source_set("unit_tests") {
111 testonly = true
Alexey Baskakov51e63522018-07-31 05:49:41112
Alexey Baskakovd538ba32018-07-12 01:36:47113 deps = [
Alexey Baskakov51e63522018-07-31 05:49:41114 ":web_app_group",
Alexey Baskakovfd3894e2018-10-16 06:09:58115 ":web_applications_unit_tests",
Alexey Baskakovd538ba32018-07-12 01:36:47116 "//chrome/browser/web_applications/bookmark_apps:unit_tests",
Alexey Baskakov243d73352018-07-30 06:05:09117 "//chrome/browser/web_applications/components:unit_tests",
Giovanni Ortuño Urquidi271650d52018-07-25 03:48:32118 "//chrome/browser/web_applications/extensions:unit_tests",
Alexey Baskakovd538ba32018-07-12 01:36:47119 ]
120}
Alexey Baskakov3f6c31f02018-08-23 00:28:09121
122source_set("browser_tests") {
123 testonly = true
124
125 deps = [
126 ":web_app_group",
Christopher Lam811c66752018-10-23 03:06:37127 "//chrome/browser/web_applications/bookmark_apps:browser_tests",
Alexey Baskakov3f6c31f02018-08-23 00:28:09128 "//chrome/browser/web_applications/extensions:browser_tests",
129 ]
130}