| 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | `use_gnome_keyring` (0/1) | `is_desktop_linux` (true/false)
| | | 250 | `use_gnome_keyring` (0/1) | `is_desktop_linux` (true/false)
| | |
| 251 | `use_goma` (0/1) | `use_goma` (true/false)
| `//build/toolchain/goma.gni` | | 251 | `use_goma` (0/1) | `use_goma` (true/false)
| `//build/toolchain/goma.gni` | |
| 252 | `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.) | | 252 | `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.) | |
| 253 | `use_openssl` (0/1) | `use_openssl` (true/false)
| `//build/config/crypto.gni` (Many of these conditions can be delete
d, see the "SSL" notes on targets below.) | | 253 | `use_openssl` (0/1) | `use_openssl` (true/false)
| `//build/config/crypto.gni` (Many of these conditions can be delete
d, see the "SSL" notes on targets below.) | |
| 254 | `use_pango` (0/1) | `use_pango` (true/false)
| `//build/config/ui.gni` | | 254 | `use_pango` (0/1) | `use_pango` (true/false)
| `//build/config/ui.gni` | |
| 255 | `use_ozone` (0/1) | `use_ozone` (true/false)
| `//build/config/ui.gni` | | 255 | `use_ozone` (0/1) | `use_ozone` (true/false)
| `//build/config/ui.gni` | |
| 256 | `use_seccomp_bpf` (0/1) | `use_seccomp_bpf` (true/false)
| `//build/config/features.gni` | | 256 | `use_seccomp_bpf` (0/1) | `use_seccomp_bpf` (true/false)
| `//build/config/features.gni` | |
| 257 | `use_udev` (0/1) | `use_udev` (true/false)
| `//build/config/features.gni` | | 257 | `use_udev` (0/1) | `use_udev` (true/false)
| `//build/config/features.gni` | |
| 258 | `use_x11` (0/1) | `use_x11` (true/false)
| `//build/config/ui.gni` | | 258 | `use_x11` (0/1) | `use_x11` (true/false)
| `//build/config/ui.gni` | |
| 259 | `use_xi2_mt` (0/1) | `use_xi2_mt` (true/false)
| `//build/config/ui.gni` | | 259 | `use_xi2_mt` (0/1) | `use_xi2_mt` (true/false)
| `//build/config/ui.gni` | |
| 260 | `win_pdf_metafile_for_printing` (0/1) | `win_pdf_metafile_for_printing` (tru
e/false) | `//build/config/features.gni` | | |
| 261 | `win_use_allocator_shim` (0/1) |
| (See "Allocator" below) | | 260 | `win_use_allocator_shim` (0/1) |
| (See "Allocator" below) | |
| 262 | 261 |
| 263 ### Common target conversion | 262 ### Common target conversion |
| 264 | 263 |
| 265 Some targets that lots of projects depend on and how the GN ones | 264 Some targets that lots of projects depend on and how the GN ones |
| 266 correspond to GYP ones. (This is for commonly-depended-on or weird | 265 correspond to GYP ones. (This is for commonly-depended-on or weird |
| 267 targets only, don't add stuff here just because you converted it.) | 266 targets only, don't add stuff here just because you converted it.) |
| 268 | 267 |
| 269 | *GYP*
| *GN* | *Notes* (see below) | | 268 | *GYP*
| *GN* | *Notes* (see below) | |
| 270 |:------------------------------------------------------------------------------
-----|:-----------------------------------------|:---------------------| | 269 |:------------------------------------------------------------------------------
-----|:-----------------------------------------|:---------------------| |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 | 641 |
| 643 ``` | 642 ``` |
| 644 import("//mojo/public/tools/bindings/mojom.gni") | 643 import("//mojo/public/tools/bindings/mojom.gni") |
| 645 | 644 |
| 646 mojom("mojo_bindings") { | 645 mojom("mojo_bindings") { |
| 647 sources = [ | 646 sources = [ |
| 648 "foo.mojom", | 647 "foo.mojom", |
| 649 ] | 648 ] |
| 650 } | 649 } |
| 651 ``` | 650 ``` |
| OLD | NEW |