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

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

Issue 1123433002: Add a GN flag for the Windows multi-dll build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « third_party/widevine/cdm/BUILD.gn ('k') | 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 declared directly in that file (so other files can't use them). These 160 declared directly in that file (so other files can't use them). These
161 places are noted in the table below. 161 places are noted in the table below.
162 162
163 | *GYP* | *GN* | *GN import* | 163 | *GYP* | *GN* | *GN import* |
164 |:------------------------------------------------|:---------------------------- ---------------|:-----------------------------------------------| 164 |:------------------------------------------------|:---------------------------- ---------------|:-----------------------------------------------|
165 | `arm_float_abi` | `arm_float_abi` | `//build/config/arm.gni` | 165 | `arm_float_abi` | `arm_float_abi` | `//build/config/arm.gni` |
166 | `arm_neon` (0/1) | `arm_use_neon` (true/false) | `//build/config/arm.gni` | 166 | `arm_neon` (0/1) | `arm_use_neon` (true/false) | `//build/config/arm.gni` |
167 | `arm_neon_optional` (0/1) | `arm_optionally_use_neon` (t rue/false) | `//build/config/arm.gni` | 167 | `arm_neon_optional` (0/1) | `arm_optionally_use_neon` (t rue/false) | `//build/config/arm.gni` |
168 | `arm_version` | `arm_version` | `//build/config/arm.gni` | 168 | `arm_version` | `arm_version` | `//build/config/arm.gni` |
169 | `asan` (0/1) | `is_asan` (true/false) | (global) | 169 | `asan` (0/1) | `is_asan` (true/false) | (global) |
170 | `branding` ("Chromium"/"Chrome"") | `is_chrome_branded` (true/fa lse) | (global) | 170 | `branding` ("Chromium"/"Chrome"") | `is_chrome_branded` (true/fa lse) | `//build/config/chrome_build.gni` |
171 | `build_for_tool=="drmemory"` | `disable_iterator_debugging` (true/false) | (internal to `//build/config/BUILD.gn`) | 171 | `build_for_tool=="drmemory"` | `disable_iterator_debugging` (true/false) | (internal to `//build/config/BUILD.gn`) |
172 | `build_for_tool=="tsan"` | `disable_iterator_debugging` (true/false) | (internal to `//build/config/BUILD.gn`) | 172 | `build_for_tool=="tsan"` | `disable_iterator_debugging` (true/false) | (internal to `//build/config/BUILD.gn`) |
173 | `buildtype` ("Official"/"Dev") | `is_official_build` (true/fa lse) | (global) | 173 | `buildtype` ("Official"/"Dev") | `is_official_build` (true/fa lse) | `//build/config/chrome_build.gni` |
174 | `chrome_multiple_dll` (0/1) | `is_multi_dll_chrome` (true/ false) | `//build/config/chrome_build.gni` |
174 | `clang` (0/1) | `is_clang` (true/false) | (global) | 175 | `clang` (0/1) | `is_clang` (true/false) | (global) |
175 | `clang_use_chrome_plugins` (0/1) | `clang_use_chrome_plugins` ( true/false) | (internal to `//build/config/clang/BUILD.gn`) | 176 | `clang_use_chrome_plugins` (0/1) | `clang_use_chrome_plugins` ( true/false) | (internal to `//build/config/clang/BUILD.gn`) |
176 | `component` ("shared_library"/"static_library") | `is_component_build` (true/f alse) | (global) | 177 | `component` ("shared_library"/"static_library") | `is_component_build` (true/f alse) | (global) |
177 | `desktop_linux` (0/1) | `is_desktop_linux` (true/fal se) | (global) | 178 | `desktop_linux` (0/1) | `is_desktop_linux` (true/fal se) | (global) |
178 | `disable_glibcxx_debug` (0/1) | `disable_iterator_debugging` (true/false) | (internal to `//build/config/BUILD.gn`) | 179 | `disable_glibcxx_debug` (0/1) | `disable_iterator_debugging` (true/false) | (internal to `//build/config/BUILD.gn`) |
179 | `fastbuild` (0/1/2) | `symbol_level` (2/1/0 — valu es inverted) | (global) | 180 | `fastbuild` (0/1/2) | `symbol_level` (2/1/0 — valu es inverted) | (global) |
180 | `gomadir` | `goma_dir` | `//build/toolchain/goma.gni` | 181 | `gomadir` | `goma_dir` | `//build/toolchain/goma.gni` |
181 | `ios_deployment_target` (string) | `ios_deployment_target` | `//build/config/ios/ios_sdk.gni` | 182 | `ios_deployment_target` (string) | `ios_deployment_target` | `//build/config/ios/ios_sdk.gni` |
182 | `GYP_MSVS_OVERRIDE_PATH` environment variable | `visual_studio_path` | `//build/config/win/visual_studio_version.gni` | 183 | `GYP_MSVS_OVERRIDE_PATH` environment variable | `visual_studio_path` | `//build/config/win/visual_studio_version.gni` |
183 | `GYP_MSVS_VERSION` environment variable | (none) | | 184 | `GYP_MSVS_VERSION` environment variable | (none) | |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 643
643 ``` 644 ```
644 import("//mojo/public/tools/bindings/mojom.gni") 645 import("//mojo/public/tools/bindings/mojom.gni")
645 646
646 mojom("mojo_bindings") { 647 mojom("mojo_bindings") {
647 sources = [ 648 sources = [
648 "foo.mojom", 649 "foo.mojom",
649 ] 650 ]
650 } 651 }
651 ``` 652 ```
OLDNEW
« no previous file with comments | « third_party/widevine/cdm/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698