summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/apps/app_shim/BUILD.gn
blob: 19aa43bb16fbb169ad5d54db4278d55f9330e357 (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
# Copyright 2015 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("//extensions/buildflags/buildflags.gni")

# This is the part of the Chrome browser process responsible for launching and
# communicating with app_shim processes on Mac.
source_set("app_shim") {
  sources = [
    "app_shim_handler_mac.cc",
    "app_shim_handler_mac.h",
    "app_shim_host_mac.cc",
    "app_shim_host_mac.h",
    "app_shim_host_manager_mac.h",
    "app_shim_host_manager_mac.mm",
    "apps_page_shim_handler.h",
    "apps_page_shim_handler.mm",
    "unix_domain_socket_acceptor.cc",
    "unix_domain_socket_acceptor.h",
  ]

  deps = [
    "//apps",
    "//chrome/browser/apps/platform_apps",
    "//chrome/browser/extensions",
    "//chrome/browser/web_applications/components",
    "//chrome/browser/web_applications/extensions",
    "//chrome/common",
    "//chrome/common:app_mode_app_support",
    "//chrome/common:constants",
    "//chrome/common:mojo_bindings",
    "//chrome/common:non_code_constants",
    "//components/crx_file",
    "//components/version_info",
    "//content/public/browser",
    "//content/public/common",
    "//ui/views:views",
  ]

  if (enable_extensions) {
    sources += [
      "extension_app_shim_handler_mac.cc",
      "extension_app_shim_handler_mac.h",
    ]

    deps += [
      "//extensions/browser",
      "//extensions/common",
    ]
  }
}