summaryrefslogtreecommitdiff
path: root/chromium/extensions/browser/api/messaging/BUILD.gn
blob: 0252290cdc9ca4019b1adc8888327c1f1fe11088 (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
# 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("//extensions/buildflags/buildflags.gni")

assert(enable_extensions,
       "Cannot depend on extensions because enable_extensions=false.")

source_set("messaging") {
  sources = [
    "channel_endpoint.cc",
    "channel_endpoint.h",
    "extension_message_port.cc",
    "extension_message_port.h",
    "message_port.cc",
    "message_port.h",
    "message_service.cc",
    "message_service.h",
    "messaging_delegate.cc",
    "messaging_delegate.h",
    "native_message_host.cc",
    "native_message_host.h",
    "native_messaging_channel.h",
  ]

  deps = [
    "//base",
    "//content/public/browser",
    "//content/public/common",
    "//extensions/common",
    "//extensions/common/api",
  ]

  public_deps = [ "//extensions/browser:browser_sources" ]
}