mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Use typelib instead of XML
For normal compilation, use .typelib files rather than .gir XML files. This is much faster. Rather than using libgirepository, which would try to actually load the libraries, we use a custom parser. The language server will still read XML because it needs to access documentation, which is not in the typelib, but that's generally fine because it's a long lived process and only has to do that once.
This commit is contained in:
parent
e78fae4f12
commit
06f54c8ff8
10 changed files with 647 additions and 170 deletions
|
@ -28,6 +28,7 @@ from .utils import Colors
|
|||
from .xml_emitter import XmlEmitter
|
||||
|
||||
VERSION = "uninstalled"
|
||||
LIBDIR = None
|
||||
|
||||
class BlueprintApp:
|
||||
def main(self):
|
||||
|
@ -144,7 +145,7 @@ class BlueprintApp:
|
|||
return ast.generate(), warnings
|
||||
|
||||
|
||||
def main(version):
|
||||
global VERSION
|
||||
VERSION = version
|
||||
def main(version, libdir):
|
||||
global VERSION, LIBDIR
|
||||
VERSION, LIBDIR = version, libdir
|
||||
BlueprintApp().main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue