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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | `use_brlapi` (0/1) | `use_brlapi` (true/false)
| `//build/config/features.gni` | | 272 | `use_brlapi` (0/1) | `use_brlapi` (true/false)
| `//build/config/features.gni` | |
273 | `use_cairo` (0/1) | `use_cairo` (true/false)
| `//build/config/ui.gni` | | 273 | `use_cairo` (0/1) | `use_cairo` (true/false)
| `//build/config/ui.gni` | |
274 | `use_clipboard_aurax11` (0/1) | `use_aura && use_x11`
| | | 274 | `use_clipboard_aurax11` (0/1) | `use_aura && use_x11`
| | |
275 | `use_cups` (0/1) | `use_cups` (true/false)
| `//build/config/features.gni` | | 275 | `use_cups` (0/1) | `use_cups` (true/false)
| `//build/config/features.gni` | |
276 | `use_dbus` (0/1) | `use_dbus` (true/false)
| `//build/config/features.gni` | | 276 | `use_dbus` (0/1) | `use_dbus` (true/false)
| `//build/config/features.gni` | |
277 | `use_gconf` (0/1) | `use_gconf` (true/false)
| `//build/config/features.gni` | | 277 | `use_gconf` (0/1) | `use_gconf` (true/false)
| `//build/config/features.gni` | |
278 | `use_glib` (0/1) | `is_linux` (true/false)
| (global) | | 278 | `use_glib` (0/1) | `is_linux` (true/false)
| (global) | |
279 | `use_gnome_keyring` (0/1) | `is_desktop_linux` (true/false)
| | | 279 | `use_gnome_keyring` (0/1) | `is_desktop_linux` (true/false)
| | |
280 | `use_goma` (0/1) | `use_goma` (true/false)
| `//build/toolchain/goma.gni` | | 280 | `use_goma` (0/1) | `use_goma` (true/false)
| `//build/toolchain/goma.gni` | |
281 | `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.) | | 281 | `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.) | |
| 282 | `use_nss_verifier` (0/1) | `use_nss_verifier` (true/false)
| `//build/config/crypto.gni` (Many of these conditions can be delete
d, see the "SSL" notes on targets below.) | |
282 | `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.) | | 283 | `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.) | |
283 | `use_pango` (0/1) | `use_pango` (true/false)
| `//build/config/ui.gni` | | 284 | `use_pango` (0/1) | `use_pango` (true/false)
| `//build/config/ui.gni` | |
284 | `use_ozone` (0/1) | `use_ozone` (true/false)
| `//build/config/ui.gni` | | 285 | `use_ozone` (0/1) | `use_ozone` (true/false)
| `//build/config/ui.gni` | |
285 | `use_seccomp_bpf` (0/1) | `use_seccomp_bpf` (true/false)
| `//build/config/features.gni` | | 286 | `use_seccomp_bpf` (0/1) | `use_seccomp_bpf` (true/false)
| `//build/config/features.gni` | |
286 | `use_udev` (0/1) | `use_udev` (true/false)
| `//build/config/features.gni` | | 287 | `use_udev` (0/1) | `use_udev` (true/false)
| `//build/config/features.gni` | |
287 | `use_x11` (0/1) | `use_x11` (true/false)
| `//build/config/ui.gni` | | 288 | `use_x11` (0/1) | `use_x11` (true/false)
| `//build/config/ui.gni` | |
288 | `use_xi2_mt` (0/1) | `use_xi2_mt` (true/false)
| `//build/config/ui.gni` | | 289 | `use_xi2_mt` (0/1) | `use_xi2_mt` (true/false)
| `//build/config/ui.gni` | |
289 | `win_use_allocator_shim` (0/1) |
| (See "Allocator" below) | | 290 | `win_use_allocator_shim` (0/1) |
| (See "Allocator" below) | |
290 | 291 |
291 ### Common target conversion | 292 ### Common target conversion |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 | 671 |
671 ``` | 672 ``` |
672 import("//mojo/public/tools/bindings/mojom.gni") | 673 import("//mojo/public/tools/bindings/mojom.gni") |
673 | 674 |
674 mojom("mojo_bindings") { | 675 mojom("mojo_bindings") { |
675 sources = [ | 676 sources = [ |
676 "foo.mojom", | 677 "foo.mojom", |
677 ] | 678 ] |
678 } | 679 } |
679 ``` | 680 ``` |
OLD | NEW |