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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
217 | `ios_deployment_target` (string) | `ios_deployment_target` | `//build/config/ios/ios_sdk.gni` | | 217 | `ios_deployment_target` (string) | `ios_deployment_target` | `//build/config/ios/ios_sdk.gni` | |
218 | `GYP_MSVS_OVERRIDE_PATH` environment variable | `visual_studio_path` | `//build/config/win/visual_studio_version.gni` | | 218 | `GYP_MSVS_OVERRIDE_PATH` environment variable | `visual_studio_path` | `//build/config/win/visual_studio_version.gni` | |
219 | `GYP_MSVS_VERSION` environment variable | (none) | | | 219 | `GYP_MSVS_VERSION` environment variable | (none) | | |
220 | `ios_sdk_path` | `ios_sdk_path` and `use_ios_ simulator` | `//build/config/ios/ios_sdk.gni` | | 220 | `ios_sdk_path` | `ios_sdk_path` and `use_ios_ simulator` | `//build/config/ios/ios_sdk.gni` | |
221 | `lsan` (0/1) | `is_lsan` (true/false) | `//build/config/sanitizers/sanitizers.gni` | | 221 | `lsan` (0/1) | `is_lsan` (true/false) | `//build/config/sanitizers/sanitizers.gni` | |
222 | `mac_sdk_min` | `mac_sdk_min` | `//build/config/mac/mac_sdk.gni` | | 222 | `mac_sdk_min` | `mac_sdk_min` | `//build/config/mac/mac_sdk.gni` | |
223 | `mac_sdk_path` | `mac_sdk_path` | `//build/config/mac/mac_sdk.gni` | | 223 | `mac_sdk_path` | `mac_sdk_path` | `//build/config/mac/mac_sdk.gni` | |
224 | `mac_sdk` | `mac_sdk_version` | `//build/config/mac/mac_sdk.gni` | | 224 | `mac_sdk` | `mac_sdk_version` | `//build/config/mac/mac_sdk.gni` | |
225 | `mac_strip_release` | `enable_stripping` | `//build/config/mac/symbols.gni` | | 225 | `mac_strip_release` | `enable_stripping` | `//build/config/mac/symbols.gni` | |
226 | `mac_want_real_dsym` | `enable_dsyms` | `//build/config/mac/symbols.gni` | | 226 | `mac_want_real_dsym` | `enable_dsyms` | `//build/config/mac/symbols.gni` | |
227 | `mips_msa` (0/1) | `mips_use_msa` (true/false) | `//build/config/mips.gni` | | |
Dirk Pranke
2016/07/15 18:59:59
I wouldn't add this change; we don't list every fl
| |
227 | `msan` (0/1) | `is_msan` (true/false) | `//build/config/sanitizers/sanitizers.gni` | | 228 | `msan` (0/1) | `is_msan` (true/false) | `//build/config/sanitizers/sanitizers.gni` | |
228 | `SDKROOT` (Mac) | `sysroot` | `//build/config/sysroot.gni` | | 229 | `SDKROOT` (Mac) | `sysroot` | `//build/config/sysroot.gni` | |
229 | `sysroot` | `sysroot` | `//build/config/sysroot.gni` | | 230 | `sysroot` | `sysroot` | `//build/config/sysroot.gni` | |
230 | `target_arch` ("ia32"/"x64"/"arm"/"mipsel") | `target_cpu` ("x86"/"x64"/"a rm"/"mipsel") | (global) | | 231 | `target_arch` ("ia32"/"x64"/"arm"/"mipsel") | `target_cpu` ("x86"/"x64"/"a rm"/"mipsel") | (global) | |
231 | `toolkit_views` (0/1) | `toolkit_views` | `//build/config/ui.gni` | | 232 | `toolkit_views` (0/1) | `toolkit_views` | `//build/config/ui.gni` | |
232 | `tsan` (0/1) | `is_tsan` (true/false) | `//build/config/sanitizers/sanitizers.gni` | | 233 | `tsan` (0/1) | `is_tsan` (true/false) | `//build/config/sanitizers/sanitizers.gni` | |
233 | `windows_sdk_path` | `windows_sdk_path` | (internal to `//build/config/win/BUILD.gn`) | | 234 | `windows_sdk_path` | `windows_sdk_path` | (internal to `//build/config/win/BUILD.gn`) | |
234 | 235 |
235 ### Feature flags | 236 ### Feature flags |
236 | 237 |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
675 | 676 |
676 ``` | 677 ``` |
677 import("//mojo/public/tools/bindings/mojom.gni") | 678 import("//mojo/public/tools/bindings/mojom.gni") |
678 | 679 |
679 mojom("mojo_bindings") { | 680 mojom("mojo_bindings") { |
680 sources = [ | 681 sources = [ |
681 "foo.mojom", | 682 "foo.mojom", |
682 ] | 683 ] |
683 } | 684 } |
684 ``` | 685 ``` |
OLD | NEW |