1# Copyright 2015 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5# Linux specific files and settings for SDL
6
7{
8 #TODO what is really necessary here
9 'link_settings': {
10   'libraries': [
11      "-lwinmm",
12      "-limm32",
13      "-lversion",
14   ],
15 },
16 'sources': [
17   '<(src_dir)/src/joystick/windows/SDL_mmjoystick.c',
18   '<(src_dir)/src/joystick/windows/SDL_xinputjoystick.c',
19   '<(src_dir)/src/joystick/windows/SDL_dinputjoystick.c',
20   '<(src_dir)/src/joystick/windows/SDL_windowsjoystick.c',
21   '<(src_dir)/src/joystick/SDL_joystick.c',
22   '<(src_dir)/src/joystick/SDL_gamecontroller.c',
23   '<(src_dir)/src/SDL_log.c',
24   '<(src_dir)/src/core/windows/SDL_xinput.c',
25   '<(src_dir)/src/core/windows/SDL_windows.c',
26   '<(src_dir)/src/libm/s_fabs.c',
27   '<(src_dir)/src/libm/k_tan.c',
28   '<(src_dir)/src/libm/k_rem_pio2.c',
29   '<(src_dir)/src/libm/s_cos.c',
30   '<(src_dir)/src/libm/s_atan.c',
31   '<(src_dir)/src/libm/s_floor.c',
32   '<(src_dir)/src/libm/e_log.c',
33   '<(src_dir)/src/libm/s_tan.c',
34   '<(src_dir)/src/libm/s_sin.c',
35   '<(src_dir)/src/libm/e_atan2.c',
36   '<(src_dir)/src/libm/e_pow.c',
37   '<(src_dir)/src/libm/s_copysign.c',
38   '<(src_dir)/src/libm/e_rem_pio2.c',
39   '<(src_dir)/src/libm/k_sin.c',
40   '<(src_dir)/src/libm/k_cos.c',
41   '<(src_dir)/src/libm/e_sqrt.c',
42   '<(src_dir)/src/libm/s_scalbn.c',
43   '<(src_dir)/src/events/SDL_dropevents.c',
44   '<(src_dir)/src/events/SDL_touch.c',
45   '<(src_dir)/src/events/SDL_quit.c',
46   '<(src_dir)/src/events/SDL_gesture.c',
47   '<(src_dir)/src/events/SDL_events.c',
48   '<(src_dir)/src/events/SDL_windowevents.c',
49   '<(src_dir)/src/events/SDL_keyboard.c',
50   '<(src_dir)/src/events/SDL_clipboardevents.c',
51   '<(src_dir)/src/events/SDL_mouse.c',
52   '<(src_dir)/src/power/windows/SDL_syspower.c',
53   '<(src_dir)/src/power/SDL_power.c',
54   '<(src_dir)/src/timer/SDL_timer.c',
55   '<(src_dir)/src/timer/windows/SDL_systimer.c',
56   '<(src_dir)/src/dynapi/SDL_dynapi.c',
57   '<(src_dir)/src/SDL_hints.c',
58   '<(src_dir)/src/thread/generic/SDL_syscond.c',
59   '<(src_dir)/src/thread/windows/SDL_systhread.c',
60   '<(src_dir)/src/thread/windows/SDL_syssem.c',
61   '<(src_dir)/src/thread/windows/SDL_sysmutex.c',
62   '<(src_dir)/src/thread/windows/SDL_systls.c',
63   '<(src_dir)/src/thread/SDL_thread.c',
64   '<(src_dir)/src/haptic/windows/SDL_windowshaptic.c',
65   '<(src_dir)/src/haptic/windows/SDL_xinputhaptic.c',
66   '<(src_dir)/src/haptic/windows/SDL_dinputhaptic.c',
67   '<(src_dir)/src/haptic/SDL_haptic.c',
68   '<(src_dir)/src/render/SDL_yuv_mmx.c',
69   '<(src_dir)/src/render/SDL_d3dmath.c',
70   '<(src_dir)/src/render/direct3d/SDL_render_d3d.c',
71   '<(src_dir)/src/render/direct3d11/SDL_render_d3d11.c',
72   '<(src_dir)/src/render/SDL_render.c',
73   '<(src_dir)/src/render/opengl/SDL_render_gl.c',
74   '<(src_dir)/src/render/opengl/SDL_shaders_gl.c',
75   '<(src_dir)/src/render/software/SDL_render_sw.c',
76   '<(src_dir)/src/render/software/SDL_drawline.c',
77   '<(src_dir)/src/render/software/SDL_rotate.c',
78   '<(src_dir)/src/render/software/SDL_blendpoint.c',
79   '<(src_dir)/src/render/software/SDL_drawpoint.c',
80   '<(src_dir)/src/render/software/SDL_blendfillrect.c',
81   '<(src_dir)/src/render/software/SDL_blendline.c',
82   '<(src_dir)/src/render/opengles2/SDL_render_gles2.c',
83   '<(src_dir)/src/render/opengles2/SDL_shaders_gles2.c',
84   '<(src_dir)/src/render/SDL_yuv_sw.c',
85   '<(src_dir)/src/filesystem/windows/SDL_sysfilesystem.c',
86   '<(src_dir)/src/file/SDL_rwops.c',
87   '<(src_dir)/src/stdlib/SDL_getenv.c',
88   '<(src_dir)/src/stdlib/SDL_iconv.c',
89   '<(src_dir)/src/stdlib/SDL_stdlib.c',
90   '<(src_dir)/src/stdlib/SDL_string.c',
91   '<(src_dir)/src/stdlib/SDL_malloc.c',
92   '<(src_dir)/src/stdlib/SDL_qsort.c',
93   '<(src_dir)/src/SDL_assert.c',
94   '<(src_dir)/src/SDL.c',
95   '<(src_dir)/src/atomic/SDL_atomic.c',
96   '<(src_dir)/src/atomic/SDL_spinlock.c',
97   '<(src_dir)/src/loadso/windows/SDL_sysloadso.c',
98   '<(src_dir)/src/audio/dummy/SDL_dummyaudio.c',
99   '<(src_dir)/src/audio/SDL_audiocvt.c',
100   '<(src_dir)/src/audio/SDL_audio.c',
101   '<(src_dir)/src/audio/xaudio2/SDL_xaudio2.c',
102   '<(src_dir)/src/audio/SDL_audiodev.c',
103   '<(src_dir)/src/audio/SDL_audiotypecvt.c',
104   '<(src_dir)/src/audio/disk/SDL_diskaudio.c',
105   '<(src_dir)/src/audio/SDL_wave.c',
106   '<(src_dir)/src/audio/winmm/SDL_winmm.c',
107   '<(src_dir)/src/audio/SDL_mixer.c',
108   '<(src_dir)/src/audio/directsound/SDL_directsound.c',
109   '<(src_dir)/src/cpuinfo/SDL_cpuinfo.c',
110   '<(src_dir)/src/SDL_error.c',
111   '<(src_dir)/src/video/SDL_bmp.c',
112   '<(src_dir)/src/video/dummy/SDL_nullevents.c',
113   '<(src_dir)/src/video/dummy/SDL_nullvideo.c',
114   '<(src_dir)/src/video/dummy/SDL_nullframebuffer.c',
115   '<(src_dir)/src/video/SDL_blit_auto.c',
116   '<(src_dir)/src/video/SDL_shape.c',
117   '<(src_dir)/src/video/SDL_blit_N.c',
118   '<(src_dir)/src/video/windows/SDL_windowsframebuffer.c',
119   '<(src_dir)/src/video/windows/SDL_windowskeyboard.c',
120   '<(src_dir)/src/video/windows/SDL_windowsshape.c',
121   '<(src_dir)/src/video/windows/SDL_windowswindow.c',
122   '<(src_dir)/src/video/windows/SDL_windowsopengl.c',
123   '<(src_dir)/src/video/windows/SDL_windowsvideo.c',
124   '<(src_dir)/src/video/windows/SDL_windowsmessagebox.c',
125   '<(src_dir)/src/video/windows/SDL_windowsopengles.c',
126   '<(src_dir)/src/video/windows/SDL_windowsevents.c',
127   '<(src_dir)/src/video/windows/SDL_windowsmodes.c',
128   '<(src_dir)/src/video/windows/SDL_windowsmouse.c',
129   '<(src_dir)/src/video/windows/SDL_windowsclipboard.c',
130   '<(src_dir)/src/video/SDL_blit_A.c',
131   '<(src_dir)/src/video/SDL_pixels.c',
132   '<(src_dir)/src/video/SDL_rect.c',
133   '<(src_dir)/src/video/SDL_video.c',
134   '<(src_dir)/src/video/SDL_stretch.c',
135   '<(src_dir)/src/video/SDL_surface.c',
136   '<(src_dir)/src/video/SDL_fillrect.c',
137   '<(src_dir)/src/video/SDL_blit_copy.c',
138   '<(src_dir)/src/video/SDL_blit_1.c',
139   '<(src_dir)/src/video/SDL_egl.c',
140   '<(src_dir)/src/video/SDL_RLEaccel.c',
141   '<(src_dir)/src/video/SDL_blit_slow.c',
142   '<(src_dir)/src/video/SDL_blit.c',
143   '<(src_dir)/src/video/SDL_clipboard.c',
144   '<(src_dir)/src/video/SDL_blit_0.c',
145   '<(src_dir)/src/main/windows/SDL_windows_main.c',
146 ],
147 'defines': [
148   '_REENTRANT'
149 ],
150 'cflags': [
151   '-fPIC',
152   '-O3',
153   '-mmmx',
154   '-m3dnow',
155   '-msse',
156   '-msse2',
157   '-fvisibility=hidden',
158 ],
159}
160