Dont link rcc_backend against qtgui

This commit is contained in:
Kovid Goyal 2022-01-10 12:07:57 +05:30
parent a0e1c7b7e3
commit 178f94a271
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ class Extension:
self.headers = d['headers'] = absolutize(kwargs.get('headers', []))
self.sip_files = d['sip_files'] = absolutize(kwargs.get('sip_files', []))
self.needs_exceptions = d['needs_exceptions'] = kwargs.get('needs_exceptions', False)
self.qt_project_type = d['qt_project_type'] = kwargs.get('qt_project_type', "widgets")
self.qt_modules = d['qt_modules'] = kwargs.get('qt_modules', ["widgets"])
self.inc_dirs = d['inc_dirs'] = absolutize(kwargs.get('inc_dirs', []))
self.lib_dirs = d['lib_dirs'] = absolutize(kwargs.get('lib_dirs', []))
self.extra_objs = d['extra_objs'] = absolutize(kwargs.get('extra_objs', []))
@ -530,7 +530,7 @@ headers = {ext.headers}
sources = {ext.sources}
exceptions = {needs_exceptions}
include-dirs = {ext.inc_dirs}
qmake-QT = ["{ext.qt_project_type}"]
qmake-QT = {ext.qt_modules}
sip-file = "{os.path.basename(sipf)}"
''')
shutil.copy2(sipf, src_dir)

View File

@ -137,7 +137,7 @@
"headers": "calibre/gui2/rcc/rcc.h",
"sip_files": "calibre/gui2/rcc/rcc.sip",
"inc_dirs": "calibre/gui2/rcc",
"qt_project_type": "core"
"qt_modules": ["-gui"]
},
{
"name": "pictureflow",