| 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 | `notifications` (0/1) | `enable_notifications` (true/false)
| `//build/config/features.gni` | | 268 | `notifications` (0/1) | `enable_notifications` (true/false)
| `//build/config/features.gni` | |
| 269 | `ozone_platform_dri` (0/1) | `ozone_platform_dri` (true/false)
| `//build/config/ui.gni` | | 269 | `ozone_platform_dri` (0/1) | `ozone_platform_dri` (true/false)
| `//build/config/ui.gni` | |
| 270 | `remoting` (0/1) | `enable_remoting` (true/false)
| `//build/config/features.gni` | | 270 | `remoting` (0/1) | `enable_remoting` (true/false)
| `//build/config/features.gni` | |
| 271 | `safe_browsing` (0/1/2) | `safe_browsing_mode` (0/1/2)
| `//build/config/features.gni` | | 271 | `safe_browsing` (0/1/2) | `safe_browsing_mode` (0/1/2)
| `//build/config/features.gni` | |
| 272 | `use_allocator` (`'none'`|`'tcmalloc'`) | `use_allocator` (`"none"`|`"tcmalloc
"`) | (See "Allocator" below) | | 272 | `use_allocator` (`'none'`|`'tcmalloc'`) | `use_allocator` (`"none"`|`"tcmalloc
"`) | (See "Allocator" below) | |
| 273 | `ui_compositor_image_transport` (0/1) | `ui_compositor_image_transport` (tru
e/false) | `//build/config/ui.gni` | | 273 | `ui_compositor_image_transport` (0/1) | `ui_compositor_image_transport` (tru
e/false) | `//build/config/ui.gni` | |
| 274 | `use_ash` (0/1) | `use_ash` (true/false)
| `//build/config/ui.gni` | | 274 | `use_ash` (0/1) | `use_ash` (true/false)
| `//build/config/ui.gni` | |
| 275 | `use_athena` (0/1) | `use_athena` (true/false)
| `//build/config/ui.gni` | | 275 | `use_athena` (0/1) | `use_athena` (true/false)
| `//build/config/ui.gni` | |
| 276 | `use_aura` (0/1) | `use_aura` (true/false)
| `//build/config/ui.gni` | | 276 | `use_aura` (0/1) | `use_aura` (true/false)
| `//build/config/ui.gni` | |
| 277 | `use_cairo` (0/1) | `use_cairo` (true/false)
| `//build/config/ui.gni` | | 277 | `use_cairo` (0/1) | `use_cairo` (true/false)
| `//build/config/ui.gni` | |
| 278 | `use_clipboard_aurax11` (0/1) | `use_aura && use_x11`
| | | |
| 279 | `use_cups` (0/1) | `use_cups` (true/false)
| `//build/config/features.gni` | | 278 | `use_cups` (0/1) | `use_cups` (true/false)
| `//build/config/features.gni` | |
| 280 | `use_dbus` (0/1) | `use_dbus` (true/false)
| `//build/config/features.gni` | | 279 | `use_dbus` (0/1) | `use_dbus` (true/false)
| `//build/config/features.gni` | |
| 281 | `use_gconf` (0/1) | `use_gconf` (true/false)
| `//build/config/features.gni` | | 280 | `use_gconf` (0/1) | `use_gconf` (true/false)
| `//build/config/features.gni` | |
| 282 | `use_glib` (0/1) | `is_linux` (true/false)
| (global) | | 281 | `use_glib` (0/1) | `is_linux` (true/false)
| (global) | |
| 283 | `use_gnome_keyring` (0/1) | `use_gnome_keyring` (true/false)
| | | 282 | `use_gnome_keyring` (0/1) | `use_gnome_keyring` (true/false)
| | |
| 284 | `use_goma` (0/1) | `use_goma` (true/false)
| `//build/toolchain/goma.gni` | | 283 | `use_goma` (0/1) | `use_goma` (true/false)
| `//build/toolchain/goma.gni` | |
| 285 | `use_nss_certs` (0/1) | `use_nss_certs` (true/false)
| `//build/config/crypto.gni` (Many of these conditions can be delete
d, see the "SSL" notes on targets below.) | | 284 | `use_nss_certs` (0/1) | `use_nss_certs` (true/false)
| `//build/config/crypto.gni` (Many of these conditions can be delete
d, see the "SSL" notes on targets below.) | |
| 286 | `use_pango` (0/1) | `use_pango` (true/false)
| `//build/config/ui.gni` | | 285 | `use_pango` (0/1) | `use_pango` (true/false)
| `//build/config/ui.gni` | |
| 287 | `use_ozone` (0/1) | `use_ozone` (true/false)
| `//build/config/ui.gni` | | 286 | `use_ozone` (0/1) | `use_ozone` (true/false)
| `//build/config/ui.gni` | |
| 288 | `use_seccomp_bpf` (0/1) | `use_seccomp_bpf` (true/false)
| `//build/config/features.gni` | | 287 | `use_seccomp_bpf` (0/1) | `use_seccomp_bpf` (true/false)
| `//build/config/features.gni` | |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 | 672 |
| 674 ``` | 673 ``` |
| 675 import("//mojo/public/tools/bindings/mojom.gni") | 674 import("//mojo/public/tools/bindings/mojom.gni") |
| 676 | 675 |
| 677 mojom("mojo_bindings") { | 676 mojom("mojo_bindings") { |
| 678 sources = [ | 677 sources = [ |
| 679 "foo.mojom", | 678 "foo.mojom", |
| 680 ] | 679 ] |
| 681 } | 680 } |
| 682 ``` | 681 ``` |
| OLD | NEW |