blob: 7ac7fe1708661600104cbba0b1f9c7711aa32720 [file] [log] [blame]
# Copyright 2018 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("//build/config/nacl/config.gni")
component("platform") {
output_name = "mojo_cpp_platform"
public = [
"platform_channel.h",
"platform_channel_endpoint.h",
"platform_channel_server_endpoint.h",
"platform_handle.h",
"platform_handle_internal.h",
]
sources = [
"platform_channel.cc",
"platform_channel_endpoint.cc",
"platform_channel_server_endpoint.cc",
"platform_handle.cc",
]
if (is_posix && !is_mac && !is_nacl) {
public += [ "socket_utils_posix.h" ]
sources += [ "socket_utils_posix.cc" ]
}
public_deps = [
"//base",
"//mojo/public/c/system:headers",
]
if (is_posix && !is_nacl && !is_mac) {
sources += [ "named_platform_channel_posix.cc" ]
}
if (is_mac) {
sources += [ "named_platform_channel_mac.cc" ]
}
if (is_win) {
sources += [ "named_platform_channel_win.cc" ]
}
if (is_fuchsia) {
public_deps += [
"//third_party/fuchsia-sdk/sdk/pkg/fdio",
"//third_party/fuchsia-sdk/sdk/pkg/zx",
]
} else {
sources += [ "named_platform_channel.cc" ]
public += [ "named_platform_channel.h" ]
}
defines = [ "IS_MOJO_CPP_PLATFORM_IMPL" ]
}