| 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 correspond to GYP ones. (This is for commonly-depended-on or weird | 298 correspond to GYP ones. (This is for commonly-depended-on or weird |
| 299 targets only, don't add stuff here just because you converted it.) | 299 targets only, don't add stuff here just because you converted it.) |
| 300 | 300 |
| 301 | *GYP*
| *GN* | *Notes* (see below) | | 301 | *GYP*
| *GN* | *Notes* (see below) | |
| 302 |:------------------------------------------------------------------------------
-----|:-----------------------------------------|:---------------------| | 302 |:------------------------------------------------------------------------------
-----|:-----------------------------------------|:---------------------| |
| 303 | `base/base.gyp:base`
| `//base` | | | 303 | `base/base.gyp:base`
| `//base` | | |
| 304 | `base/base.gyp:base_i18n`
| `//base:i18n` | | | 304 | `base/base.gyp:base_i18n`
| `//base:i18n` | | |
| 305 | `base/base.gyp:run_all_unittests`
| `//base/test:run_all_unittests` | | | 305 | `base/base.gyp:run_all_unittests`
| `//base/test:run_all_unittests` | | |
| 306 | `base/base.gyp:test_support_base`
| `//base/test:test_support` | | | 306 | `base/base.gyp:test_support_base`
| `//base/test:test_support` | | |
| 307 | `base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotati
ons` | `//base/third_party/dynamic_annotations` | | | 307 | `base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotati
ons` | `//base/third_party/dynamic_annotations` | | |
| 308 | `build/linux/system.gyp:*` (except ssl)
| `//build/config/linux:*` | Linux system targets | | 308 | `build/linux/system.gyp:*` (except nss)
| `//build/config/linux:*` | Linux system targets | |
| 309 | `build/linux/system.gyp:ssl`
| `//crypto:platform` | SSL | | 309 | `build/linux/system.gyp:nss`
| `//crypto:platform` | SSL | |
| 310 | `net/third_party/nss/ssl.gyp:libssl`
| `//crypto:platform` | SSL | | 310 | `net/third_party/nss/ssl.gyp:libssl`
| `//crypto:platform` | SSL | |
| 311 | `skia/skia.gyp:skia`
| `//skia` | | | 311 | `skia/skia.gyp:skia`
| `//skia` | | |
| 312 | `testing/gmock.gyp:gmock`
| `//testing/gmock` | Secondary tree | | 312 | `testing/gmock.gyp:gmock`
| `//testing/gmock` | Secondary tree | |
| 313 | `testing/gtest.gyp:gtest`
| `//testing/gtest` | Secondary treeo | | 313 | `testing/gtest.gyp:gtest`
| `//testing/gtest` | Secondary treeo | |
| 314 | `third_party/icu/icu.gyp:icui18n`
| `//third_party/icu` | Secondary tree, ICU | | 314 | `third_party/icu/icu.gyp:icui18n`
| `//third_party/icu` | Secondary tree, ICU | |
| 315 | `third_party/icu/icu.gyp:icuuc`
| `//third_party/icu` | Secondary tree, ICU | | 315 | `third_party/icu/icu.gyp:icuuc`
| `//third_party/icu` | Secondary tree, ICU | |
| 316 | `url/url.gyp:url_lib`
| `//url` || || | 316 | `url/url.gyp:url_lib`
| `//url` || || |
| 317 | 317 |
| 318 Notes: | 318 Notes: |
| 319 | 319 |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 | 674 |
| 675 ``` | 675 ``` |
| 676 import("//mojo/public/tools/bindings/mojom.gni") | 676 import("//mojo/public/tools/bindings/mojom.gni") |
| 677 | 677 |
| 678 mojom("mojo_bindings") { | 678 mojom("mojo_bindings") { |
| 679 sources = [ | 679 sources = [ |
| 680 "foo.mojom", | 680 "foo.mojom", |
| 681 ] | 681 ] |
| 682 } | 682 } |
| 683 ``` | 683 ``` |
| OLD | NEW |