26
26
if not conf.CheckLib(['portmidi', 'libportmidi']) and \
27
27
not conf.CheckHeader(['portmidi.h']):
28
28
raise Exception('Did not find PortMidi or its development headers.')
30
# WHY!? Supposedly we need this for PortMIDI.
31
if build.platform_is_windows:
32
build.env.Append(LIBS='advapi32')
34
30
def sources(self, build):
35
31
return ['midi/portmidienumerator.cpp', 'midi/midideviceportmidi.cpp']
57
53
class OggVorbis(Dependence):
59
55
def configure(self, build, conf):
60
if build.platform_is_windows and build.machine_is_64bit:
56
# if build.platform_is_windows and build.machine_is_64bit:
61
57
# For some reason this has to be checked this way on win64,
62
58
# otherwise it looks for the dll lib which will cause a conflict
64
if not conf.CheckLib('vorbisfile_static'):
65
raise Exception('Did not find vorbisfile_static.lib or the libvorbisfile development headers.')
67
if not conf.CheckLib('vorbisfile'):
68
Exception('Did not find libvorbisfile.a, libvorbisfile.lib, '
69
'or the libvorbisfile development headers.')
60
# if not conf.CheckLib('vorbisfile_static'):
61
# raise Exception('Did not find vorbisfile_static.lib or the libvorbisfile development headers.')
63
if not conf.CheckLib(['libvorbisfile', 'vorbisfile']):
64
Exception('Did not find libvorbisfile.a, libvorbisfile.lib, '
65
'or the libvorbisfile development headers.')
71
if not conf.CheckLib('vorbis'):
67
if not conf.CheckLib(['libvorbis', 'vorbis']):
72
68
raise Exception('Did not find libvorbis.a, libvorbis.lib, or the libvorbisfile development headers.')
74
if not conf.CheckLib('ogg'):
70
if not conf.CheckLib(['libogg', 'ogg']):
75
71
raise Exception('Did not find libogg.a, libogg.lib, or the libogg development headers, exiting!')
77
73
def sources(self, build):
80
76
class Mad(Dependence):
82
78
def configure(self, build, conf):
83
if not conf.CheckLib(['mad','libmad']):
79
if not conf.CheckLib(['libmad','mad']):
84
80
raise Exception('Did not find libmad.a, libmad.lib, or the libmad development header files - exiting!')
85
if not conf.CheckLib(['id3tag','libid3tag-release']):
81
if not conf.CheckLib(['libid3tag', 'id3tag','libid3tag-release']):
86
82
raise Exception('Did not find libid3tag.a, libid3tag.lib, or the libid3tag development header files - exiting!')
88
84
def sources(self, build):