summaryrefslogtreecommitdiffstats
path: root/build/features.py
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2019-06-30 22:21:09 +0200
committerUwe Klotz <uklotz@mixxx.org>2019-06-30 22:21:09 +0200
commit2d7392a8e44aa92bfd2fd5f04b3b04da5b83b420 (patch)
treefbc10979a437d568f0c5e965762c9b2205bc1a2d /build/features.py
parent935563effc9c018532162c23f95c027ee11f4651 (diff)
parentbc1310eebaa29e3b83668e9804125f10b6b21467 (diff)
Merge branch 'master' of git@github.com:mixxxdj/mixxx.git into ffmpeg31
# Conflicts: # .travis.yml
Diffstat (limited to 'build/features.py')
-rw-r--r--build/features.py38
1 files changed, 8 insertions, 30 deletions
diff --git a/build/features.py b/build/features.py
index a9272268b9..84bd76e418 100644
--- a/build/features.py
+++ b/build/features.py
@@ -6,26 +6,6 @@ from .mixxx import Feature
import SCons.Script as SCons
from . import depends
-class OpenGLES(Feature):
- def description(self):
- return "OpenGL-ES >= 2.0 support [Experimental]"
-
- def enabled(self, build):
- build.flags['opengles'] = util.get_flags(build.env, 'opengles', 0)
- return int(build.flags['opengles'])
-
- def add_options(self, build, vars):
- vars.Add('opengles', 'Set to 1 to enable OpenGL-ES >= 2.0 support [Experimental]', 0)
-
- def configure(self, build, conf):
- if not self.enabled(build):
- return
- if build.flags['opengles']:
- build.env.Append(CPPDEFINES='__OPENGLES__')
-
- def sources(self, build):
- return []
-
class HSS1394(Feature):
def description(self):
return "HSS1394 MIDI device support"
@@ -83,7 +63,7 @@ class HID(Feature):
if not self.enabled(build):
return
- if build.platform_is_linux:
+ if build.platform_is_linux or build.platform_is_bsd:
# Try using system lib
if not conf.CheckLib(['hidapi-libusb', 'libhidapi-libusb']):
# No System Lib found
@@ -368,8 +348,11 @@ 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 +375,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):
@@ -1261,7 +1239,7 @@ class Battery(Feature):
return ["src/util/battery/batterywindows.cpp"]
elif build.platform_is_osx:
return ["src/util/battery/batterymac.cpp"]
- elif build.platform_is_linux:
+ elif build.platform_is_linux or build.platform_is_bsd:
return ["src/util/battery/batterylinux.cpp"]
else:
raise Exception('Battery support is not implemented for the target platform.')