shutil.copy( os.path.join(libdir, i), os.path.join(os.path.dirname(__file__), "src", "pygame-sdl2", i), ) temporary_package_data.append(i) setuplib.package_data.extend(temporary_package_data) if android: png = "png16" else: png = "png" pymodule("pygame-sdl2.__init__") pymodule("pygame-sdl2.compat") pymodule("pygame-sdl2.threads.__init__") pymodule("pygame-sdl2.threads.Py25Queue") pymodule("pygame-sdl2.sprite") pymodule("pygame-sdl2.sysfont") pymodule("pygame-sdl2.time") pymodule("pygame-sdl2.version") cython("pygame-sdl2.error", libs=sdl_libs) cython("pygame-sdl2.color", libs=sdl_libs) cython("pygame-sdl2.controller", libs=sdl_libs) cython("pygame-sdl2.rect", libs=sdl_libs) cython("pygame-sdl2.rwobject", libs=sdl_libs) cython("pygame-sdl2.surface", source=["src/alphablit.c"], libs=sdl_libs) cython("pygame-sdl2.display", libs=sdl_libs)
if android: sdl = ['sdl', 'GLESv2', 'log'] else: sdl = ['SDL'] # Modules directory. cython("_renpy", ["IMG_savepng.c", "core.c", "subpixel.c"], sdl + ['png', 'z', 'm']) if has_fribidi and not android: cython("_renpybidi", ["renpybidicore.c"], ['fribidi'], define_macros=[("FRIBIDI_ENTRY", "")]) # Sound. pymodule("pysdlsound.__init__") if not android: sound = ["avformat", "avcodec", "avutil", "z"] macros = [] if has_avresample: sound.insert(0, "avresample") macros.append(("HAS_RESAMPLE", 1)) if has_swscale: sound.insert(0, "swscale") cython("pysdlsound.sound", ["pss.c", "ffdecode.c"], libs=sdl + sound,
pass # Modules directory. cython( "_renpy", [ "IMG_savepng.c", "core.c", "subpixel.c"], sdl + [ 'png', 'z', 'm' ]) if has_fribidi and not android: cython( "_renpybidi", [ "renpybidicore.c" ], ['fribidi'], define_macros=[ ("FRIBIDI_ENTRY", "") ]) # Sound. pymodule("pysdlsound.__init__") if not android: sound = [ "avformat", "avcodec", "avutil", "z" ] macros = [ ] if has_avresample: sound.insert(0, "avresample") macros.append(("HAS_RESAMPLE", 1)) if has_swscale: sound.insert(0, "swscale") cython( "pysdlsound.sound",
setuplib.library_dirs.append(libdir) for i in os.listdir(libdir): if i.lower().endswith(".dll"): shutil.copy(os.path.join(libdir, i), os.path.join(os.path.dirname(__file__), "src", "pygame_sdl2", i)) temporary_package_data.append(i) setuplib.package_data.extend(temporary_package_data) if android: png = "png16" else: png = "png" pymodule("pygame_sdl2.__init__") pymodule("pygame_sdl2.compat") pymodule("pygame_sdl2.threads.__init__") pymodule("pygame_sdl2.threads.Py25Queue") pymodule("pygame_sdl2.sprite") pymodule("pygame_sdl2.sysfont") pymodule("pygame_sdl2.time") pymodule("pygame_sdl2.version") cython("pygame_sdl2.error", libs=sdl_libs) cython("pygame_sdl2.color", libs=sdl_libs) cython("pygame_sdl2.controller", libs=sdl_libs) cython("pygame_sdl2.rect", libs=sdl_libs) cython("pygame_sdl2.rwobject", libs=sdl_libs) cython("pygame_sdl2.surface", source=["src/alphablit.c"], libs=sdl_libs) cython("pygame_sdl2.display", libs=sdl_libs)