• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5import("//build/config/nacl/config.gni")
6
7component("platform") {
8  output_name = "mojo_cpp_platform"
9
10  public = [
11    "named_platform_channel.h",
12    "platform_channel.h",
13    "platform_channel_endpoint.h",
14    "platform_channel_server_endpoint.h",
15    "platform_handle.h",
16  ]
17
18  sources = [
19    "named_platform_channel.cc",
20    "named_platform_channel_win.cc",
21    "platform_channel.cc",
22    "platform_channel_endpoint.cc",
23    "platform_channel_server_endpoint.cc",
24    "platform_handle.cc",
25  ]
26
27  if (is_posix && (!is_nacl || is_nacl_nonsfi)) {
28    public += [ "socket_utils_posix.h" ]
29    sources += [ "socket_utils_posix.cc" ]
30  }
31
32  public_deps = [
33    "//base",
34    "//mojo/public/c/system:headers",
35  ]
36
37  if (is_posix && (!is_nacl && !is_fuchsia)) {
38    sources += [ "named_platform_channel_posix.cc" ]
39  }
40
41  if (is_fuchsia) {
42    sources += [ "named_platform_channel_fuchsia.cc" ]
43    public_deps += [
44      "//third_party/fuchsia-sdk:fdio",
45      "//third_party/fuchsia-sdk:zx",
46    ]
47  }
48
49  defines = [ "IS_MOJO_CPP_PLATFORM_IMPL" ]
50}
51