| 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("//tools/grit/grit_rule.gni") | 5 import("//tools/grit/grit_rule.gni") |
| 6 | 6 |
| 7 if (is_android) { | 7 if (is_android) { |
| 8 import("//build/config/android/rules.gni") | 8 import("//build/config/android/rules.gni") |
| 9 } | 9 } |
| 10 | 10 |
| 11 # GYP version: WebKit/public/blink.gyp:blink | 11 # GYP version: WebKit/public/blink.gyp:blink |
| 12 group("blink") { | 12 group("blink") { |
| 13 deps = [ | 13 deps = [ |
| 14 ":blink_headers", | 14 ":blink_headers", |
| 15 ":blink_minimal", | 15 ":blink_minimal", |
| 16 "//third_party/WebKit/Source/web", | 16 "//third_party/WebKit/Source/web", |
| 17 "//third_party/WebKit/Source/platform", | 17 "//third_party/WebKit/Source/platform", |
| 18 ] | 18 ] |
| 19 public_configs = [ |
| 20 "//third_party/WebKit/Source:public_features", |
| 21 ] |
| 19 } | 22 } |
| 20 | 23 |
| 21 # This target provides a minimal set of Blink APIs such as WebString to use in | 24 # This target provides a minimal set of Blink APIs such as WebString to use in |
| 22 # places that cannot link against the full Blink library. FIXME: We really | 25 # places that cannot link against the full Blink library. FIXME: We really |
| 23 # shouldn't have this at all and should instead remove all uses of Blink's API | 26 # shouldn't have this at all and should instead remove all uses of Blink's API |
| 24 # types from places that can't link against Blink. crbug.com/248653 | 27 # types from places that can't link against Blink. crbug.com/248653 |
| 25 # | 28 # |
| 26 # GYP version: WebKit/public/blink.gyp:blink_minimal | 29 # GYP version: WebKit/public/blink.gyp:blink_minimal |
| 27 group("blink_minimal") { | 30 group("blink_minimal") { |
| 28 deps = [ | 31 deps = [ |
| 29 "//third_party/WebKit/Source/platform:blink_common", | 32 "//third_party/WebKit/Source/platform:blink_common", |
| 30 ] | 33 ] |
| 34 public_configs = [ |
| 35 "//third_party/WebKit/Source:public_features", |
| 36 ] |
| 31 } | 37 } |
| 32 | 38 |
| 33 # GYP version: WebKit/public/blink.gyp:blink_test_support | 39 # GYP version: WebKit/public/blink.gyp:blink_test_support |
| 34 group("test_support") { | 40 group("test_support") { |
| 35 deps = [ | 41 deps = [ |
| 36 "//third_party/WebKit/Source/web:test_support", | 42 "//third_party/WebKit/Source/web:test_support", |
| 37 ] | 43 ] |
| 38 } | 44 } |
| 39 | 45 |
| 40 # GYP version: WebKit/public/all.gyp:all_blink | 46 # GYP version: WebKit/public/all.gyp:all_blink |
| 41 group("all_blink") { | 47 group("all_blink") { |
| 42 # This includes some test targets. Don't link into production! | 48 # This includes some test targets. Don't link into production! |
| 43 testonly = true | 49 testonly = true |
| 44 | 50 |
| 45 deps = [ | 51 deps = [ |
| 46 "//third_party/WebKit/Source/core", | 52 "//third_party/WebKit/Source/core", |
| 47 "//third_party/WebKit/Source/modules", | 53 "//third_party/WebKit/Source/modules", |
| 48 "//third_party/WebKit/Source/platform:heap_unittests", | 54 "//third_party/WebKit/Source/platform:heap_unittests", |
| 49 "//third_party/WebKit/Source/platform:platform_unittests", | 55 "//third_party/WebKit/Source/platform:platform_unittests", |
| 50 "//third_party/WebKit/Source/web", | 56 "//third_party/WebKit/Source/web", |
| 51 "//third_party/WebKit/Source/wtf:wtf_unittests", | 57 "//third_party/WebKit/Source/wtf:wtf_unittests", |
| 52 ] | 58 ] |
| 53 if (is_mac) { | 59 if (is_mac) { |
| 54 # TODO(GYP): Re-enable this as soon as we can link Blink binaries on mac. | 60 # TODO(GYP): Re-enable this as soon as we can link Blink binaries on mac. |
| 55 deps -= [ | 61 deps -= [ |
| 56 "//third_party/WebKit/Source/platform:heap_unittests", | 62 "//third_party/WebKit/Source/platform:heap_unittests", |
| 57 "//third_party/WebKit/Source/platform:platform_unittests", | 63 "//third_party/WebKit/Source/platform:platform_unittests", |
| 58 ] | 64 ] |
| 59 } | 65 } |
| 66 public_configs = [ |
| 67 "//third_party/WebKit/Source:public_features", |
| 68 ] |
| 60 } | 69 } |
| 61 | 70 |
| 62 config("blink_headers_config") { | 71 config("blink_headers_config") { |
| 63 include_dirs = [ ".." ] | 72 include_dirs = [ ".." ] |
| 64 } | 73 } |
| 65 | 74 |
| 66 config("debug_devtools") { | 75 config("debug_devtools") { |
| 67 if (debug_devtools) { | 76 if (debug_devtools) { |
| 68 defines = [ "DEBUG_DEVTOOLS=1" ] | 77 defines = [ "DEBUG_DEVTOOLS=1" ] |
| 69 } | 78 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 90 ":blink_headers_java_enums_srcjar", | 99 ":blink_headers_java_enums_srcjar", |
| 91 ] | 100 ] |
| 92 } | 101 } |
| 93 } | 102 } |
| 94 | 103 |
| 95 # Depend on this target to use public blink API headers for things like enums | 104 # Depend on this target to use public blink API headers for things like enums |
| 96 # and public structures without actually linking against any Blink libraries. | 105 # and public structures without actually linking against any Blink libraries. |
| 97 source_set("blink_headers") { | 106 source_set("blink_headers") { |
| 98 public_configs = [ | 107 public_configs = [ |
| 99 ":blink_headers_config", | 108 ":blink_headers_config", |
| 109 "//third_party/WebKit/Source:public_features", |
| 100 # Blink exposes icu headers in the public API. | 110 # Blink exposes icu headers in the public API. |
| 101 "//third_party/icu:icu_config", | 111 "//third_party/icu:icu_config", |
| 102 # Blink exposes NPAPI headers in the public API. | 112 # Blink exposes NPAPI headers in the public API. |
| 103 "//third_party/npapi:npapi_config", | 113 "//third_party/npapi:npapi_config", |
| 104 ] | 114 ] |
| 105 } | 115 } |
| 106 | 116 |
| 107 # GYP version: WebKit/public/blink_devtools.gyp:blink_devtools_frontend_resource
s | 117 # GYP version: WebKit/public/blink_devtools.gyp:blink_devtools_frontend_resource
s |
| 108 group("blink_devtools_frontend_resources") { | 118 group("blink_devtools_frontend_resources") { |
| 109 deps = [ | 119 deps = [ |
| (...skipping 12 matching lines...) Expand all Loading... |
| 122 grit("resources") { | 132 grit("resources") { |
| 123 output_dir = "$root_gen_dir/blink/public/resources" | 133 output_dir = "$root_gen_dir/blink/public/resources" |
| 124 use_qualified_include = true | 134 use_qualified_include = true |
| 125 source = "blink_resources.grd" | 135 source = "blink_resources.grd" |
| 126 outputs = [ | 136 outputs = [ |
| 127 "grit/blink_resources.h", | 137 "grit/blink_resources.h", |
| 128 "blink_resources.rc", | 138 "blink_resources.rc", |
| 129 "blink_resources.pak", | 139 "blink_resources.pak", |
| 130 ] | 140 ] |
| 131 } | 141 } |
| OLD | NEW |