mirror of https://github.com/kivy/kivy.git
Fix incorrect directory splitting on win to use semi-colon.
This commit is contained in:
parent
9f3760e521
commit
88e3e689ca
9
setup.py
9
setup.py
|
@ -534,12 +534,17 @@ def determine_sdl2():
|
|||
# no pkgconfig info, or we want to use a specific sdl2 path, so perform
|
||||
# manual configuration
|
||||
flags['libraries'] = ['SDL2', 'SDL2_ttf', 'SDL2_image', 'SDL2_mixer']
|
||||
flags['include_dirs'] = (sdl2_path.split(':') if sdl2_path else
|
||||
split_chr = ';' if platform == 'win32' else ':'
|
||||
sdl2_paths = sdl2_path.split(split_chr) if sdl2_path else []
|
||||
|
||||
flags['include_dirs'] = (
|
||||
sdl2_paths if sdl2_paths else
|
||||
['/usr/local/include/SDL2', '/usr/include/SDL2'])
|
||||
|
||||
flags['extra_link_args'] = []
|
||||
flags['extra_compile_args'] = []
|
||||
flags['extra_link_args'] += (['-L' + sdl2_path] if sdl2_path else
|
||||
flags['extra_link_args'] += (
|
||||
['-L' + p for p in sdl2_paths] if sdl2_paths else
|
||||
['-L/usr/local/lib/'])
|
||||
|
||||
# ensure headers for all the SDL2 and sub libraries are available
|
||||
|
|
Loading…
Reference in New Issue