pro2cmake: Handle QLALRSOURCES
Change-Id: I8e6b2d542c96947d487b934c27544a8a4ae8745c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
82c86856d1
commit
37c330fe07
@ -2296,6 +2296,17 @@ def write_statecharts(cm_fh: IO[str], target: str, scope: Scope, indent: int = 0
|
||||
cm_fh.write(f"{spaces(indent)}{f}\n")
|
||||
cm_fh.write(")\n")
|
||||
|
||||
def write_qlalrsources(cm_fh: IO[str], target: str, scope: Scope, indent: int = 0):
|
||||
sources = scope.get_files("QLALRSOURCES", use_vpath=True)
|
||||
if not sources:
|
||||
return
|
||||
cm_fh.write("\n# QLALR Grammars:\n")
|
||||
cm_fh.write(f"qt_process_qlalr(\n")
|
||||
indent += 1
|
||||
cm_fh.write(f"{spaces(indent)}{';'.join(sources)}\n")
|
||||
cm_fh.write(f"{spaces(indent)}{target}\n")
|
||||
cm_fh.write(f"{spaces(indent)}\"\"\n")
|
||||
cm_fh.write(")\n")
|
||||
|
||||
def expand_project_requirements(scope: Scope, skip_message: bool = False) -> str:
|
||||
requirements = ""
|
||||
@ -2690,6 +2701,8 @@ def write_main_part(
|
||||
|
||||
write_statecharts(cm_fh, name, scope, indent)
|
||||
|
||||
write_qlalrsources(cm_fh, name, scope, indent)
|
||||
|
||||
write_simd_part(cm_fh, name, scope, indent)
|
||||
|
||||
write_android_part(cm_fh, name, scopes[0], indent)
|
||||
|
Loading…
x
Reference in New Issue
Block a user