comparison pytouhou/lib/sdl.pyxbld @ 420:3a7b36324611

Replace Pyglet’s image loader with our SDL2_image-based one.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 16 Jul 2013 21:07:15 +0200
parents 63f59be04a54
children b1248bab2d0f
comparison
equal deleted inserted replaced
419:1c92721f8e49 420:3a7b36324611
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'] 21 LIBRARIES = ['sdl2', 'SDL2_image']
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()