-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdeps.py
47 lines (40 loc) · 1.07 KB
/
deps.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import shutil
DEPENDENCIES = (
'bullet3',
'glm',
'ffmpeg',
'openal-soft',
'sdl2'
)
def fix_bullet3(path):
lib_deb_path = path / 'debug' / 'lib'
lib_names = (
'BulletCollision',
'BulletDynamics',
'BulletSoftBody',
'LinearMath'
)
for lib_name in lib_names:
orig_lib = lib_deb_path / (lib_name + '_Debug.lib')
targ_lib = lib_deb_path / (lib_name + '.lib')
try:
shutil.move(src=str(orig_lib), dst=str(targ_lib))
except FileNotFoundError:
pass # Assume fix is already applied
def fix_SDL2(path):
lib_deb_path = path / 'debug' / 'lib'
lib_names = (
'SDL2',
'SDL2main',
)
for lib_name in lib_names:
orig_lib = lib_deb_path / (lib_name + 'd.lib')
targ_lib = lib_deb_path / (lib_name + '.lib')
try:
shutil.move(src=str(orig_lib), dst=str(targ_lib))
except FileNotFoundError:
pass # Assume fix is already applied
COPY_FIXES = {
'bullet3': fix_bullet3,
'sdl2': fix_SDL2,
}