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("//third_party/WebKit/Source/bindings/bindings.gni") | 6 import("//third_party/WebKit/Source/bindings/bindings.gni") |
7 import("//third_party/WebKit/Source/config.gni") | 7 import("//third_party/WebKit/Source/config.gni") |
8 import("//third_party/WebKit/Source/core/core.gni") | 8 import("//third_party/WebKit/Source/core/core.gni") |
9 import("//third_party/WebKit/Source/modules/modules.gni") | 9 import("//third_party/WebKit/Source/modules/modules.gni") |
10 import("//third_party/WebKit/Source/platform/platform.gni") | 10 import("//third_party/WebKit/Source/platform/platform.gni") |
(...skipping 29 matching lines...) Expand all Loading... |
40 "//third_party/WebKit/Source:config", | 40 "//third_party/WebKit/Source:config", |
41 "//third_party/WebKit/Source:inside_blink", | 41 "//third_party/WebKit/Source:inside_blink", |
42 "//third_party/WebKit/Source:non_test_config", | 42 "//third_party/WebKit/Source:non_test_config", |
43 ] | 43 ] |
44 | 44 |
45 sources = web_gypi.web_files | 45 sources = web_gypi.web_files |
46 | 46 |
47 if (!use_default_render_theme) { | 47 if (!use_default_render_theme) { |
48 sources -= [ "default/WebRenderTheme.cpp" ] | 48 sources -= [ "default/WebRenderTheme.cpp" ] |
49 } | 49 } |
| 50 |
| 51 if (is_component_build) { |
| 52 deps += [ |
| 53 "//base/test:test_support", |
| 54 "//testing/gmock", |
| 55 "//testing/gtest", |
| 56 "//third_party/WebKit/Source/core:testing", |
| 57 "//third_party/WebKit/Source/modules:modules_testing", |
| 58 ] |
| 59 |
| 60 configs -= [ |
| 61 "//third_party/WebKit/Source:non_test_config", |
| 62 ] |
| 63 |
| 64 sources += web_gypi.web_unittest_files |
| 65 sources += bindings_unittest_files |
| 66 sources += core_unittest_files |
| 67 sources += modules_unittest_files |
| 68 sources += platform_web_unittest_files |
| 69 |
| 70 sources += [ "WebTestingSupport.cpp" ] |
| 71 } |
50 } | 72 } |
51 | 73 |
52 # GYP version: WebKit/Source/web/web.gyp:blink_web_test_support | 74 # GYP version: WebKit/Source/web/web.gyp:blink_web_test_support |
53 source_set("test_support") { | 75 source_set("test_support") { |
54 if (!is_component_build) { | 76 if (!is_component_build) { |
55 deps = [ | 77 deps = [ |
56 "//skia", | 78 "//skia", |
57 "//third_party/WebKit/Source/core:testing", | 79 "//third_party/WebKit/Source/core:testing", |
58 "//third_party/WebKit/Source/modules:modules_testing", | 80 "//third_party/WebKit/Source/modules:modules_testing", |
59 "//third_party/WebKit/Source/wtf", | 81 "//third_party/WebKit/Source/wtf", |
60 ] | 82 ] |
61 | 83 |
62 sources = [ "WebTestingSupport.cpp" ] | 84 sources = [ "WebTestingSupport.cpp" ] |
63 | 85 |
64 configs -= [ "//build/config/compiler:chromium_code" ] | 86 configs -= [ "//build/config/compiler:chromium_code" ] |
65 configs += [ | 87 configs += [ |
66 "//build/config/compiler:no_chromium_code", | 88 "//build/config/compiler:no_chromium_code", |
67 "//third_party/WebKit/Source:config", | 89 "//third_party/WebKit/Source:config", |
68 ] | 90 ] |
69 } | 91 } |
70 } | 92 } |
71 | 93 |
72 # TODO(GYP): Enable when //content/test:test_support links. | |
73 if (false) { | |
74 # GYP version: WebKit/Source/web/web_tests.gyp:webkit_unit_tests | 94 # GYP version: WebKit/Source/web/web_tests.gyp:webkit_unit_tests |
75 test("webkit_unit_tests") { | 95 test("webkit_unit_tests") { |
76 deps = [ | 96 deps = [ |
77 ":test_support", | 97 ":test_support", |
78 ":web", | 98 ":web", |
79 "//base", | 99 "//base", |
80 "//base/test:test_support", | 100 "//base/test:test_support", |
81 "//base:i18n", | 101 "//base:i18n", |
82 "//content/test:test_support", | 102 "//content/test:test_support", |
83 "//testing/gmock", | 103 "//testing/gmock", |
84 "//testing/gtest", | 104 "//testing/gtest", |
85 "//third_party/WebKit/Source/wtf:test_support", | 105 "//third_party/WebKit/Source/wtf:test_support", |
86 "//third_party/libwebp", | 106 "//third_party/libwebp", |
87 "//third_party/zlib", | 107 "//third_party/zlib", |
88 "//url", | 108 "//url", |
89 "//v8", | 109 "//v8", |
90 ] | 110 ] |
91 | 111 |
92 sources = [ "tests/RunAllTests.cpp" ] | 112 sources = [ "tests/RunAllTests.cpp" ] |
93 | 113 |
| 114 configs += [ "//third_party/WebKit/Source:config" ] |
| 115 |
94 if (!is_component_build) { | 116 if (!is_component_build) { |
95 deps += [ "//third_party/WebKit/Source/core" ] | 117 deps += [ "//third_party/WebKit/Source/core" ] |
96 | 118 |
97 configs += [ "//third_party/WebKit/Source:inside_blink" ] | 119 configs += [ "//third_party/WebKit/Source:inside_blink" ] |
98 | 120 |
99 sources += web_gypi.web_unittest_files | 121 sources += web_gypi.web_unittest_files |
100 sources += bindings_unittest_files | 122 sources += bindings_unittest_files |
101 sources += core_unittest_files | 123 sources += core_unittest_files |
102 sources += modules_unittest_files | 124 sources += modules_unittest_files |
103 sources += platform_web_unittest_files | 125 sources += platform_web_unittest_files |
104 } | 126 } |
105 } | 127 } |
106 } | |
OLD | NEW |