Chromium Code Reviews| 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("//third_party/WebKit/Source/config.gni") | 5 import("//third_party/WebKit/Source/config.gni") |
| 6 import("//tools/grit/grit_rule.gni") | 6 import("//tools/grit/grit_rule.gni") |
| 7 | 7 |
| 8 blink_headers_values = exec_script("//build/gypi_to_gn.py", | 8 blink_headers_values = exec_script("//build/gypi_to_gn.py", |
| 9 [ rebase_path("blink_headers.gypi") ], | 9 [ rebase_path("blink_headers.gypi") ], |
|
philipj_slow
2015/10/21 11:19:49
This and a bunch of other changes in this file loo
| |
| 10 "scope", | 10 "scope", |
| 11 [ "blink_headers.gypi" ]) | 11 [ "blink_headers.gypi" ]) |
| 12 | |
| 13 | 12 |
| 14 if (is_android) { | 13 if (is_android) { |
| 15 import("//build/config/android/rules.gni") | 14 import("//build/config/android/rules.gni") |
| 16 } | 15 } |
| 17 | 16 |
| 18 # GYP version: WebKit/public/blink.gyp:blink | 17 # GYP version: WebKit/public/blink.gyp:blink |
| 19 group("blink") { | 18 group("blink") { |
| 20 public_deps = [ | 19 public_deps = [ |
| 21 ":blink_headers", | 20 ":blink_headers", |
| 22 ":blink_minimal", | 21 ":blink_minimal", |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 77 if (debug_devtools) { | 76 if (debug_devtools) { |
| 78 defines = [ "DEBUG_DEVTOOLS=1" ] | 77 defines = [ "DEBUG_DEVTOOLS=1" ] |
| 79 } | 78 } |
| 80 } | 79 } |
| 81 | 80 |
| 82 if (is_android) { | 81 if (is_android) { |
| 83 # GYP version: WebKit/public/blink_headers.gyp:web_input_event_java | 82 # GYP version: WebKit/public/blink_headers.gyp:web_input_event_java |
| 84 # GYP version: WebKit/public/blink_headers.gyp:web_text_input_type | 83 # GYP version: WebKit/public/blink_headers.gyp:web_text_input_type |
| 85 java_cpp_enum("blink_headers_java_enums_srcjar") { | 84 java_cpp_enum("blink_headers_java_enums_srcjar") { |
| 86 sources = [ | 85 sources = [ |
| 86 "./platform/WebDisplayMode.h", | |
| 87 "./web/WebInputEvent.h", | 87 "./web/WebInputEvent.h", |
| 88 "./web/WebTextInputType.h", | 88 "./web/WebTextInputType.h", |
| 89 "./platform/WebDisplayMode.h", | |
| 90 ] | 89 ] |
| 91 outputs = [ | 90 outputs = [ |
| 92 "org/chromium/blink_public/platform/WebDisplayMode.java", | 91 "org/chromium/blink_public/platform/WebDisplayMode.java", |
| 93 "org/chromium/blink_public/web/WebInputEventModifier.java", | 92 "org/chromium/blink_public/web/WebInputEventModifier.java", |
| 94 "org/chromium/blink_public/web/WebInputEventType.java", | 93 "org/chromium/blink_public/web/WebInputEventType.java", |
| 95 "org/chromium/blink_public/web/WebTextInputFlags.java", | 94 "org/chromium/blink_public/web/WebTextInputFlags.java", |
| 96 ] | 95 ] |
| 97 } | 96 } |
| 98 | 97 |
| 99 # GYP version: WebKit/public/blink_headers.gyp:blink_headers_java | 98 # GYP version: WebKit/public/blink_headers.gyp:blink_headers_java |
| 100 android_library("blink_headers_java") { | 99 android_library("blink_headers_java") { |
| 101 srcjar_deps = [ | 100 srcjar_deps = [ ":blink_headers_java_enums_srcjar" ] |
| 102 ":blink_headers_java_enums_srcjar", | |
| 103 ] | |
| 104 } | 101 } |
| 105 } | 102 } |
| 106 | 103 |
| 107 # 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 |
| 108 # and public structures without actually linking against any Blink libraries. | 105 # and public structures without actually linking against any Blink libraries. |
| 109 source_set("blink_headers") { | 106 source_set("blink_headers") { |
| 110 public_configs = [ | 107 public_configs = [ |
| 111 ":blink_headers_config", | 108 ":blink_headers_config", |
| 109 | |
| 112 # Blink exposes icu headers in the public API. | 110 # Blink exposes icu headers in the public API. |
| 113 "//third_party/icu:icu_config", | 111 "//third_party/icu:icu_config", |
| 112 | |
| 114 # Blink exposes NPAPI headers in the public API. | 113 # Blink exposes NPAPI headers in the public API. |
| 115 "//third_party/npapi:npapi_config", | 114 "//third_party/npapi:npapi_config", |
| 116 ] | 115 ] |
| 117 sources = blink_headers_values.blink_public_sources | 116 sources = blink_headers_values.blink_public_sources |
| 118 } | 117 } |
| 119 | 118 |
| 120 # GYP version: WebKit/public/blink_devtools.gyp:blink_devtools_frontend_resource s | 119 # GYP version: WebKit/public/blink_devtools.gyp:blink_devtools_frontend_resource s |
| 121 group("blink_devtools_frontend_resources") { | 120 group("blink_devtools_frontend_resources") { |
| 122 public_deps = [ | 121 public_deps = [ |
| 123 "//third_party/WebKit/Source/devtools:devtools_frontend_resources", | 122 "//third_party/WebKit/Source/devtools:devtools_frontend_resources", |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 145 "-D", | 144 "-D", |
| 146 "use_concatenated_impulse_responses", | 145 "use_concatenated_impulse_responses", |
| 147 ] | 146 ] |
| 148 } | 147 } |
| 149 } | 148 } |
| 150 | 149 |
| 151 # GYP version: WebKit/public/blink_resources.gyp:blink_image_resources | 150 # GYP version: WebKit/public/blink_resources.gyp:blink_image_resources |
| 152 grit("image_resources") { | 151 grit("image_resources") { |
| 153 output_dir = "$root_gen_dir/blink/public/resources" | 152 output_dir = "$root_gen_dir/blink/public/resources" |
| 154 use_qualified_include = true | 153 use_qualified_include = true |
| 154 if (is_android) { | |
| 155 platform_type = "mobile" | |
| 156 } else { | |
| 157 platform_type = "desktop" | |
| 158 } | |
| 155 source = "blink_image_resources.grd" | 159 source = "blink_image_resources.grd" |
| 156 outputs = [ | 160 outputs = [ |
| 157 "grit/blink_image_resources.h", | 161 "grit/blink_image_resources.h", |
| 158 "blink_image_resources_100_percent.pak", | 162 "blink_image_resources_100_percent.pak", |
| 159 "blink_image_resources_200_percent.pak", | 163 "blink_image_resources_200_percent.pak", |
| 160 ] | 164 ] |
| 165 grit_flags = [ | |
| 166 "-E", | |
| 167 "platform_type=" + platform_type, | |
| 168 ] | |
| 161 } | 169 } |
| OLD | NEW |