summaryrefslogtreecommitdiff
path: root/chromium/chrome/app/mash/BUILD.gn
blob: 48b2ad736119a817925ebcab2dcbd437994ba2e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//services/service_manager/public/service_manifest.gni")

source_set("mash") {
  sources = [
    "mash_runner.cc",
    "mash_runner.h",
  ]
  deps = [
    "//base:i18n",
    "//components/tracing:startup_tracing",
    "//content/public/common",
    "//mash/package",
    "//mash/session/public/interfaces:constants",
    "//services/catalog/public/interfaces",
    "//services/service_manager",
    "//services/service_manager/background:lib",
    "//services/service_manager/public/cpp",
    "//services/service_manager/public/cpp/standalone_service",
    "//services/service_manager/public/interfaces",
    "//services/service_manager/runner:init",
    "//services/service_manager/runner/common",
    "//services/service_manager/runner/host:lib",
    "//services/service_manager/standalone",
    "//url",
  ]
  data_deps = [
    ":mash_manifest",
    "//chrome/app:service_manifests",
  ]

  if (is_chromeos) {
    sources += [
      "mash_crash_reporter_client.cc",
      "mash_crash_reporter_client.h",
    ]
    deps += [
      "//ash/resources",
      "//components/crash/content/app",
      "//components/crash/core/common",
      "//components/upload_list",
      "//components/version_info:generate_version_info",
    ]
  }

  if (is_linux && !is_android) {
    deps += [ "//components/font_service:lib" ]
  }
}

service_manifest("mash_manifest") {
  name = "chrome_mash"
  source = "chrome_mash_manifest.json"
  deps = [
    "//ash/autoclick/mus:manifest",
    "//ash/touch_hud/mus:manifest",
    "//mash/catalog_viewer:manifest",
    "//mash/quick_launch:manifest",
    "//mash/session:manifest",
    "//mash/task_viewer:manifest",
    "//services/ui:manifest",
    "//services/ui/ime/test_ime_driver:manifest",
  ]
  packaged_services = [
    "accessibility_autoclick",
    "catalog_viewer",
    "mash_session",
    "quick_launch",
    "task_viewer",
    "test_ime_driver",
    "touch_hud",
    "ui",
  ]

  if (is_chromeos) {
    deps += [ "//ash/mus:manifest" ]
    packaged_services += [ "ash" ]
  }

  if (is_linux && !is_android) {
    deps += [ "//components/font_service:manifest" ]
    packaged_services += [ "font_service" ]
  }
}