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 | |
| 5 | import("//extensions/buildflags/buildflags.gni") |
| 6 | |
Giovanni Ortuño Urquidi | 2874067 | 2018-06-20 01:03:01 | [diff] [blame] | 7 | source_set("web_applications") { |
| 8 | sources = [ |
Alexey Baskakov | d538ba3 | 2018-07-12 01:36:47 | [diff] [blame^] | 9 | "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 Urquidi | 2874067 | 2018-06-20 01:03:01 | [diff] [blame] | 16 | ] |
| 17 | |
Alexey Baskakov | d538ba3 | 2018-07-12 01:36:47 | [diff] [blame^] | 18 | if (is_desktop_linux) { |
| 19 | # Desktop linux, doesn't count ChromeOS. |
| 20 | sources += [ "web_app_linux.cc" ] |
| 21 | } |
| 22 | |
Giovanni Ortuño Urquidi | 2874067 | 2018-06-20 01:03:01 | [diff] [blame] | 23 | configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 24 | |
Alexey Baskakov | d538ba3 | 2018-07-12 01:36:47 | [diff] [blame^] | 25 | # TODO(loyso): Break this dependency cycle. |
| 26 | allow_circular_includes_from = [ "//chrome/browser/extensions" ] |
| 27 | |
Giovanni Ortuño Urquidi | 2874067 | 2018-06-20 01:03:01 | [diff] [blame] | 28 | deps = [ |
| 29 | "//base", |
| 30 | "//chrome/browser/extensions", |
Alexey Baskakov | d538ba3 | 2018-07-12 01:36:47 | [diff] [blame^] | 31 | "//chrome/browser/web_applications/bookmark_apps", |
| 32 | "//chrome/browser/web_applications/components", |
Giovanni Ortuño Urquidi | 2874067 | 2018-06-20 01:03:01 | [diff] [blame] | 33 | "//chrome/common", |
| 34 | "//components/keyed_service/content", |
| 35 | "//components/prefs", |
| 36 | "//extensions/browser", |
| 37 | "//url", |
| 38 | ] |
| 39 | } |
Alexey Baskakov | d538ba3 | 2018-07-12 01:36:47 | [diff] [blame^] | 40 | |
| 41 | source_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 | |
| 58 | source_set("unit_tests") { |
| 59 | testonly = true |
| 60 | deps = [ |
| 61 | ":web_applications_unit_tests", |
| 62 | "//chrome/browser/web_applications/bookmark_apps:unit_tests", |
| 63 | ] |
| 64 | } |