summaryrefslogtreecommitdiffstats
path: root/build/features.py
diff options
context:
space:
mode:
authorDaniel Schürmann <daschuer@mixxx.org>2019-02-10 21:11:11 +0100
committerDaniel Schürmann <daschuer@mixxx.org>2019-02-10 21:11:11 +0100
commit2f91f259726c61e2079cce77638a7b37cba1a164 (patch)
treeb6cb887b7d3ca6026311ea1fd35eb41deca79848 /build/features.py
parent8aeda6ff17ba7c135d6a373b3ffa6077c42f5b37 (diff)
First version with libfaadloader and FAAD enabled by default on linux
Now the user can install and use libfaad without recompile if he has the permission
Diffstat (limited to 'build/features.py')
-rw-r--r--build/features.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/build/features.py b/build/features.py
index b4fe56a42c..4c31f1870a 100644
--- a/build/features.py
+++ b/build/features.py
@@ -367,9 +367,12 @@ class ModPlug(Feature):
class FAAD(Feature):
def description(self):
return "FAAD AAC audio file decoder plugin"
+
+ def default(self, build):
+ return 1 if build.platform_is_linux else 0
def enabled(self, build):
- build.flags['faad'] = util.get_flags(build.env, 'faad', 0)
+ build.flags['faad'] = util.get_flags(build.env, 'faad', self.default(build))
if int(build.flags['faad']):
return True
return False
@@ -392,14 +395,9 @@ class FAAD(Feature):
raise Exception(
'Could not find libmp4, libmp4v2 or the libmp4v2 development headers.')
- have_faad = conf.CheckLib(['faad', 'libfaad'])
-
- if not have_faad:
- raise Exception(
- 'Could not find libfaad or the libfaad development headers.')
-
def sources(self, build):
- return ['src/sources/soundsourcem4a.cpp']
+ return ['src/sources/soundsourcem4a.cpp',
+ 'src/sources/libfaadloader.cpp']
class WavPack(Feature):