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     '-ldl',
12     '-lGLESv1_CM',
13     '-lGLESv2',
14     '-llog',
15     '-landroid',
16   ],
17 },
18 'sources': [
19   '<(src_dir)/src/SDL.c',
20   '<(src_dir)/src/SDL_assert.c',
21   '<(src_dir)/src/SDL_error.c',
22   '<(src_dir)/src/SDL_hints.c',
23   '<(src_dir)/src/SDL_log.c',
24   '<(src_dir)/src/atomic/SDL_atomic.c',
25   '<(src_dir)/src/atomic/SDL_spinlock.c',
26   '<(src_dir)/src/audio/SDL_audio.c',
27   '<(src_dir)/src/audio/SDL_audiocvt.c',
28   '<(src_dir)/src/audio/SDL_audiodev.c',
29   '<(src_dir)/src/audio/SDL_audiotypecvt.c',
30   '<(src_dir)/src/audio/SDL_mixer.c',
31   '<(src_dir)/src/audio/SDL_wave.c',
32   '<(src_dir)/src/audio/dummy/SDL_dummyaudio.c',
33   '<(src_dir)/src/audio/android/SDL_androidaudio.c',
34   '<(src_dir)/src/cpuinfo/SDL_cpuinfo.c',
35   '<(src_dir)/src/dynapi/SDL_dynapi.c',
36   '<(src_dir)/src/events/SDL_clipboardevents.c',
37   '<(src_dir)/src/events/SDL_dropevents.c',
38   '<(src_dir)/src/events/SDL_events.c',
39   '<(src_dir)/src/events/SDL_gesture.c',
40   '<(src_dir)/src/events/SDL_keyboard.c',
41   '<(src_dir)/src/events/SDL_mouse.c',
42   '<(src_dir)/src/events/SDL_quit.c',
43   '<(src_dir)/src/events/SDL_touch.c',
44   '<(src_dir)/src/events/SDL_windowevents.c',
45   '<(src_dir)/src/file/SDL_rwops.c',
46   '<(src_dir)/src/haptic/SDL_haptic.c',
47   '<(src_dir)/src/joystick/SDL_gamecontroller.c',
48   '<(src_dir)/src/joystick/SDL_joystick.c',
49   '<(src_dir)/src/joystick/android/SDL_sysjoystick.c',
50   '<(src_dir)/src/power/SDL_power.c',
51   '<(src_dir)/src/power/android/SDL_syspower.c',
52   '<(src_dir)/src/loadso/dlopen/SDL_sysloadso.c',
53   '<(src_dir)/src/render/SDL_d3dmath.c',
54   '<(src_dir)/src/render/SDL_render.c',
55   '<(src_dir)/src/render/SDL_yuv_mmx.c',
56   '<(src_dir)/src/render/SDL_yuv_sw.c',
57   '<(src_dir)/src/render/direct3d/SDL_render_d3d.c',
58   '<(src_dir)/src/render/direct3d11/SDL_render_d3d11.c',
59   '<(src_dir)/src/render/opengl/SDL_render_gl.c',
60   '<(src_dir)/src/render/opengl/SDL_shaders_gl.c',
61   '<(src_dir)/src/render/opengles/SDL_render_gles.c',
62   '<(src_dir)/src/render/opengles2/SDL_render_gles2.c',
63   '<(src_dir)/src/render/opengles2/SDL_shaders_gles2.c',
64   '<(src_dir)/src/render/psp/SDL_render_psp.c',
65   '<(src_dir)/src/render/software/SDL_blendfillrect.c',
66   '<(src_dir)/src/render/software/SDL_blendline.c',
67   '<(src_dir)/src/render/software/SDL_blendpoint.c',
68   '<(src_dir)/src/render/software/SDL_drawline.c',
69   '<(src_dir)/src/render/software/SDL_drawpoint.c',
70   '<(src_dir)/src/render/software/SDL_render_sw.c',
71   '<(src_dir)/src/render/software/SDL_rotate.c',
72   '<(src_dir)/src/stdlib/SDL_getenv.c',
73   '<(src_dir)/src/stdlib/SDL_iconv.c',
74   '<(src_dir)/src/stdlib/SDL_malloc.c',
75   '<(src_dir)/src/stdlib/SDL_qsort.c',
76   '<(src_dir)/src/stdlib/SDL_stdlib.c',
77   '<(src_dir)/src/stdlib/SDL_string.c',
78   '<(src_dir)/src/thread/SDL_thread.c',
79   '<(src_dir)/src/timer/SDL_timer.c',
80   '<(src_dir)/src/video/SDL_RLEaccel.c',
81   '<(src_dir)/src/video/SDL_blit.c',
82   '<(src_dir)/src/video/SDL_blit_0.c',
83   '<(src_dir)/src/video/SDL_blit_1.c',
84   '<(src_dir)/src/video/SDL_blit_A.c',
85   '<(src_dir)/src/video/SDL_blit_N.c',
86   '<(src_dir)/src/video/SDL_blit_auto.c',
87   '<(src_dir)/src/video/SDL_blit_copy.c',
88   '<(src_dir)/src/video/SDL_blit_slow.c',
89   '<(src_dir)/src/video/SDL_bmp.c',
90   '<(src_dir)/src/video/SDL_clipboard.c',
91   '<(src_dir)/src/video/SDL_egl.c',
92   '<(src_dir)/src/video/SDL_fillrect.c',
93   '<(src_dir)/src/video/SDL_pixels.c',
94   '<(src_dir)/src/video/SDL_rect.c',
95   '<(src_dir)/src/video/SDL_shape.c',
96   '<(src_dir)/src/video/SDL_stretch.c',
97   '<(src_dir)/src/video/SDL_surface.c',
98   '<(src_dir)/src/video/SDL_video.c',
99   '<(src_dir)/src/video/android/SDL_androidgl.c',
100   '<(src_dir)/src/video/android/SDL_androidkeyboard.c',
101   '<(src_dir)/src/video/android/SDL_androidwindow.c',
102   '<(src_dir)/src/video/android/SDL_androidmouse.c',
103   '<(src_dir)/src/video/android/SDL_androidvideo.c',
104   '<(src_dir)/src/video/android/SDL_androidclipboard.c',
105   '<(src_dir)/src/video/android/SDL_androidtouch.c',
106   '<(src_dir)/src/video/android/SDL_androidevents.c',
107   '<(src_dir)/src/video/android/SDL_androidmessagebox.c',
108   '<(src_dir)/src/thread/pthread/SDL_systhread.c',
109   '<(src_dir)/src/thread/pthread/SDL_syssem.c',
110   '<(src_dir)/src/thread/pthread/SDL_sysmutex.c',
111   '<(src_dir)/src/thread/pthread/SDL_syscond.c',
112   '<(src_dir)/src/thread/pthread/SDL_systls.c',
113   '<(src_dir)/src/filesystem/android/SDL_sysfilesystem.c',
114   '<(src_dir)/src/timer/unix/SDL_systimer.c',
115   '<(src_dir)/src/core/android/SDL_android.c',
116   '<(src_dir)/src/haptic/dummy/SDL_syshaptic.c',
117   '<(src_dir)/src/main/android/SDL_android_main.c',
118 ],
119 'defines': [
120   'GL_GLEXT_PROTOTYPES',
121 ],
122 'cflags': [
123   '-fPIC',
124   '-O3',
125   '-fvisibility=hidden',
126 ],
127}
128