comparison pytouhou/lib/sdl.pyxbld @ 421:b1248bab2d0f

Add back music and SFX playback using SDL_mixer instead of pyglet, and add FLAC and Vorbis support.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 16 Jul 2013 21:07:15 +0200
parents 3a7b36324611
children
comparison
equal deleted inserted replaced
420:3a7b36324611 421:b1248bab2d0f
16 16
17 from distutils.extension import Extension 17 from distutils.extension import Extension
18 from subprocess import check_output 18 from subprocess import check_output
19 19
20 COMMAND = 'pkg-config' 20 COMMAND = 'pkg-config'
21 LIBRARIES = ['sdl2', 'SDL2_image'] 21 LIBRARIES = ['sdl2', 'SDL2_image', 'SDL2_mixer']
22 22
23 def make_ext(modname, pyxfilename): 23 def make_ext(modname, pyxfilename):
24 """ Compile and link with the corrects options. """ 24 """ Compile and link with the corrects options. """
25 compile_args = check_output([COMMAND, '--cflags'] + LIBRARIES).split() 25 compile_args = check_output([COMMAND, '--cflags'] + LIBRARIES).split()
26 link_args = check_output([COMMAND, '--libs'] + LIBRARIES).split() 26 link_args = check_output([COMMAND, '--libs'] + LIBRARIES).split()