Lines Matching +full:a +full:- +full:za +full:- +full:z0 +full:- +full:9 +full:_
5 # SPDX-License-Identifier: Apache-2.0
13 - SNIPPET_NAMES: CMake list of discovered snippet names
14 - SNIPPET_FOUND_{snippet}: one per discovered snippet
52 '''Process the data in a snippet.yml file, after it is loaded into a
71 "it must end with '/' to use a regular expression")
80 As a dict, this maps a snippet's name onto the Snippet object.
96 '''Helper class for printing a Snippets's semantics to a .cmake
111 # Change to linux-style paths for windows to avoid cmake escape character code issues
124 # WARNING. THIS FILE IS AUTO-GENERATED. DO NOT MODIFY!
163 board_re = board[1:-1]
186 SCHEMA_PATH = str(Path(__file__).parent / 'schemas' / 'snippet-schema.yml')
191 # being defined in a directory.
198 # this a bit later if needed.
199 SNIPPET_NAME_RE = re.compile('[A-Za-z0-9][A-Za-z0-9_-]*')
210 parser.add_argument('--snippet-root', default=[], action='append', type=Path,
211 help='''a SNIPPET_ROOT element; may be given
213 parser.add_argument('--snippet', dest='snippets', default=[], action='append',
214 help='''a SNIPPET element; may be given
216 parser.add_argument('--cmake-out', type=Path,
219 parser.add_argument('--sysbuild', action="store_true",
231 def process_snippets(args: argparse.Namespace) -> Snippets:
233 by recursive search. Return a Snippets object describing
247 def find_snippets_in_roots(requested_snippets, snippet_roots) -> Snippets:
249 by recursive search. Return a Snippets object describing
263 def process_snippets_in(root_dir: Path, snippets: Snippets, sysbuild: bool) -> None:
269 'is not a directory; ignoring it')
276 for dirpath, _, filenames in os.walk(snippets_dir):
288 def load_snippet_yml(snippet_yml: Path) -> dict:
289 '''Load a snippet.yml file *snippet_yml*, validate the contents
314 'snippet names must begin with a letter '
316 'dashes (-), and underscores (_)')
320 def check_for_errors(snippets: Snippets) -> None:
330 def write_cmake_out(snippets: Snippets, cmake_out: Path) -> None:
331 '''Write a cmake include file to *cmake_out* which
338 with open(cmake_out, 'w', encoding="utf-8") as f: