Mercurial > touhou
comparison setup.py @ 512:b39ad30c6620
Add a pure SDL backend.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 05 Dec 2013 01:55:39 +0100 |
parents | 08d9e6730364 |
children | 5e3e0b09a531 |
comparison
equal
deleted
inserted
replaced
511:2e8ceaa85d5c | 512:b39ad30c6620 |
---|---|
35 | 35 |
36 | 36 |
37 for directory, _, files in os.walk('pytouhou'): | 37 for directory, _, files in os.walk('pytouhou'): |
38 package = directory.replace(os.path.sep, '.') | 38 package = directory.replace(os.path.sep, '.') |
39 packages.append(package) | 39 packages.append(package) |
40 if package not in ('pytouhou.game', 'pytouhou.lib', 'pytouhou.ui', 'pytouhou.utils'): | 40 if package not in ('pytouhou.game', 'pytouhou.lib', 'pytouhou.ui', 'pytouhou.utils', 'pytouhou.ui.sdl'): |
41 continue | 41 continue |
42 if package == 'pytouhou.ui': | 42 if package == 'pytouhou.ui': |
43 compile_args = get_arguments('--cflags', ['gl'] + SDL_LIBRARIES) | 43 compile_args = get_arguments('--cflags', ['gl'] + SDL_LIBRARIES) |
44 link_args = get_arguments('--libs', ['gl'] + SDL_LIBRARIES) | 44 link_args = get_arguments('--libs', ['gl'] + SDL_LIBRARIES) |
45 elif package == 'pytouhou.ui.sdl': | |
46 compile_args = get_arguments('--cflags', SDL_LIBRARIES) | |
47 link_args = get_arguments('--libs', SDL_LIBRARIES) | |
45 else: | 48 else: |
46 compile_args = None | 49 compile_args = None |
47 link_args = None | 50 link_args = None |
48 for filename in files: | 51 for filename in files: |
49 if (filename.endswith('.pyx') or filename.endswith('.py') and | 52 if (filename.endswith('.pyx') or filename.endswith('.py') and |