OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 import("//third_party/WebKit/Source/bindings/bindings.gni") | 7 import("//third_party/WebKit/Source/bindings/bindings.gni") |
8 import("//third_party/WebKit/Source/config.gni") | 8 import("//third_party/WebKit/Source/config.gni") |
9 import("//third_party/WebKit/Source/core/core.gni") | 9 import("//third_party/WebKit/Source/core/core.gni") |
10 import("//third_party/WebKit/Source/modules/modules.gni") | 10 import("//third_party/WebKit/Source/modules/modules.gni") |
11 import("//third_party/WebKit/Source/platform/platform.gni") | 11 import("//third_party/WebKit/Source/platform/platform.gni") |
12 | 12 |
13 visibility = [ "//third_party/WebKit/*" ] | 13 visibility = [ "//third_party/WebKit/*" ] |
14 web_gypi = exec_script("//build/gypi_to_gn.py", | 14 web_gypi = exec_script("//build/gypi_to_gn.py", |
15 [ rebase_path("web.gypi") ], | 15 [ rebase_path("web.gypi") ], |
16 "scope", | 16 "scope", |
17 [ "web.gypi" ]) | 17 [ "web.gypi" ]) |
| 18 web_unittest_files = web_gypi.web_unittest_files |
18 if (!is_mac) { | 19 if (!is_mac) { |
19 # TODO(GYP): Can't link Blink binaries yet on mac. | |
20 web_unittest_files = web_gypi.web_unittest_files | |
21 web_unittest_files += [ "tests/ScrollAnimatorNoneTest.cpp" ] | 20 web_unittest_files += [ "tests/ScrollAnimatorNoneTest.cpp" ] |
22 } | 21 } |
23 | 22 |
24 component("web") { | 23 component("web") { |
25 output_name = "blink_web" | 24 output_name = "blink_web" |
26 | 25 |
27 deps = [ | 26 deps = [ |
28 "//third_party/WebKit/Source/core", | 27 "//third_party/WebKit/Source/core", |
29 "//third_party/WebKit/Source/modules", | 28 "//third_party/WebKit/Source/modules", |
30 "//third_party/WebKit/Source/platform", | 29 "//third_party/WebKit/Source/platform", |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 "WebTestingSupport.cpp", | 93 "WebTestingSupport.cpp", |
95 ] | 94 ] |
96 | 95 |
97 configs += [ "//third_party/WebKit/Source:config" ] | 96 configs += [ "//third_party/WebKit/Source:config" ] |
98 | 97 |
99 include_dirs = [ "$root_gen_dir/blink" ] | 98 include_dirs = [ "$root_gen_dir/blink" ] |
100 } | 99 } |
101 } | 100 } |
102 | 101 |
103 # GYP version: WebKit/Source/web/web_tests.gyp:webkit_unit_tests | 102 # GYP version: WebKit/Source/web/web_tests.gyp:webkit_unit_tests |
104 if (!is_mac) { | 103 test("webkit_unit_tests") { |
105 # TODO(GYP): Can't link Blink binaries yet on mac. | 104 visibility = [] # Allow re-assignment of list. |
106 test("webkit_unit_tests") { | 105 visibility = [ "*" ] |
107 visibility = [] # Allow re-assignment of list. | |
108 visibility = [ "*" ] | |
109 | 106 |
110 deps = [ | 107 deps = [ |
111 ":test_support", | 108 ":test_support", |
112 ":web", | 109 ":web", |
113 "//base", | 110 "//base", |
114 "//base/test:test_support", | 111 "//base/test:test_support", |
115 "//base:i18n", | 112 "//base:i18n", |
116 "//content/test:test_support", | 113 "//content/test:test_support", |
117 "//testing/gmock", | 114 "//testing/gmock", |
118 "//testing/gtest", | 115 "//testing/gtest", |
119 "//third_party/WebKit/Source/platform:test_support", | 116 "//third_party/WebKit/Source/platform:test_support", |
120 "//third_party/WebKit/Source/wtf:test_support", | 117 "//third_party/WebKit/Source/wtf:test_support", |
121 "//third_party/libwebp", | 118 "//third_party/libwebp", |
122 "//third_party/zlib", | 119 "//third_party/zlib", |
123 "//url", | 120 "//url", |
124 "//v8", | 121 "//v8", |
125 ] | 122 ] |
126 | 123 |
127 sources = [ | 124 sources = [ |
128 "tests/RunAllTests.cpp", | 125 "tests/RunAllTests.cpp", |
129 ] | 126 ] |
130 | 127 |
131 configs += [ "//third_party/WebKit/Source:config" ] | 128 configs += [ "//third_party/WebKit/Source:config" ] |
132 | 129 |
133 if (!is_component_build) { | 130 if (!is_component_build) { |
134 deps += [ "//third_party/WebKit/Source/core" ] | 131 deps += [ "//third_party/WebKit/Source/core" ] |
135 | 132 |
136 configs += [ "//third_party/WebKit/Source:inside_blink" ] | 133 configs += [ "//third_party/WebKit/Source:inside_blink" ] |
137 | 134 |
138 sources += web_unittest_files | 135 sources += web_unittest_files |
139 sources += bindings_unittest_files | 136 sources += bindings_unittest_files |
140 sources += core_unittest_files | 137 sources += core_unittest_files |
141 sources += modules_unittest_files | 138 sources += modules_unittest_files |
142 sources += platform_unittest_support_files | 139 sources += platform_unittest_support_files |
143 sources += platform_web_unittest_files | 140 sources += platform_web_unittest_files |
144 } | |
145 } | 141 } |
146 } | 142 } |
OLD | NEW |