1 diff --color -ur a/wscript b/wscript
2 --- a/wscript 2020-08-17 19:49:43.389864343 +0200
3 +++ b/wscript 2020-08-18 00:22:51.172556519 +0200
5 if not conf.env.QT_LRELEASE: conf.fatal('Semantik requires the program lrelease (from the Qt linguist package? - compilation only)')
6 conf.find_program('python3', var='PYTHON')
8 + conf.env.HAVE_QT5SVG = 1
9 + conf.env.DEFINES_QT5SVG = [ 'QT_SVG_LIB' ]
10 + conf.env.INCLUDES_QT5SVG = [ '@Qt5Svg_dev@/include/QtSvg' ]
11 + conf.env.LIBPATH_QT5SVG = '@Qt5Svg@/lib'
12 + conf.env.LIB_QT5SVG = [ 'Qt5Svg', 'Qt5Core', 'Qt5Gui', 'Qt5Widgets' ]
13 + conf.env.HAVE_QT5WEBENGINEWIDGETS = 1
14 + conf.env.DEFINES_QT5WEBENGINEWIDGETS = [ 'QT_WEBENGINEWIDGETS_LIB' ]
15 + conf.env.INCLUDES_QT5WEBENGINEWIDGETS = [ '@Qt5WebEngine_dev@/include/QtWebEngineWidgets' ]
16 + conf.env.LIBPATH_QT5WEBENGINEWIDGETS = '@Qt5WebEngine@/lib'
17 + conf.env.LIB_QT5WEBENGINEWIDGETS = [
18 + 'Qt5WebEngineWidgets',
27 + print("conf.env.LIB_QT5SVG : ",conf.env)
28 if not conf.env.LIB_QT5SVG: conf.fatal('Could not find Qt5Svg - Semantik requires Qt >= 5')
29 if not conf.env.LIB_QT5WEBENGINEWIDGETS: conf.fatal('Could not find Qt5WebEngineWidgets - check `pkg-config --libs Qt5WebEngineWidgets`')
30 if not conf.env.LIB_QT5DBUS: conf.fatal('Install Qt Dbus')
32 raise ValueError('Could not find QT_HOST_DATA')
34 specpath = conf.cmd_and_log(conf.env.QMAKE + ['-query', 'QMAKE_SPEC'], quiet=0, stdout=True)
35 + path = "@Qt5Base_dev@"
36 + print("\n\n[log] specpath = ",specpath,"\n")
37 + print("\n\n[log] path = ",path,"\n")
38 specpath = os.path.join(path, 'mkspecs', specpath.strip())
39 + print("\n\n[log] specpath = ",specpath,"\n")
40 if not os.path.exists(specpath):
41 raise ValueError('No spec path, cannot build')
45 conf.env.append_value('INCLUDES_KDECORE', specpath)
47 - libs = ['KF5KIOCore', 'KF5Auth', 'KF5KIOWidgets',
48 - 'KF5IconThemes', 'KF5ConfigWidgets', 'KF5XmlGui',
49 - 'KF5CoreAddons', 'KF5ConfigGui', 'KF5ConfigCore',
50 - 'KF5WidgetsAddons', 'KF5I18n', 'KF5SonnetUi', 'KF5AuthCore']
52 + 'KF5KIOCore': '@KF5KIOCore_dev@',
53 + 'KF5Auth': '@KF5Auth_dev@',
54 + 'KF5KIOWidgets': '@KF5KIOCore_dev@',
55 + 'KF5IconThemes': '@KF5IconThemes_dev@',
56 + 'KF5ConfigWidgets': '@KF5ConfigWidgets_dev@',
57 + 'KF5XmlGui': '@KF5XmlGui_dev@',
58 + 'KF5CoreAddons': '@KF5CoreAddons_dev@',
59 + 'KF5ConfigGui': '@KF5Config_dev@',
60 + 'KF5ConfigCore': '@KF5Config_dev@',
61 + 'KF5WidgetsAddons': '@KF5WidgetsAddons_dev@',
62 + 'KF5I18n': '@KF5I18n_dev@',
63 + 'KF5SonnetUi': '@KF5SonnetUi_dev@',
64 + 'KF5AuthCore': '@KF5Auth_dev@',
68 + for lib,mkspec_path in libs.items():
69 + print("[log] mkspec : ", mkspec_path)
71 if not name.startswith('K') and name != 'SonnetUi':
74 - p = '%s/qt_%s.pri' % (path, name)
75 + p = '%s/qt_%s.pri' % (mkspec_path+"/mkspecs/modules", name)
76 + print("[log] path :",path,", name : ",name)
79 except EnvironmentError: