Lines Matching +full:platform +full:- +full:schema
5 # SPDX-License-Identifier: Apache-2.0
13 - SNIPPET_NAMES: CMake list of discovered snippet names
14 - SNIPPET_FOUND_{snippet}: one per discovered snippet
30 import platform
110 if platform.system() == "Windows":
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]
184 # Name of the file containing the pykwalify schema for snippet.yml
186 SCHEMA_PATH = str(Path(__file__).parent / 'schemas' / 'snippet-schema.yml')
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,
213 parser.add_argument('--snippet', dest='snippets', default=[], action='append',
216 parser.add_argument('--cmake-out', type=Path,
219 parser.add_argument('--sysbuild', action="store_true",
231 def process_snippets(args: argparse.Namespace) -> Snippets:
247 def find_snippets_in_roots(requested_snippets, snippet_roots) -> Snippets:
263 def process_snippets_in(root_dir: Path, snippets: Snippets, sysbuild: bool) -> None:
288 def load_snippet_yml(snippet_yml: Path) -> dict:
290 against the schema, and do other basic checks. Return the dict
316 'dashes (-), and underscores (_)')
320 def check_for_errors(snippets: Snippets) -> None:
330 def write_cmake_out(snippets: Snippets, cmake_out: Path) -> None:
338 with open(cmake_out, 'w', encoding="utf-8") as f: