blob: 2f4314d4e4af642e6fbf5ee24c193923ac83b4d3 [file] [log] [blame]
# Copyright 2017 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/jumbo.gni")
import("//mojo/public/tools/bindings/mojom.gni")
import("//third_party/WebKit/Source/core/core.gni")
blink_core_sources("mojo") {
sources = [
"Mojo.cpp",
"Mojo.h",
"MojoHandle.cpp",
"MojoHandle.h",
"MojoWatcher.cpp",
"MojoWatcher.h",
"test/MojoInterfaceInterceptor.cpp",
"test/MojoInterfaceInterceptor.h",
"test/MojoInterfaceRequestEvent.cpp",
"test/MojoInterfaceRequestEvent.h",
]
deps = [
"//mojo/public/cpp/system",
"//services/service_manager/public/cpp",
]
}
jumbo_source_set("unit_tests") {
testonly = true
sources = [
"tests/JsToCppTest.cpp",
]
data = [
"tests/JsToCppTest.js",
]
configs += [
"//third_party/WebKit/Source/core:blink_core_pch",
"//third_party/WebKit/Source:config",
"//third_party/WebKit/Source:inside_blink",
]
deps = [
":test_bindings_blink",
"//mojo/public/cpp/bindings",
"//testing/gtest",
"//third_party/WebKit/Source/core:core",
"//third_party/WebKit/Source/core:testing",
]
data_deps = [
":test_bindings_js_data_deps",
"//mojo/public/js:new_bindings",
]
}
mojom("test_bindings") {
sources = [
"tests/JsToCpp.mojom",
]
}