OLD | NEW |
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//mojo/public/tools/bindings/mojom.gni") | |
6 import("//third_party/WebKit/Source/core/core.gni") | 5 import("//third_party/WebKit/Source/core/core.gni") |
7 | 6 |
8 blink_core_sources("mojo") { | 7 blink_core_sources("mojo") { |
9 sources = [ | 8 sources = [ |
10 "Mojo.cpp", | 9 "Mojo.cpp", |
11 "Mojo.h", | 10 "Mojo.h", |
12 "MojoHandle.cpp", | 11 "MojoHandle.cpp", |
13 "MojoHandle.h", | 12 "MojoHandle.h", |
14 "MojoWatcher.cpp", | 13 "MojoWatcher.cpp", |
15 "MojoWatcher.h", | 14 "MojoWatcher.h", |
16 ] | 15 ] |
17 | 16 |
18 deps = [ | 17 deps = [ |
19 "//mojo/public/cpp/system", | 18 "//mojo/public/cpp/system", |
20 ] | 19 ] |
21 } | 20 } |
22 | |
23 source_set("unit_tests") { | |
24 testonly = true | |
25 sources = [ | |
26 "tests/JsToCppTest.cpp", | |
27 ] | |
28 | |
29 data = [ | |
30 "tests/JsToCppTest.js", | |
31 ] | |
32 | |
33 configs += [ | |
34 "//third_party/WebKit/Source/core:blink_core_pch", | |
35 "//third_party/WebKit/Source:config", | |
36 "//third_party/WebKit/Source:inside_blink", | |
37 ] | |
38 | |
39 deps = [ | |
40 ":test_bindings_blink", | |
41 "//mojo/public/cpp/bindings", | |
42 "//testing/gtest", | |
43 "//third_party/WebKit/Source/core:core", | |
44 "//third_party/WebKit/Source/core:testing", | |
45 ] | |
46 | |
47 data_deps = [ | |
48 ":test_bindings", # For JS bindings: crbug.com/729649. | |
49 "//mojo/public/js:new_bindings", | |
50 ] | |
51 } | |
52 | |
53 mojom("test_bindings") { | |
54 sources = [ | |
55 "tests/JsToCpp.mojom", | |
56 ] | |
57 } | |
OLD | NEW |