| 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") |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 ] | 32 ] |
| 33 | 33 |
| 34 include_dirs = [ "//third_party/skia/include/utils" ] | 34 include_dirs = [ "//third_party/skia/include/utils" ] |
| 35 | 35 |
| 36 configs += [ | 36 configs += [ |
| 37 "//third_party/WebKit/Source:config", | 37 "//third_party/WebKit/Source:config", |
| 38 "//third_party/WebKit/Source:inside_blink", | 38 "//third_party/WebKit/Source:inside_blink", |
| 39 "//third_party/WebKit/Source:non_test_config", | 39 "//third_party/WebKit/Source:non_test_config", |
| 40 ] | 40 ] |
| 41 | 41 |
| 42 defines = [ "BLINK_WEB_IMPLEMENTATION=1" ] | |
| 43 | |
| 44 sources = web_gypi.web_files | 42 sources = web_gypi.web_files |
| 45 | 43 |
| 46 if (!use_default_render_theme) { | 44 if (!use_default_render_theme) { |
| 47 sources -= [ "default/WebRenderTheme.cpp" ] | 45 sources -= [ "default/WebRenderTheme.cpp" ] |
| 48 } | 46 } |
| 49 | 47 |
| 48 if (is_component_build) { |
| 49 deps += [ |
| 50 "//base/test:test_support", |
| 51 "//testing/gmock", |
| 52 "//testing/gtest", |
| 53 "//third_party/WebKit/Source/core:testing", |
| 54 "//third_party/WebKit/Source/modules:modules_testing", |
| 55 "//third_party/WebKit/Source/platform:test_support", |
| 56 "//third_party/WebKit/Source/wtf:test_support", |
| 57 ] |
| 58 |
| 59 configs -= [ "//third_party/WebKit/Source:non_test_config" ] |
| 60 |
| 61 sources += web_unittest_files |
| 62 sources += bindings_unittest_files |
| 63 sources += core_unittest_files |
| 64 sources += modules_unittest_files |
| 65 sources += platform_web_unittest_files |
| 66 |
| 67 sources += [ "WebTestingSupport.cpp" ] |
| 68 include_dirs += [ "$root_gen_dir/blink" ] |
| 69 } |
| 70 |
| 50 if (is_android) { | 71 if (is_android) { |
| 51 set_sources_assignment_filter([]) | 72 set_sources_assignment_filter([]) |
| 52 sources += [ "linux/WebFontRendering.cpp" ] | 73 sources += [ "linux/WebFontRendering.cpp" ] |
| 53 set_sources_assignment_filter(sources_assignment_filter) | 74 set_sources_assignment_filter(sources_assignment_filter) |
| 54 } | 75 } |
| 55 | 76 |
| 56 if (remove_webcore_debug_symbols) { | 77 if (remove_webcore_debug_symbols) { |
| 57 configs -= [ "//build/config/compiler:default_symbols" ] | 78 configs -= [ "//build/config/compiler:default_symbols" ] |
| 58 configs += [ "//build/config/compiler:no_symbols" ] | 79 configs += [ "//build/config/compiler:no_symbols" ] |
| 59 } | 80 } |
| 60 } | 81 } |
| 61 | 82 |
| 62 # GYP version: WebKit/Source/web/web.gyp:blink_web_test_support | 83 # GYP version: WebKit/Source/web/web.gyp:blink_web_test_support |
| 63 source_set("test_support") { | 84 source_set("test_support") { |
| 64 deps = [ | 85 if (!is_component_build) { |
| 65 "//skia", | 86 deps = [ |
| 66 "//third_party/WebKit/Source/core:testing", | 87 "//skia", |
| 67 "//third_party/WebKit/Source/modules:modules_testing", | 88 "//third_party/WebKit/Source/core:testing", |
| 68 "//third_party/WebKit/Source/wtf", | 89 "//third_party/WebKit/Source/modules:modules_testing", |
| 69 "//v8", | 90 "//third_party/WebKit/Source/wtf", |
| 70 ] | 91 "//v8", |
| 92 ] |
| 71 | 93 |
| 72 sources = [ | 94 sources = [ |
| 73 "WebTestingSupport.cpp", | 95 "WebTestingSupport.cpp", |
| 74 ] | 96 ] |
| 75 | 97 |
| 76 configs += [ "//third_party/WebKit/Source:config" ] | 98 configs += [ "//third_party/WebKit/Source:config" ] |
| 77 | 99 |
| 78 include_dirs = [ "$root_gen_dir/blink" ] | 100 include_dirs = [ "$root_gen_dir/blink" ] |
| 101 } |
| 79 } | 102 } |
| 80 | 103 |
| 81 group("webkit_unit_tests_data") { | 104 group("webkit_unit_tests_data") { |
| 82 data = [ | 105 data = [ |
| 83 "tests/data/", | 106 "tests/data/", |
| 84 "../core/paint/test_data/", | 107 "../core/paint/test_data/", |
| 85 | 108 |
| 86 # Required by some image decoder tests. | 109 # Required by some image decoder tests. |
| 87 "../platform/image-decoders/testing/", | 110 "../platform/image-decoders/testing/", |
| 88 "../../LayoutTests/fast/images/resources/", | 111 "../../LayoutTests/fast/images/resources/", |
| (...skipping 10 matching lines...) Expand all Loading... |
| 99 | 122 |
| 100 deps = [ | 123 deps = [ |
| 101 ":test_support", | 124 ":test_support", |
| 102 ":web", | 125 ":web", |
| 103 "//base", | 126 "//base", |
| 104 "//base:i18n", | 127 "//base:i18n", |
| 105 "//base/test:test_support", | 128 "//base/test:test_support", |
| 106 "//content/test:test_support", | 129 "//content/test:test_support", |
| 107 "//testing/gmock", | 130 "//testing/gmock", |
| 108 "//testing/gtest", | 131 "//testing/gtest", |
| 109 "//third_party/WebKit/Source/core", | |
| 110 "//third_party/WebKit/Source/modules", | |
| 111 "//third_party/WebKit/Source/platform:test_support", | 132 "//third_party/WebKit/Source/platform:test_support", |
| 112 "//third_party/WebKit/Source/wtf", | 133 "//third_party/WebKit/Source/wtf", |
| 113 "//third_party/WebKit/Source/wtf:test_support", | 134 "//third_party/WebKit/Source/wtf:test_support", |
| 114 "//third_party/libwebp", | 135 "//third_party/libwebp", |
| 115 "//third_party/zlib", | 136 "//third_party/zlib", |
| 116 "//url", | 137 "//url", |
| 117 "//v8", | 138 "//v8", |
| 118 ] | 139 ] |
| 119 | 140 |
| 120 data_deps = [ | 141 data_deps = [ |
| 121 "//content/shell:pak", | 142 "//content/shell:pak", |
| 122 ":webkit_unit_tests_data", | 143 ":webkit_unit_tests_data", |
| 123 ] | 144 ] |
| 124 | 145 |
| 125 sources = [ | 146 sources = [ |
| 126 "tests/RunAllTests.cpp", | 147 "tests/RunAllTests.cpp", |
| 127 ] | 148 ] |
| 128 sources += web_unittest_files | |
| 129 sources += bindings_unittest_files | |
| 130 sources += core_unittest_files | |
| 131 sources += modules_unittest_files | |
| 132 sources += platform_web_unittest_files | |
| 133 | 149 |
| 134 configs += [ | 150 configs += [ "//third_party/WebKit/Source:config" ] |
| 135 "//third_party/WebKit/Source:config", | 151 |
| 136 "//third_party/WebKit/Source:inside_blink", | 152 if (!is_component_build) { |
| 137 ] | 153 deps += [ "//third_party/WebKit/Source/core" ] |
| 154 |
| 155 configs += [ "//third_party/WebKit/Source:inside_blink" ] |
| 156 |
| 157 sources += web_unittest_files |
| 158 sources += bindings_unittest_files |
| 159 sources += core_unittest_files |
| 160 sources += modules_unittest_files |
| 161 sources += platform_web_unittest_files |
| 162 } |
| 138 | 163 |
| 139 if (is_android) { | 164 if (is_android) { |
| 140 deps += [ | 165 deps += [ |
| 141 "//base:base_java", | 166 "//base:base_java", |
| 142 "//content/public/android:content_java", | 167 "//content/public/android:content_java", |
| 143 "//content/shell/android:content_shell_assets", | 168 "//content/shell/android:content_shell_assets", |
| 144 "//net/android:net_java", | 169 "//net/android:net_java", |
| 145 ] | 170 ] |
| 146 } | 171 } |
| 147 } | 172 } |
| OLD | NEW |