meson_to_hermetic: Fix parser not accounting for files with '-'

Test: run generate_python_build.py
Bug: 357080225
Change-Id: I8a73e900cad488b6d8eb90643bdd5a5078204b47
This commit is contained in:
= 2024-11-19 20:19:26 +00:00
parent 9f9fd5245a
commit 5c374aa1a3
3 changed files with 3 additions and 3 deletions

View file

@ -66,7 +66,7 @@ def process_meson(file_name: str, output_indent: str = ''):
exit('Unhandled literal in line: ' + line)
# Recurse into subdirs
match = re.match("( *)subdir\('([a-zA-Z0-9_/]+)'\)", line)
match = re.match("( *)subdir\('([a-zA-Z0-9_\-/]+)'\)", line)
if match is not None:
subdir_output_indent = match.group(1) + output_indent
current_dir = os.path.dirname(file_name)

View file

@ -4,7 +4,7 @@
cc_library_headers {
name: "mesa_common_headers",
vendor_available: true,
host_supported: true,
host_supported: false,
export_include_dirs: [
"src",
"include",

View file

@ -3,7 +3,7 @@
#}
cc_defaults {
name: "mesa_gfxstream_guest_cc_defaults",
host_supported: true,
host_supported: false,
vendor: true,
cflags: [
"-DVK_GFXSTREAM_STRUCTURE_TYPE_EXT",