/
niceSOFT
/
meson
Обзор
Документация
Войти
/
niceSOFT
/
meson
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/yaml/objects/generator.yaml
53 строки
2 KB
Paolo Bonzini
docs: tweak `depends` for features added in 1.12.0
07 май 2026, 21:52
07 май 2026, 21:52
92f0ce7
Код
Авторство
О чём код?
name: generator long_name: Generator object description: | This object is returned by [[generator]] and contains a generator that is used to transform files from one type to another by an executable (e.g. `idl` files into source code and headers). methods: - name: process returns: generated_list description: | Takes an array of files, causes them to be processed and returns an object containing the result which can then, for example, be passed into a build target definition. varargs: name: source min_varargs: 1 type: str | file | custom_tgt | custom_idx | generated_list description: sources to process. kwargs: extra_args: type: array[str] description: | If present, will be used to replace an entry `@EXTRA_ARGS@` in the argument array. preserve_path_from: type: str since: 0.45.0 description: | If given, specifies that the output files need to maintain their directory structure inside the target temporary directory. The most common value for this is `meson.current_source_dir()`. With this value when a file called `subdir/one.input` is processed it generates a file `{target private directory}/subdir/one.out` as opposed to `{target private directory}/one.out`. env: type: env | array[str] | dict[str] since: 1.3.0 description: | environment variables to set, such as `{'NAME1': 'value1', 'NAME2': 'value2'}` or `['NAME1=value1', 'NAME2=value2']`, or an [[@env]] object which allows more sophisticated environment juggling. depends: type: array[build_tgt | custom_tgt | custom_idx | program] since: 1.12.0 description: | An array of build targets that must be built before attempting to run this generator against the source files. This extends the `depends` value of the generator to be run.