Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1298)

Unified Diff: Source/web/BUILD.gn

Issue 466593002: GN: Fixes for component build (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | public/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/BUILD.gn
diff --git a/Source/web/BUILD.gn b/Source/web/BUILD.gn
index 0a6feb99d7d8f168168cbe9e37f3f1a001c22783..aba9ce83d0470c3e014dd08207a3581fdfc7bd44 100644
--- a/Source/web/BUILD.gn
+++ b/Source/web/BUILD.gn
@@ -47,6 +47,28 @@ component("web") {
if (!use_default_render_theme) {
sources -= [ "default/WebRenderTheme.cpp" ]
}
+
+ if (is_component_build) {
+ deps += [
+ "//base/test:test_support",
+ "//testing/gmock",
+ "//testing/gtest",
+ "//third_party/WebKit/Source/core:testing",
+ "//third_party/WebKit/Source/modules:modules_testing",
+ ]
+
+ configs -= [
+ "//third_party/WebKit/Source:non_test_config",
+ ]
+
+ sources += web_gypi.web_unittest_files
+ sources += bindings_unittest_files
+ sources += core_unittest_files
+ sources += modules_unittest_files
+ sources += platform_web_unittest_files
+
+ sources += [ "WebTestingSupport.cpp" ]
+ }
}
# GYP version: WebKit/Source/web/web.gyp:blink_web_test_support
@@ -69,8 +91,6 @@ source_set("test_support") {
}
}
-# TODO(GYP): Enable when //content/test:test_support links.
-if (false) {
# GYP version: WebKit/Source/web/web_tests.gyp:webkit_unit_tests
test("webkit_unit_tests") {
deps = [
@@ -87,10 +107,12 @@ test("webkit_unit_tests") {
"//third_party/zlib",
"//url",
"//v8",
- ]
+ ]
sources = [ "tests/RunAllTests.cpp" ]
+ configs += [ "//third_party/WebKit/Source:config" ]
+
if (!is_component_build) {
deps += [ "//third_party/WebKit/Source/core" ]
@@ -103,4 +125,3 @@ test("webkit_unit_tests") {
sources += platform_web_unittest_files
}
}
-}
« no previous file with comments | « no previous file | public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698