blob: 731d09800ad1ae7b9f511c5e8a6f313144c42646 [file] [log] [blame] [view]
Petr Hosek64cbba02018-06-04 14:46:23 -07001<!--- AUTOGENERATED BY `./recipes.py test train` -->
Petr Hosekcf4c0732019-05-02 15:19:21 -07002# Repo documentation for [gn]()
Petr Hosek64cbba02018-06-04 14:46:23 -07003## Table of Contents
4
Petr Hosek7231b3a2018-06-20 22:52:35 -07005**[Recipe Modules](#Recipe-Modules)**
Takuto Ikuta0b087f12022-04-01 09:52:59 +09006 * [macos_sdk](#recipe_modules-macos_sdk) (Python3 ✅) &mdash; 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 Hosek7231b3a2018-06-20 22:52:35 -07009
Petr Hosek64cbba02018-06-04 14:46:23 -070010**[Recipes](#Recipes)**
Takuto Ikuta0b087f12022-04-01 09:52:59 +090011 * [gn](#recipes-gn) (Python3 ✅) &mdash; 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 Hosek7231b3a2018-06-20 22:52:35 -070015## Recipe Modules
16
Petr Hosek1d453352018-10-11 18:09:05 -070017### *recipe_modules* / [macos\_sdk](/infra/recipe_modules/macos_sdk)
18
Takuto Ikuta0b087f12022-04-01 09:52:59 +090019[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 Ikuta100c7082022-04-01 15:53:33 +090021PYTHON_VERSION_COMPATIBILITY: PY3
Petr Hosek1d453352018-10-11 18:09:05 -070022
23The `macos_sdk` module provides safe functions to access a semi-hermetic
24XCode installation.
25
26Available only to Google-run bots.
27
28#### **class [MacOSSDKApi](/infra/recipe_modules/macos_sdk/api.py#14)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
29
30API for using OS X SDK distributed via CIPD.
31
Petr Hosekf2ddfef2020-11-20 18:17:08 -080032&emsp; **@contextmanager**<br>&mdash; **def [\_\_call\_\_](/infra/recipe_modules/macos_sdk/api.py#30)(self):**
Petr Hosek1d453352018-10-11 18:09:05 -070033
34Sets up the XCode SDK environment.
35
36This call is a no-op on non-Mac platforms.
37
38This will deploy the helper tool and the XCode.app bundle at
39`[START_DIR]/cache/macos_sdk`.
40
41To avoid machines rebuilding these on every run, set up a named cache in
42your 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
50If you have builders which e.g. use a non-current SDK, you can give them
51a 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
59Usage:
60 with api.macos_sdk():
61 # sdk with mac build bits
62
63Raises:
64 StepFailure or InfraFailure.
Petr Hosekf2ddfef2020-11-20 18:17:08 -080065
66&emsp; **@property**<br>&mdash; **def [sdk\_dir](/infra/recipe_modules/macos_sdk/api.py#25)(self):**
Petr Hosek6453c5d2019-01-12 21:32:25 -080067### *recipe_modules* / [target](/infra/recipe_modules/target)
68
Takuto Ikuta0b087f12022-04-01 09:52:59 +090069[DEPS](/infra/recipe_modules/target/__init__.py#7): [recipe\_engine/platform][recipe_engine/recipe_modules/platform]
70
Takuto Ikuta100c7082022-04-01 15:53:33 +090071PYTHON_VERSION_COMPATIBILITY: PY3
Petr Hosek6453c5d2019-01-12 21:32:25 -080072
73#### **class [TargetApi](/infra/recipe_modules/target/api.py#82)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
74
75&emsp; **@property**<br>&mdash; **def [host](/infra/recipe_modules/target/api.py#87)(self):**
Petr Hosek7231b3a2018-06-20 22:52:35 -070076### *recipe_modules* / [windows\_sdk](/infra/recipe_modules/windows_sdk)
77
Takuto Ikuta0b087f12022-04-01 09:52:59 +090078[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 Ikuta100c7082022-04-01 15:53:33 +090080PYTHON_VERSION_COMPATIBILITY: PY3
Petr Hosek7231b3a2018-06-20 22:52:35 -070081
82#### **class [WindowsSDKApi](/infra/recipe_modules/windows_sdk/api.py#10)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
83
84API for using Windows SDK distributed via CIPD.
85
Petr Hosek1d453352018-10-11 18:09:05 -070086&emsp; **@contextmanager**<br>&mdash; **def [\_\_call\_\_](/infra/recipe_modules/windows_sdk/api.py#19)(self):**
Petr Hosek7231b3a2018-06-20 22:52:35 -070087
Petr Hosek1d453352018-10-11 18:09:05 -070088Setups the Windows SDK environment.
Petr Hosek7231b3a2018-06-20 22:52:35 -070089
Petr Hosek1d453352018-10-11 18:09:05 -070090This call is a no-op on non-Windows platforms.
Petr Hosek7231b3a2018-06-20 22:52:35 -070091
92Raises:
93 StepFailure or InfraFailure.
Petr Hosek64cbba02018-06-04 14:46:23 -070094## Recipes
95
96### *recipes* / [gn](/infra/recipes/gn.py)
97
Takuto Ikutaafc4a5f2022-04-01 11:38:13 +090098[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 Ikuta0b087f12022-04-01 09:52:59 +090099
Takuto Ikuta100c7082022-04-01 15:53:33 +0900100PYTHON_VERSION_COMPATIBILITY: PY3
Petr Hosek64cbba02018-06-04 14:46:23 -0700101
102Recipe for building GN.
103
David 'Digit' Turner5eb38452022-04-04 23:13:53 +0200104&mdash; **def [RunSteps](/infra/recipes/gn.py#106)(api, repository):**
Petr Hosek1d453352018-10-11 18:09:05 -0700105### *recipes* / [macos\_sdk:examples/full](/infra/recipe_modules/macos_sdk/examples/full.py)
106
Takuto Ikuta0b087f12022-04-01 09:52:59 +0900107[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 Hosek1d453352018-10-11 18:09:05 -0700108
Takuto Ikuta100c7082022-04-01 15:53:33 +0900109PYTHON_VERSION_COMPATIBILITY: PY3
Takuto Ikuta0b087f12022-04-01 09:52:59 +0900110
111&mdash; **def [RunSteps](/infra/recipe_modules/macos_sdk/examples/full.py#15)(api):**
Petr Hosek6453c5d2019-01-12 21:32:25 -0800112### *recipes* / [target:examples/full](/infra/recipe_modules/target/examples/full.py)
113
Takuto Ikuta0b087f12022-04-01 09:52:59 +0900114[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 Hosek6453c5d2019-01-12 21:32:25 -0800115
Takuto Ikuta100c7082022-04-01 15:53:33 +0900116PYTHON_VERSION_COMPATIBILITY: PY3
Takuto Ikuta0b087f12022-04-01 09:52:59 +0900117
118&mdash; **def [RunSteps](/infra/recipe_modules/target/examples/full.py#15)(api):**
Petr Hosek7231b3a2018-06-20 22:52:35 -0700119### *recipes* / [windows\_sdk:examples/full](/infra/recipe_modules/windows_sdk/examples/full.py)
120
Takuto Ikuta0b087f12022-04-01 09:52:59 +0900121[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 Hosek7231b3a2018-06-20 22:52:35 -0700122
Takuto Ikuta100c7082022-04-01 15:53:33 +0900123PYTHON_VERSION_COMPATIBILITY: PY3
Petr Hosek64cbba02018-06-04 14:46:23 -0700124
Takuto Ikuta0b087f12022-04-01 09:52:59 +0900125&mdash; **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 Ikutaafc4a5f2022-04-01 11:38:13 +0900128[recipe_engine/recipe_modules/cas]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/1b1ecd03e0b00399784c43add1465f685b6d1ab9/README.recipes.md#recipe_modules-cas
Takuto Ikuta0b087f12022-04-01 09:52:59 +0900129[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