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. 4 5 import("//tools/grit/grit_rule.gni") 6 7 # GYP version: WebKit/public/blink.gyp:blink 8 group("blink") { 9 deps = [ 10 ":blink_headers", 11 ":blink_minimal", 12 "//third_party/WebKit/Source/web", 13 "//third_party/WebKit/Source/platform", 14 ] 15 } 16 17 # This target provides a minimal set of Blink APIs such as WebString to use in 18 # places that cannot link against the full Blink library. FIXME: We really 19 # shouldn't have this at all and should instead remove all uses of Blink's API 20 # types from places that can't link against Blink. crbug.com/248653 21 # 22 # GYP version: WebKit/public/blink.gyp:blink_minimal 23 group("blink_minimal") { 24 deps = [ 25 "//third_party/WebKit/Source/platform:blink_common", 26 ] 27 } 28 29 # GYP version: WebKit/public/blink.gyp:blink_test_support 30 group("test_support") { 31 deps = [ 32 "//third_party/WebKit/Source/web:test_support", 33 ] 34 } 35 36 # GYP version: WebKit/public/all.gyp:all_blink 37 group("all_blink") { 38 # This includes some test targets. Don't link into production! 39 testonly = true 40 41 deps = [ 42 "//third_party/WebKit/Source/core", 43 "//third_party/WebKit/Source/modules", 44 "//third_party/WebKit/Source/platform:heap_unittests", 45 "//third_party/WebKit/Source/platform:platform_unittests", 46 "//third_party/WebKit/Source/web", 47 "//third_party/WebKit/Source/wtf:wtf_unittests", 48 ] 49 } 50 51 config("blink_headers_config") { 52 include_dirs = [ ".." ] 53 } 54 55 # Depend on this target to use public blink API headers for things like enums 56 # and public structures without actually linking against any Blink libraries. 57 source_set("blink_headers") { 58 public_configs = [ 59 ":blink_headers_config", 60 # Blink exposes icu headers in the public API. 61 "//third_party/icu:icu_config", 62 # Blink exposes NPAPI headers in the public API. 63 "//third_party/npapi:npapi_config", 64 ] 65 } 66 67 # GYP version: WebKit/public/blink_devtools.gyp:blink_devtools_frontend_resources 68 group("blink_devtools_frontend_resources") { 69 deps = [ 70 "//third_party/WebKit/Source/devtools:devtools_frontend_resources", 71 ] 72 } 73 74 # GYP version: WebKit/public/blink_devtools.gyp:blink_generate_devtools_grd 75 group("blink_generate_devtools_grd") { 76 deps = [ 77 "//third_party/WebKit/Source/devtools:generate_devtools_grd", 78 ] 79 } 80 81 # GYP version: WebKit/public/blink_resources.gyp:blink_resources 82 grit("resources") { 83 output_dir = "$root_gen_dir/blink/public/resources" 84 use_qualified_include = true 85 source = "blink_resources.grd" 86 outputs = [ 87 "grit/blink_resources.h", 88 "blink_resources.rc", 89 "blink_resources.pak", 90 ] 91 } 92