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