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