~jus/mixxx/skins

« back to all changes in this revision

Viewing changes to mixxx/build/depends.py

  • Committer: jus
  • Date: 2010-12-10 16:51:43 UTC
  • mfrom: (2599.1.22 1.9)
  • Revision ID: jus@local-20101210165143-dewp9w7xbxs1l2aw
MergeĀ fromĀ lp:mixxx/1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.')
29
 
 
30
 
        # WHY!? Supposedly we need this for PortMIDI.
31
 
        if build.platform_is_windows:
32
 
            build.env.Append(LIBS='advapi32')
33
 
 
 
29
            
34
30
    def sources(self, build):
35
31
        return ['midi/portmidienumerator.cpp', 'midi/midideviceportmidi.cpp']
36
32
 
57
53
class OggVorbis(Dependence):
58
54
 
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
63
59
            # later
64
 
            if not conf.CheckLib('vorbisfile_static'):
65
 
                raise Exception('Did not find vorbisfile_static.lib or the libvorbisfile development headers.')
66
 
        else:
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.')
 
62
#        else:
 
63
        if not conf.CheckLib(['libvorbisfile', 'vorbisfile']):
 
64
            Exception('Did not find libvorbisfile.a, libvorbisfile.lib, '
 
65
                'or the libvorbisfile development headers.')
70
66
 
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.')
73
69
 
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!')
76
72
 
77
73
    def sources(self, build):
80
76
class Mad(Dependence):
81
77
 
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!')
87
83
 
88
84
    def sources(self, build):