blob: a1ff05a969d29edc2e8c6609b3efd86c3a5b28a0 [file] [log] [blame]
# 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("../mojo_edk.gni")
mojo_edk_source_set("platform") {
sources = [
"io_thread.h",
"message_loop.h",
"platform_handle.cc",
"platform_handle.h",
"platform_handle_watcher.h",
"scoped_platform_handle.h",
"task_runner.h",
"thread.h",
]
mojo_sdk_public_deps = [ "mojo/public/cpp/system" ]
mojo_edk_public_deps = [ "mojo/edk/util" ]
# TODO(vtl): Remove this dependency.
deps = [
"//base",
]
}
mojo_edk_source_set("test_platform") {
testonly = true
sources = [
"test_message_loops.h",
]
mojo_edk_public_deps = [ "mojo/edk/util" ]
public_deps = [
":platform",
]
}
# Note: This doesn't include tests of things that are to be implemented by the
# embedder.
mojo_edk_unittests("mojo_edk_platform_unittests") {
sources = [
"aligned_alloc_unittest.cc",
]
deps = [
":platform",
"//testing/gtest",
]
mojo_sdk_deps = [ "mojo/public/cpp/system" ]
}