summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2018-12-09 18:43:57 +0100
committerUwe Klotz <uklotz@mixxx.org>2018-12-09 20:40:44 +0100
commit9edbf9495b6dae72c950105176ff397919ea840e (patch)
treec834c91290e7d2b19dcd1d107455787c67d12a0c /build
parent5752e913130544295230be9693a3919adb08b799 (diff)
Replace qtkeychain with qt5keychain
...to remove Qt4 dependencies when building on Fedora!
Diffstat (limited to 'build')
-rw-r--r--build/depends.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/build/depends.py b/build/depends.py
index 31afc68b85..7adc27faad 100644
--- a/build/depends.py
+++ b/build/depends.py
@@ -698,10 +698,13 @@ class Reverb(Dependence):
class QtKeychain(Dependence):
def configure(self, build, conf):
- libs = ['qtkeychain']
- if not conf.CheckLib(libs):
+ # Debian/Ubuntu: qtkeychain
+ # Fedora: qt5keychain
+ if conf.CheckLib(['qt5keychain']):
+ build.env.Append(CPPDEFINES='__QT5KEYCHAIN__')
+ elif not conf.CheckLib(['qtkeychain']):
raise Exception(
- "Could not find qtkeychain.")
+ "Could not find qtkeychain/qt5keychain.")
class MixxxCore(Feature):