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
3 # found in the LICENSE file.
5 import("//build/config/ui.gni")
6 import("//third_party/WebKit/Source/bindings/bindings.gni")
7 import("//third_party/WebKit/Source/config.gni")
8 import("//third_party/WebKit/Source/core/core.gni")
9 import("//third_party/WebKit/Source/modules/modules.gni")
10 import("//third_party/WebKit/Source/platform/platform.gni")
12 visibility = [ "//third_party/WebKit/*" ]
13 web_gypi = exec_script(
14 "//build/gypi_to_gn.py",
15 [ rebase_path("web.gypi") ],
21 output_name = "blink_web"
24 "//third_party/WebKit/Source/core",
25 "//third_party/WebKit/Source/modules",
26 "//third_party/WebKit/Source/platform",
30 "//third_party/angle:translator",
34 "//third_party/skia/include/utils",
37 configs -= [ "//build/config/compiler:chromium_code" ]
39 "//build/config/compiler:no_chromium_code",
40 "//third_party/WebKit/Source:config",
41 "//third_party/WebKit/Source:inside_blink",
42 "//third_party/WebKit/Source:non_test_config",
45 sources = web_gypi.web_files
47 if (!use_default_render_theme) {
48 sources -= [ "default/WebRenderTheme.cpp" ]
51 if (is_component_build) {
53 "//base/test:test_support",
56 "//third_party/WebKit/Source/core:testing",
57 "//third_party/WebKit/Source/modules:modules_testing",
58 "//third_party/WebKit/Source/wtf:test_support",
62 "//third_party/WebKit/Source:non_test_config",
65 sources += web_gypi.web_unittest_files
66 sources += bindings_unittest_files
67 sources += core_unittest_files
68 sources += modules_unittest_files
69 sources += platform_web_unittest_files
71 sources += [ "WebTestingSupport.cpp" ]
75 set_sources_assignment_filter([])
76 sources += [ "linux/WebFontRendering.cpp" ]
77 set_sources_assignment_filter(sources_assignment_filter)
81 # GYP version: WebKit/Source/web/web.gyp:blink_web_test_support
82 source_set("test_support") {
83 if (!is_component_build) {
86 "//third_party/WebKit/Source/core:testing",
87 "//third_party/WebKit/Source/modules:modules_testing",
88 "//third_party/WebKit/Source/wtf",
91 sources = [ "WebTestingSupport.cpp" ]
93 configs -= [ "//build/config/compiler:chromium_code" ]
95 "//build/config/compiler:no_chromium_code",
96 "//third_party/WebKit/Source:config",
101 # GYP version: WebKit/Source/web/web_tests.gyp:webkit_unit_tests
102 test("webkit_unit_tests") {
107 "//base/test:test_support",
109 "//content/test:test_support",
112 "//third_party/WebKit/Source/wtf:test_support",
113 "//third_party/libwebp",
114 "//third_party/zlib",
119 sources = [ "tests/RunAllTests.cpp" ]
121 configs += [ "//third_party/WebKit/Source:config" ]
123 if (!is_component_build) {
124 deps += [ "//third_party/WebKit/Source/core" ]
126 configs += [ "//third_party/WebKit/Source:inside_blink" ]
128 sources += web_gypi.web_unittest_files
129 sources += bindings_unittest_files
130 sources += core_unittest_files
131 sources += modules_unittest_files
132 sources += platform_web_unittest_files