Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: tools/gn/docs/cookbook.md

Issue 2084153002: [Mac/iOS/GN] Document enable_stripping and enable_dsyms vs their GYP equivalents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 | `fastbuild` (0/1/2) | `symbol_level` (2/1/0 — valu es inverted) | `//build/config/compiler/compiler.gni` | 215 | `fastbuild` (0/1/2) | `symbol_level` (2/1/0 — valu es inverted) | `//build/config/compiler/compiler.gni` |
216 | `gomadir` | `goma_dir` | `//build/toolchain/goma.gni` | 216 | `gomadir` | `goma_dir` | `//build/toolchain/goma.gni` |
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` |
Robert Sesek 2016/06/21 20:23:04 Looking at this list, I wonder if I should have na
Dirk Pranke 2016/06/21 21:32:31 no, I think the enable_ names are fine.
226 | `mac_want_real_dsym` | `enable_dsyms` | `//build/config/mac/symbols.gni` |
225 | `msan` (0/1) | `is_msan` (true/false) | `//build/config/sanitizers/sanitizers.gni` | 227 | `msan` (0/1) | `is_msan` (true/false) | `//build/config/sanitizers/sanitizers.gni` |
226 | `SDKROOT` (Mac) | `sysroot` | `//build/config/sysroot.gni` | 228 | `SDKROOT` (Mac) | `sysroot` | `//build/config/sysroot.gni` |
227 | `sysroot` | `sysroot` | `//build/config/sysroot.gni` | 229 | `sysroot` | `sysroot` | `//build/config/sysroot.gni` |
228 | `target_arch` ("ia32"/"x64"/"arm"/"mipsel") | `target_cpu` ("x86"/"x64"/"a rm"/"mipsel") | (global) | 230 | `target_arch` ("ia32"/"x64"/"arm"/"mipsel") | `target_cpu` ("x86"/"x64"/"a rm"/"mipsel") | (global) |
229 | `toolkit_views` (0/1) | `toolkit_views` | `//build/config/ui.gni` | 231 | `toolkit_views` (0/1) | `toolkit_views` | `//build/config/ui.gni` |
230 | `tsan` (0/1) | `is_tsan` (true/false) | `//build/config/sanitizers/sanitizers.gni` | 232 | `tsan` (0/1) | `is_tsan` (true/false) | `//build/config/sanitizers/sanitizers.gni` |
231 | `windows_sdk_path` | `windows_sdk_path` | (internal to `//build/config/win/BUILD.gn`) | 233 | `windows_sdk_path` | `windows_sdk_path` | (internal to `//build/config/win/BUILD.gn`) |
232 234
233 ### Feature flags 235 ### Feature flags
234 236
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 676
675 ``` 677 ```
676 import("//mojo/public/tools/bindings/mojom.gni") 678 import("//mojo/public/tools/bindings/mojom.gni")
677 679
678 mojom("mojo_bindings") { 680 mojom("mojo_bindings") {
679 sources = [ 681 sources = [
680 "foo.mojom", 682 "foo.mojom",
681 ] 683 ]
682 } 684 }
683 ``` 685 ```
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698