naiveproxy/mojo/public/cpp/platform/BUILD.gn

40 lines
947 B
Plaintext
Raw Normal View History

2018-08-11 08:35:24 +03:00
# 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.
component("platform") {
output_name = "mojo_cpp_platform"
public = [
"named_platform_channel.h",
"platform_channel.h",
"platform_channel_endpoint.h",
"platform_channel_server_endpoint.h",
"platform_handle.h",
]
sources = [
"named_platform_channel.cc",
"named_platform_channel_win.cc",
"platform_channel.cc",
"platform_channel_endpoint.cc",
"platform_channel_server_endpoint.cc",
"platform_handle.cc",
]
public_deps = [
"//base",
]
if (is_posix && (!is_nacl && !is_fuchsia)) {
sources += [ "named_platform_channel_posix.cc" ]
}
if (is_fuchsia) {
sources += [ "named_platform_channel_fuchsia.cc" ]
public_deps += [ "//third_party/fuchsia-sdk:fdio" ]
}
defines = [ "IS_MOJO_CPP_PLATFORM_IMPL" ]
}