link ui against right opengl(ES) lib
This commit is contained in:
parent
e386133c4b
commit
7cd4815773
|
@ -15,12 +15,17 @@ if qt_env is None:
|
|||
LIBS=libs)
|
||||
|
||||
else:
|
||||
qt_libs = ["GL", "pthread"]
|
||||
qt_libs = ["pthread"]
|
||||
|
||||
if arch == "Darwin":
|
||||
qt_env["FRAMEWORKS"] += ["QtWidgets", "QtGui", "QtCore", "QtDBus"]
|
||||
else:
|
||||
qt_libs += ["Qt5Widgets", "Qt5Gui", "Qt5Core", "Qt5DBus"]
|
||||
|
||||
if arch == "larch64":
|
||||
qt_libs += ["GLESv2"]
|
||||
else:
|
||||
qt_libs += ["GL"]
|
||||
|
||||
qt_src = ["qt/ui.cc", "qt/window.cc", "qt/settings.cc"] + src
|
||||
qt_env.Program("_ui", qt_src, LIBS=qt_libs + libs)
|
||||
|
|
Loading…
Reference in a new issue