aboutsummaryrefslogtreecommitdiff
path: root/mesongui.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-12-27 01:10:48 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-12-27 01:10:48 +0200
commit8b56f3596319682e095f7d9f43f468caee84b904 (patch)
tree1152ffb666e74df8462d679c947c3dfa362bded1 /mesongui.py
parent088d3336990553d135f636a4a3cf4a2db4db86d5 (diff)
downloadmeson-8b56f3596319682e095f7d9f43f468caee84b904.zip
meson-8b56f3596319682e095f7d9f43f468caee84b904.tar.gz
meson-8b56f3596319682e095f7d9f43f468caee84b904.tar.bz2
Expose unity build toggle button in the gui.
Diffstat (limited to 'mesongui.py')
-rwxr-xr-xmesongui.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/mesongui.py b/mesongui.py
index 4262596..1f71709 100755
--- a/mesongui.py
+++ b/mesongui.py
@@ -254,6 +254,10 @@ class OptionForm:
pch.setChecked(self.coredata.use_pch)
pch.stateChanged.connect(self.pch_changed)
self.form.addRow('Enable pch', pch)
+ unity = QCheckBox("")
+ unity.setChecked(self.coredata.unity)
+ unity.stateChanged.connect(self.unity_changed)
+ self.form.addRow('Unity build', unity)
form.addRow(PyQt5.QtWidgets.QLabel("Project options"))
self.set_user_options()
@@ -324,6 +328,13 @@ class OptionForm:
ns = True
self.coredata.use_pch = ns
+ def unity_changed(self, newState):
+ if newState == 0:
+ ns = False
+ else:
+ ns = True
+ self.coredata.unity = ns
+
class ProcessRunner():
def __init__(self, rundir, cmdlist):
self.cmdlist = cmdlist