blob: 2deb4ad5e34efc50cb3b5a1cea9d35d6a66823b2 [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
5import("//extensions/buildflags/buildflags.gni")
6
Giovanni Ortuño Urquidi28740672018-06-20 01:03:017source_set("web_applications") {
8 sources = [
Alexey Baskakovd538ba32018-07-12 01:36:479 "web_app.cc",
10 "web_app.h",
11 "web_app_chromeos.cc",
12 "web_app_mac.h",
13 "web_app_mac.mm",
14 "web_app_win.cc",
15 "web_app_win.h",
Giovanni Ortuño Urquidi28740672018-06-20 01:03:0116 ]
17
Alexey Baskakovd538ba32018-07-12 01:36:4718 if (is_desktop_linux) {
19 # Desktop linux, doesn't count ChromeOS.
20 sources += [ "web_app_linux.cc" ]
21 }
22
Giovanni Ortuño Urquidi28740672018-06-20 01:03:0123 configs += [ "//build/config/compiler:wexit_time_destructors" ]
24
Alexey Baskakovd538ba32018-07-12 01:36:4725 # TODO(loyso): Break this dependency cycle.
26 allow_circular_includes_from = [ "//chrome/browser/extensions" ]
27
Giovanni Ortuño Urquidi28740672018-06-20 01:03:0128 deps = [
29 "//base",
30 "//chrome/browser/extensions",
Alexey Baskakovd538ba32018-07-12 01:36:4731 "//chrome/browser/web_applications/bookmark_apps",
32 "//chrome/browser/web_applications/components",
Giovanni Ortuño Urquidi28740672018-06-20 01:03:0133 "//chrome/common",
34 "//components/keyed_service/content",
35 "//components/prefs",
36 "//extensions/browser",
37 "//url",
38 ]
39}
Alexey Baskakovd538ba32018-07-12 01:36:4740
41source_set("web_applications_unit_tests") {
42 testonly = true
43
44 sources = [
45 "web_app_mac_unittest.mm",
46 "web_app_unittest.cc",
47 ]
48
49 deps = [
50 ":web_applications",
51 "//chrome/browser/extensions",
52 "//extensions/browser",
53 "//skia",
54 "//testing/gmock",
55 ]
56}
57
58source_set("unit_tests") {
59 testonly = true
60 deps = [
61 ":web_applications_unit_tests",
62 "//chrome/browser/web_applications/bookmark_apps:unit_tests",
63 ]
64}