Petr Hosek | 64cbba0 | 2018-06-04 14:46:23 -0700 | [diff] [blame] | 1 | <!--- AUTOGENERATED BY `./recipes.py test train` --> |
Petr Hosek | cf4c073 | 2019-05-02 15:19:21 -0700 | [diff] [blame] | 2 | # Repo documentation for [gn]() |
Petr Hosek | 64cbba0 | 2018-06-04 14:46:23 -0700 | [diff] [blame] | 3 | ## Table of Contents |
| 4 | |
Petr Hosek | 7231b3a | 2018-06-20 22:52:35 -0700 | [diff] [blame] | 5 | **[Recipe Modules](#Recipe-Modules)** |
Petr Hosek | 1d45335 | 2018-10-11 18:09:05 -0700 | [diff] [blame] | 6 | * [macos_sdk](#recipe_modules-macos_sdk) — The `macos_sdk` module provides safe functions to access a semi-hermetic XCode installation. |
Petr Hosek | 6453c5d | 2019-01-12 21:32:25 -0800 | [diff] [blame] | 7 | * [target](#recipe_modules-target) |
Petr Hosek | 7231b3a | 2018-06-20 22:52:35 -0700 | [diff] [blame] | 8 | * [windows_sdk](#recipe_modules-windows_sdk) |
| 9 | |
Petr Hosek | 64cbba0 | 2018-06-04 14:46:23 -0700 | [diff] [blame] | 10 | **[Recipes](#Recipes)** |
| 11 | * [gn](#recipes-gn) — Recipe for building GN. |
Petr Hosek | 1d45335 | 2018-10-11 18:09:05 -0700 | [diff] [blame] | 12 | * [macos_sdk:examples/full](#recipes-macos_sdk_examples_full) |
Petr Hosek | 6453c5d | 2019-01-12 21:32:25 -0800 | [diff] [blame] | 13 | * [target:examples/full](#recipes-target_examples_full) |
Petr Hosek | 7231b3a | 2018-06-20 22:52:35 -0700 | [diff] [blame] | 14 | * [windows_sdk:examples/full](#recipes-windows_sdk_examples_full) |
| 15 | ## Recipe Modules |
| 16 | |
Petr Hosek | 1d45335 | 2018-10-11 18:09:05 -0700 | [diff] [blame] | 17 | ### *recipe_modules* / [macos\_sdk](/infra/recipe_modules/macos_sdk) |
| 18 | |
| 19 | [DEPS](/infra/recipe_modules/macos_sdk/__init__.py#5): [recipe\_engine/cipd][recipe_engine/recipe_modules/cipd], [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/json][recipe_engine/recipe_modules/json], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/step][recipe_engine/recipe_modules/step] |
| 20 | |
| 21 | The `macos_sdk` module provides safe functions to access a semi-hermetic |
| 22 | XCode installation. |
| 23 | |
| 24 | Available only to Google-run bots. |
| 25 | |
| 26 | #### **class [MacOSSDKApi](/infra/recipe_modules/macos_sdk/api.py#14)([RecipeApi][recipe_engine/wkt/RecipeApi]):** |
| 27 | |
| 28 | API for using OS X SDK distributed via CIPD. |
| 29 | |
Petr Hosek | f2ddfef | 2020-11-20 18:17:08 -0800 | [diff] [blame] | 30 |   **@contextmanager**<br>— **def [\_\_call\_\_](/infra/recipe_modules/macos_sdk/api.py#30)(self):** |
Petr Hosek | 1d45335 | 2018-10-11 18:09:05 -0700 | [diff] [blame] | 31 | |
| 32 | Sets up the XCode SDK environment. |
| 33 | |
| 34 | This call is a no-op on non-Mac platforms. |
| 35 | |
| 36 | This will deploy the helper tool and the XCode.app bundle at |
| 37 | `[START_DIR]/cache/macos_sdk`. |
| 38 | |
| 39 | To avoid machines rebuilding these on every run, set up a named cache in |
| 40 | your cr-buildbucket.cfg file like: |
| 41 | |
| 42 | caches: { |
| 43 | # Cache for mac_toolchain tool and XCode.app |
| 44 | name: "macos_sdk" |
| 45 | path: "macos_sdk" |
| 46 | } |
| 47 | |
| 48 | If you have builders which e.g. use a non-current SDK, you can give them |
| 49 | a uniqely named cache: |
| 50 | |
| 51 | caches: { |
| 52 | # Cache for N-1 version mac_toolchain tool and XCode.app |
| 53 | name: "macos_sdk_old" |
| 54 | path: "macos_sdk" |
| 55 | } |
| 56 | |
| 57 | Usage: |
| 58 | with api.macos_sdk(): |
| 59 | # sdk with mac build bits |
| 60 | |
| 61 | Raises: |
| 62 | StepFailure or InfraFailure. |
Petr Hosek | f2ddfef | 2020-11-20 18:17:08 -0800 | [diff] [blame] | 63 | |
| 64 |   **@property**<br>— **def [sdk\_dir](/infra/recipe_modules/macos_sdk/api.py#25)(self):** |
Petr Hosek | 6453c5d | 2019-01-12 21:32:25 -0800 | [diff] [blame] | 65 | ### *recipe_modules* / [target](/infra/recipe_modules/target) |
| 66 | |
| 67 | [DEPS](/infra/recipe_modules/target/__init__.py#5): [recipe\_engine/platform][recipe_engine/recipe_modules/platform] |
| 68 | |
| 69 | #### **class [TargetApi](/infra/recipe_modules/target/api.py#82)([RecipeApi][recipe_engine/wkt/RecipeApi]):** |
| 70 | |
| 71 |   **@property**<br>— **def [host](/infra/recipe_modules/target/api.py#87)(self):** |
Petr Hosek | 7231b3a | 2018-06-20 22:52:35 -0700 | [diff] [blame] | 72 | ### *recipe_modules* / [windows\_sdk](/infra/recipe_modules/windows_sdk) |
| 73 | |
| 74 | [DEPS](/infra/recipe_modules/windows_sdk/__init__.py#5): [recipe\_engine/cipd][recipe_engine/recipe_modules/cipd], [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/json][recipe_engine/recipe_modules/json], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/step][recipe_engine/recipe_modules/step] |
| 75 | |
| 76 | #### **class [WindowsSDKApi](/infra/recipe_modules/windows_sdk/api.py#10)([RecipeApi][recipe_engine/wkt/RecipeApi]):** |
| 77 | |
| 78 | API for using Windows SDK distributed via CIPD. |
| 79 | |
Petr Hosek | 1d45335 | 2018-10-11 18:09:05 -0700 | [diff] [blame] | 80 |   **@contextmanager**<br>— **def [\_\_call\_\_](/infra/recipe_modules/windows_sdk/api.py#19)(self):** |
Petr Hosek | 7231b3a | 2018-06-20 22:52:35 -0700 | [diff] [blame] | 81 | |
Petr Hosek | 1d45335 | 2018-10-11 18:09:05 -0700 | [diff] [blame] | 82 | Setups the Windows SDK environment. |
Petr Hosek | 7231b3a | 2018-06-20 22:52:35 -0700 | [diff] [blame] | 83 | |
Petr Hosek | 1d45335 | 2018-10-11 18:09:05 -0700 | [diff] [blame] | 84 | This call is a no-op on non-Windows platforms. |
Petr Hosek | 7231b3a | 2018-06-20 22:52:35 -0700 | [diff] [blame] | 85 | |
| 86 | Raises: |
| 87 | StepFailure or InfraFailure. |
Petr Hosek | 64cbba0 | 2018-06-04 14:46:23 -0700 | [diff] [blame] | 88 | ## Recipes |
| 89 | |
| 90 | ### *recipes* / [gn](/infra/recipes/gn.py) |
| 91 | |
Petr Hosek | 6453c5d | 2019-01-12 21:32:25 -0800 | [diff] [blame] | 92 | [DEPS](/infra/recipes/gn.py#8): [macos\_sdk](#recipe_modules-macos_sdk), [target](#recipe_modules-target), [windows\_sdk](#recipe_modules-windows_sdk), [recipe\_engine/buildbucket][recipe_engine/recipe_modules/buildbucket], [recipe\_engine/cipd][recipe_engine/recipe_modules/cipd], [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/json][recipe_engine/recipe_modules/json], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/python][recipe_engine/recipe_modules/python], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/step][recipe_engine/recipe_modules/step] |
Petr Hosek | 64cbba0 | 2018-06-04 14:46:23 -0700 | [diff] [blame] | 93 | |
| 94 | Recipe for building GN. |
| 95 | |
David 'Digit' Turner | d924640 | 2021-06-22 22:41:19 +0200 | [diff] [blame] | 96 | — **def [RunSteps](/infra/recipes/gn.py#102)(api, repository):** |
Petr Hosek | 1d45335 | 2018-10-11 18:09:05 -0700 | [diff] [blame] | 97 | ### *recipes* / [macos\_sdk:examples/full](/infra/recipe_modules/macos_sdk/examples/full.py) |
| 98 | |
| 99 | [DEPS](/infra/recipe_modules/macos_sdk/examples/full.py#5): [macos\_sdk](#recipe_modules-macos_sdk), [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step] |
| 100 | |
| 101 | — **def [RunSteps](/infra/recipe_modules/macos_sdk/examples/full.py#13)(api):** |
Petr Hosek | 6453c5d | 2019-01-12 21:32:25 -0800 | [diff] [blame] | 102 | ### *recipes* / [target:examples/full](/infra/recipe_modules/target/examples/full.py) |
| 103 | |
| 104 | [DEPS](/infra/recipe_modules/target/examples/full.py#5): [target](#recipe_modules-target), [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step] |
| 105 | |
| 106 | — **def [RunSteps](/infra/recipe_modules/target/examples/full.py#13)(api):** |
Petr Hosek | 7231b3a | 2018-06-20 22:52:35 -0700 | [diff] [blame] | 107 | ### *recipes* / [windows\_sdk:examples/full](/infra/recipe_modules/windows_sdk/examples/full.py) |
| 108 | |
| 109 | [DEPS](/infra/recipe_modules/windows_sdk/examples/full.py#5): [windows\_sdk](#recipe_modules-windows_sdk), [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step] |
| 110 | |
| 111 | — **def [RunSteps](/infra/recipe_modules/windows_sdk/examples/full.py#13)(api):** |
Petr Hosek | 64cbba0 | 2018-06-04 14:46:23 -0700 | [diff] [blame] | 112 | |
David 'Digit' Turner | e9b8433 | 2021-06-22 00:40:11 +0200 | [diff] [blame] | 113 | [recipe_engine/recipe_modules/buildbucket]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/d31ba13ede8c21e60116ae61e4490d53ba77fcbd/README.recipes.md#recipe_modules-buildbucket |
| 114 | [recipe_engine/recipe_modules/cipd]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/d31ba13ede8c21e60116ae61e4490d53ba77fcbd/README.recipes.md#recipe_modules-cipd |
| 115 | [recipe_engine/recipe_modules/context]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/d31ba13ede8c21e60116ae61e4490d53ba77fcbd/README.recipes.md#recipe_modules-context |
| 116 | [recipe_engine/recipe_modules/file]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/d31ba13ede8c21e60116ae61e4490d53ba77fcbd/README.recipes.md#recipe_modules-file |
| 117 | [recipe_engine/recipe_modules/json]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/d31ba13ede8c21e60116ae61e4490d53ba77fcbd/README.recipes.md#recipe_modules-json |
| 118 | [recipe_engine/recipe_modules/path]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/d31ba13ede8c21e60116ae61e4490d53ba77fcbd/README.recipes.md#recipe_modules-path |
| 119 | [recipe_engine/recipe_modules/platform]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/d31ba13ede8c21e60116ae61e4490d53ba77fcbd/README.recipes.md#recipe_modules-platform |
| 120 | [recipe_engine/recipe_modules/properties]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/d31ba13ede8c21e60116ae61e4490d53ba77fcbd/README.recipes.md#recipe_modules-properties |
| 121 | [recipe_engine/recipe_modules/python]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/d31ba13ede8c21e60116ae61e4490d53ba77fcbd/README.recipes.md#recipe_modules-python |
| 122 | [recipe_engine/recipe_modules/raw_io]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/d31ba13ede8c21e60116ae61e4490d53ba77fcbd/README.recipes.md#recipe_modules-raw_io |
| 123 | [recipe_engine/recipe_modules/step]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/d31ba13ede8c21e60116ae61e4490d53ba77fcbd/README.recipes.md#recipe_modules-step |
| 124 | [recipe_engine/wkt/RecipeApi]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/d31ba13ede8c21e60116ae61e4490d53ba77fcbd/recipe_engine/recipe_api.py#856 |