OLD | NEW |
---|---|
1 # GYP->GN Conversion Cookbook | 1 # GYP->GN Conversion Cookbook |
2 | 2 |
3 [TOC] | 3 [TOC] |
4 | 4 |
5 ## Targets | 5 ## Targets |
6 | 6 |
7 | *GYP* | *GN* | | 7 | *GYP* | *GN* | |
8 |:-------------------------------------------------|:--------------------------- ------------------------| | 8 |:-------------------------------------------------|:--------------------------- ------------------------| |
9 | `'type': 'static_library', 'name': 'foo',` | `static_library("foo") {` o r `source_set("foo") {` | | 9 | `'type': 'static_library', 'name': 'foo',` | `static_library("foo") {` o r `source_set("foo") {` | |
10 | `'type': 'shared_library', 'name': 'foo',` | `shared_library("foo") {` | | 10 | `'type': 'shared_library', 'name': 'foo',` | `shared_library("foo") {` | |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
246 | `enable_autofill_dialog` (0/1) | `enable_autofill_dialog` (true/false ) | `//build/config/features.gni` | | 246 | `enable_autofill_dialog` (0/1) | `enable_autofill_dialog` (true/false ) | `//build/config/features.gni` | |
247 | `enable_background` (0/1) | `enable_background` (true/false) | `//build/config/features.gni` | | 247 | `enable_background` (0/1) | `enable_background` (true/false) | `//build/config/features.gni` | |
248 | `enable_captive_portal_detection` (0/1) | `enable_captive_portal_detection` (t rue/false) | `//build/config/features.gni` | | 248 | `enable_captive_portal_detection` (0/1) | `enable_captive_portal_detection` (t rue/false) | `//build/config/features.gni` | |
249 | `enable_chromevox_next` (0/1) | `enable_chromevox_next` (true/false) | `//build/config/features.gni` | | 249 | `enable_chromevox_next` (0/1) | `enable_chromevox_next` (true/false) | `//build/config/features.gni` | |
250 | `enable_extensions` (0/1) | `enable_extensions` (true/false) | `//build/config/features.gni` | | 250 | `enable_extensions` (0/1) | `enable_extensions` (true/false) | `//build/config/features.gni` | |
251 | `enable_google_now` (0/1) | `enable_google_now` (true/false) | `//build/config/features.gni` | | 251 | `enable_google_now` (0/1) | `enable_google_now` (true/false) | `//build/config/features.gni` | |
252 | `enable_hidpi` (0/1) | `enable_hidpi` (true/false) | `//ui/base/ui_features.gni` | | 252 | `enable_hidpi` (0/1) | `enable_hidpi` (true/false) | `//ui/base/ui_features.gni` | |
253 | `enable_managed_users` (0/1) | `enable_managed_users` (true/false) | `//build/config/features.gni` | | 253 | `enable_managed_users` (0/1) | `enable_managed_users` (true/false) | `//build/config/features.gni` | |
254 | `enable_mdns` (0/1) | `enable_mdns` (true/false) | `//build/config/features.gni` | | 254 | `enable_mdns` (0/1) | `enable_mdns` (true/false) | `//build/config/features.gni` | |
255 | `enable_one_click_signin` (0/1) | `enable_one_click_signin` (true/fals e) | `//chrome/common/features.gni` | | 255 | `enable_one_click_signin` (0/1) | `enable_one_click_signin` (true/fals e) | `//chrome/common/features.gni` | |
256 | `enable_pepper_cdms` (0/1) | `enable_pepper_cdms` (true/false) | `//build/config/features.gni` | | 256 | `enable_pepper_cdms` (0/1) | `enable_pepper_cdms` (true/false) | `//third_party/widevine/cdm/widevin.gni` | |
jrummell
2016/10/10 22:45:57
Should this be widevine.gni (missing last e)?
| |
257 | `enable_plugins` (0/1) | `enable_plugins` (true/false) | `//build/config/features.gni` | | 257 | `enable_plugins` (0/1) | `enable_plugins` (true/false) | `//build/config/features.gni` | |
258 | `enable_plugin_installation` (0/1) | `enable_plugin_installation` (true/f alse) | `//build/config/features.gni` | | 258 | `enable_plugin_installation` (0/1) | `enable_plugin_installation` (true/f alse) | `//build/config/features.gni` | |
259 | `enable_basic_printing` (0/1) | `enable_basic_printing` (true/false) | `//build/config/features.gni` | | 259 | `enable_basic_printing` (0/1) | `enable_basic_printing` (true/false) | `//build/config/features.gni` | |
260 | `enable_print_preview` (0/1) | `enable_print_preview` (true/false) | `//build/config/features.gni` | | 260 | `enable_print_preview` (0/1) | `enable_print_preview` (true/false) | `//build/config/features.gni` | |
261 | `enable_rlz` (0/1) | `enable_rlz` (true/false) | `//build/config/features.gni` | | 261 | `enable_rlz` (0/1) | `enable_rlz` (true/false) | `//build/config/features.gni` | |
262 | `enable_spellcheck` (0/1) | `enable_spellcheck` (true/false) | `//build/config/features.gni` | | 262 | `enable_spellcheck` (0/1) | `enable_spellcheck` (true/false) | `//build/config/features.gni` | |
263 | `enable_session_service` (0/1) | `enable_session_service` (true/false ) | `//build/config/features.gni` | | 263 | `enable_session_service` (0/1) | `enable_session_service` (true/false ) | `//build/config/features.gni` | |
264 | `enable_task_manager` (0/1) | `enable_task_manager` (true/false) | `//build/config/features.gni` | | 264 | `enable_task_manager` (0/1) | `enable_task_manager` (true/false) | `//build/config/features.gni` | |
265 | `enable_themes` (0/1) | `enable_themes` (true/false) | `//build/config/features.gni` | | 265 | `enable_themes` (0/1) | `enable_themes` (true/false) | `//build/config/features.gni` | |
266 | `enable_webrtc` (0/1) | `enable_webrtc` (true/false) | `//build/config/features.gni` | | 266 | `enable_webrtc` (0/1) | `enable_webrtc` (true/false) | `//build/config/features.gni` | |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
675 | 675 |
676 ``` | 676 ``` |
677 import("//mojo/public/tools/bindings/mojom.gni") | 677 import("//mojo/public/tools/bindings/mojom.gni") |
678 | 678 |
679 mojom("mojo_bindings") { | 679 mojom("mojo_bindings") { |
680 sources = [ | 680 sources = [ |
681 "foo.mojom", | 681 "foo.mojom", |
682 ] | 682 ] |
683 } | 683 } |
684 ``` | 684 ``` |
OLD | NEW |