-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathSConscript.SDL.py
181 lines (163 loc) · 5.15 KB
/
SConscript.SDL.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
Import("*")
# This file is generated with mmp2sconscript
from scons_symbian import *
target = TARGET_NAME
targettype = "dll"
includes = [ 'deps/SDL/src', 'deps/SDL/src/video',
'deps/SDL/src/events', 'deps/SDL/src/audio',
'deps/SDL/src/audio/symbian', 'deps/SDL/src/main/symbian',
'deps/SDL/src/video/symbian', 'deps/SDL/src/thread',
'deps/SDL/src/thread/generic', 'deps/SDL/src/thread/symbian',
'deps/SDL/src/timer', 'deps/SDL/src/joystick',
'deps/SDL/symbian/inc',
'deps/SDL/symbian/inc/internal',
'deps/SDL/include',
]
sysincludes = [EPOC32_INCLUDE,
join( EPOC32_INCLUDE, "gles"),
join( EPOC32_INCLUDE, "EGL"),
C_INCLUDE,
]
libraries = C_LIBRARY + ['euser',
'fbscli',
'ws32',
'gdi',
'mediaclientaudiostream',
'avkon',
'efsrv',
'bafl',
'apparc',
'eikcore',
'cone',
'bitgdi',
'scdv',
'hal',
# 'libc',
# 'libm',
]
# Static libraries
staticlibs = [ 'vorbis.lib', 'ogg.lib',
#'SDL_ttf.lib',
'libsft2.lib',
'pygame_libjpeg'
]
defines = []
sources = ['deps/SDL/symbian/src/vectorbuffer.cpp',
'deps/SDL/symbian/src/sdlappsrv.cpp',
'deps/SDL/symbian/src/sdlenv.cpp',
'deps/SDL/symbian/src/dsa.cpp',
'deps/SDL/symbian/src/streamplayer.cpp',
'deps/SDL/symbian/src/sdlenvutils.cpp',
'deps/SDL/src/SDL.c',
'deps/SDL/src/SDL_error.c',
'deps/SDL/src/SDL_fatal.c',
'deps/SDL/src/main/symbian/SDL_libutils.cpp',
'deps/SDL/src/main/symbian/SDL_main.cpp',
'deps/SDL/src/cpuinfo/SDL_cpuinfo.c',
'deps/SDL/src/video/SDL_blit.c',
'deps/SDL/src/video/SDL_blit_0.c',
'deps/SDL/src/video/SDL_blit_1.c',
'deps/SDL/src/video/SDL_blit_A.c',
'deps/SDL/src/video/SDL_blit_N.c',
'deps/SDL/src/video/SDL_bmp.c',
'deps/SDL/src/video/SDL_cursor.c',
'deps/SDL/src/video/SDL_gamma.c',
'deps/SDL/src/video/SDL_pixels.c',
'deps/SDL/src/video/SDL_RLEaccel.c',
'deps/SDL/src/video/SDL_stretch.c',
'deps/SDL/src/video/SDL_surface.c',
'deps/SDL/src/video/SDL_video.c',
'deps/SDL/src/video/SDL_yuv.c',
'deps/SDL/src/video/SDL_yuv_mmx.c',
'deps/SDL/src/video/SDL_yuv_sw.c',
'deps/SDL/src/video/symbian/SDL_epocvideo.cpp',
'deps/SDL/src/video/symbian/SDL_epocevents.cpp',
'deps/SDL/src/audio/SDL_audio.c',
'deps/SDL/src/audio/SDL_audiocvt.c',
'deps/SDL/src/audio/SDL_audiodev.c',
'deps/SDL/src/audio/SDL_mixer.c',
'deps/SDL/src/audio/SDL_wave.c',
'deps/SDL/src/audio/symbian/SDL_epocaudio.cpp',
'deps/SDL/src/thread/SDL_thread.c',
'deps/SDL/src/thread/generic/SDL_syscond.c',
'deps/SDL/src/thread/symbian/SDL_sysmutex.cpp',
'deps/SDL/src/thread/symbian/SDL_syssem.cpp',
'deps/SDL/src/thread/symbian/SDL_systhread.cpp',
'deps/SDL/src/events/SDL_active.c',
'deps/SDL/src/events/SDL_events.c',
'deps/SDL/src/events/SDL_keyboard.c',
'deps/SDL/src/events/SDL_mouse.c',
'deps/SDL/src/events/SDL_quit.c',
'deps/SDL/src/events/SDL_resize.c',
'deps/SDL/src/timer/SDL_timer.c',
'deps/SDL/src/timer/symbian/SDL_systimer.cpp',
'deps/SDL/src/file/SDL_rwops.c',
'deps/SDL/src/stdlib/SDL_string.c',
'deps/SDL/src/stdlib/SDL_getenv.c']
# Configure SDL_Mixer
sources += [
'deps/SDL_mixer/mixer.c',
'deps/SDL_mixer/music.c',
#'deps/SDL_mixer/playwave.c',
'deps/SDL_mixer/wavestream.c',
'deps/SDL_mixer/effects_internal.c',
'deps/SDL_mixer/effect_position.c',
'deps/SDL_mixer/effect_stereoreverse.c',
'deps/SDL_mixer/load_aiff.c',
'deps/SDL_mixer/load_voc.c',
'deps/SDL_mixer/load_ogg.c',
'deps/SDL_mixer/dynamic_ogg.c',
'deps/SDL_mixer/music_ogg.c',
]
sysincludes += ['deps/vorbis/include',
'deps/vorbis/include/vorbis',
'deps/ogg/include',
'deps/ogg/include/ogg']
defines += [ 'WAV_MUSIC', 'OGG_MUSIC', ]
# Configure SDL_ttf
sources += [
'deps/SDL_ttf/SDL_ttf.c',
]
# Configure SDL_image
sources += Glob('deps/SDL_image/IMG*.c',)
[sources.remove(x) for x in Glob('deps/SDL_image/IMG_png*c') ]
defines += [
'LOAD_JPG',
'LOAD_BMP',
'LOAD_GIF',
'LOAD_TGA',
]
sysincludes += [
'deps/jpeg/',
]
C_LIB_DEFINE = ""
if not USE_OPENC:
# Tell SDL to use "estlib" then
C_LIB_DEFINE = 'SYMBIANC'
else:
C_LIB_DEFINE = 'OPENC'
defines.append( C_LIB_DEFINE )
# png.h does not like __DLL__ define
SymbianProgram( "pygame_SDL_libpng", TARGETTYPE_LIB,
sources = ["deps/SDL_Image/IMG_png.c"],
includes = includes,
sysincludes = sysincludes + ["deps/libpng"],
defines = ["LOAD_PNG", C_LIB_DEFINE],
)
staticlibs += ["pygame_SDL_libpng.lib", "pygame_libpng.lib"]
libraries += ["ezlib"] # For libpng
defines += ['SYMBIAN_SERIES60',
'NO_SIGNAL_H', 'ENABLE_EPOC',
'DISABLE_JOYSTICK', 'DISABLE_CDROM',
]
includes += ["deps/SDL_ttf/", "deps/sft2/inc/sys"]
SymbianProgram( target, targettype,
sources = sources,
includes = includes,
sysincludes = sysincludes,
libraries = staticlibs + libraries,
defines = defines,
capabilities = CAPABILITIES,
uid3 = UID3,
package = PACKAGE_NAME,
)