13
16
# Table of dependencies.
14
# name, root, File regex, Dependency list of file root names
17
# name, root, File regex, Dependency list of names
16
('MIXER', 'SDL_mixer', r'(lib){0,1}SDL_mixer\.dll$',
17
['SDL', 'vorbisfile', 'smpeg']),
18
('VORBISFILE', 'vorbisfile', r'(lib){0,1}vorbisfile(-3){0,1}\.dll$',
20
('VORBIS', 'vorbis', r'(lib){0,1}vorbis(-0){0,1}\.dll$', ['ogg']),
21
('OGG', 'ogg', r'(lib){0,1}ogg(-0){0,1}\.dll$', []),
22
('SMPEG', 'smpeg', r'(lib){0,1}smpeg\.dll$', ['SDL']),
23
('IMAGE', 'SDL_image', r'(lib){0,1}SDL_image\.dll$',
24
['SDL', 'jpeg', 'png', 'tiff']),
25
('TIFF', 'tiff', r'(lib){0,1}tiff\.dll$', ['jpeg', 'z']),
26
('JPEG', 'jpeg', r'(lib){0,1}jpeg\.dll$', []),
27
('PNG', 'png', r'(lib){0,1}png(1[23])\.dll$', ['z']),
28
('FONT', 'SDL_ttf', r'(lib){0,1}SDL_ttf\.dll$', ['SDL', 'z']),
19
('MIXER', 'SDL_mixer', r'SDL_mixer\.dll$',
20
['SDL', 'VORBISFILE', 'SMPEG']),
21
('VORBISFILE', 'vorbisfile', r'libvorbisfile-3\.dll$',
23
('VORBIS', 'vorbis', r'libvorbis-0\.dll$', ['OGG']),
24
('OGG', 'ogg', r'libogg-0\.dll$', []),
25
('SMPEG', 'smpeg', r'smpeg\.dll$', ['SDL']),
26
('IMAGE', 'SDL_image', r'SDL_image\.dll$',
27
['SDL', 'JPEG', 'PNG', 'TIFF']),
28
('TIFF', 'tiff', r'libtiff\.dll$', ['JPEG', 'Z']),
29
('JPEG', 'jpeg', r'jpeg\.dll$', []),
30
('PNG', 'png12', r'libpng12-0\.dll$', ['Z']),
31
('FONT', 'SDL_ttf', r'SDL_ttf\.dll$', ['SDL']),
32
('FREETYPE', 'freetype', r'libfreetype-6\.dll$', ['Z']),
29
33
('Z', 'z', r'zlib1\.dll$', []),
30
('SDL', 'SDL', r'(lib){0,1}SDL\.dll$', [])
34
('SDL', 'SDL', r'SDL\.dll$', []),
35
('PORTMIDI', 'portmidi', r'portmidi\.dll', []),
36
('PORTTIME', 'portmidi', r'portmidi\.dll', []),
33
39
# regexs: Maps name to DLL file name regex.
38
44
lib_dependencies = {}
39
45
file_root_names = {}
46
for name, root, ignore1, ignore2 in libraries:
47
file_root_names[name] = root
40
48
for name, root, regex, deps in libraries:
41
49
regexs[name] = regex
42
lib_dependencies[root] = deps
43
file_root_names[name] = root
44
del name, root, regex, deps
50
lib_dependencies[root] = [file_root_names[d] for d in deps]
51
del name, root, regex, deps, ignore1, ignore2
47
54
"""For a library name return a function which tests dll file names"""