• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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# Mac specific files and settings for SDL
6
7{
8 #TODO what is really necessary here
9 'link_settings': {
10   'libraries': [
11     '-lm',
12     '-liconv',
13     '-lobjc',
14     '-lpthread',
15     '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
16     '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
17     '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
18     '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
19   ],
20 },
21 'sources': [
22   '<(src_dir)/src/SDL_assert.c',
23   '<(src_dir)/src/SDL_error.c',
24   '<(src_dir)/src/SDL_hints.c',
25   '<(src_dir)/src/SDL_log.c',
26   '<(src_dir)/src/atomic/SDL_atomic.c',
27   '<(src_dir)/src/atomic/SDL_spinlock.c',
28   '<(src_dir)/src/audio/SDL_audio.c',
29   '<(src_dir)/src/audio/SDL_audiocvt.c',
30   '<(src_dir)/src/audio/SDL_audiodev.c',
31   '<(src_dir)/src/audio/SDL_audiotypecvt.c',
32   '<(src_dir)/src/audio/SDL_mixer.c',
33   '<(src_dir)/src/audio/SDL_wave.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/libm/e_atan2.c',
50   '<(src_dir)/src/libm/e_log.c',
51   '<(src_dir)/src/libm/e_pow.c',
52   '<(src_dir)/src/libm/e_rem_pio2.c',
53   '<(src_dir)/src/libm/e_sqrt.c',
54   '<(src_dir)/src/libm/k_cos.c',
55   '<(src_dir)/src/libm/k_rem_pio2.c',
56   '<(src_dir)/src/libm/k_sin.c',
57   '<(src_dir)/src/libm/k_tan.c',
58   '<(src_dir)/src/libm/s_atan.c',
59   '<(src_dir)/src/libm/s_copysign.c',
60   '<(src_dir)/src/libm/s_cos.c',
61   '<(src_dir)/src/libm/s_fabs.c',
62   '<(src_dir)/src/libm/s_floor.c',
63   '<(src_dir)/src/libm/s_scalbn.c',
64   '<(src_dir)/src/libm/s_sin.c',
65   '<(src_dir)/src/libm/s_tan.c',
66   '<(src_dir)/src/power/SDL_power.c',
67   '<(src_dir)/src/render/SDL_d3dmath.c',
68   '<(src_dir)/src/render/SDL_render.c',
69   '<(src_dir)/src/render/SDL_yuv_mmx.c',
70   '<(src_dir)/src/render/SDL_yuv_sw.c',
71   '<(src_dir)/src/render/direct3d/SDL_render_d3d.c',
72   '<(src_dir)/src/render/direct3d11/SDL_render_d3d11.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/opengles/SDL_render_gles.c',
76   '<(src_dir)/src/render/opengles2/SDL_render_gles2.c',
77   '<(src_dir)/src/render/opengles2/SDL_shaders_gles2.c',
78   '<(src_dir)/src/render/psp/SDL_render_psp.c',
79   '<(src_dir)/src/render/software/SDL_blendfillrect.c',
80   '<(src_dir)/src/render/software/SDL_blendline.c',
81   '<(src_dir)/src/render/software/SDL_blendpoint.c',
82   '<(src_dir)/src/render/software/SDL_drawline.c',
83   '<(src_dir)/src/render/software/SDL_drawpoint.c',
84   '<(src_dir)/src/render/software/SDL_render_sw.c',
85   '<(src_dir)/src/render/software/SDL_rotate.c',
86   '<(src_dir)/src/stdlib/SDL_getenv.c',
87   '<(src_dir)/src/stdlib/SDL_iconv.c',
88   '<(src_dir)/src/stdlib/SDL_malloc.c',
89   '<(src_dir)/src/stdlib/SDL_qsort.c',
90   '<(src_dir)/src/stdlib/SDL_stdlib.c',
91   '<(src_dir)/src/stdlib/SDL_string.c',
92   '<(src_dir)/src/thread/SDL_thread.c',
93   '<(src_dir)/src/timer/SDL_timer.c',
94   '<(src_dir)/src/video/SDL_RLEaccel.c',
95   '<(src_dir)/src/video/SDL_blit.c',
96   '<(src_dir)/src/video/SDL_blit_0.c',
97   '<(src_dir)/src/video/SDL_blit_1.c',
98   '<(src_dir)/src/video/SDL_blit_A.c',
99   '<(src_dir)/src/video/SDL_blit_N.c',
100   '<(src_dir)/src/video/SDL_blit_auto.c',
101   '<(src_dir)/src/video/SDL_blit_copy.c',
102   '<(src_dir)/src/video/SDL_blit_slow.c',
103   '<(src_dir)/src/video/SDL_bmp.c',
104   '<(src_dir)/src/video/SDL_clipboard.c',
105   '<(src_dir)/src/video/SDL_egl.c',
106   '<(src_dir)/src/video/SDL_fillrect.c',
107   '<(src_dir)/src/video/SDL_pixels.c',
108   '<(src_dir)/src/video/SDL_rect.c',
109   '<(src_dir)/src/video/SDL_shape.c',
110   '<(src_dir)/src/video/SDL_stretch.c',
111   '<(src_dir)/src/video/SDL_surface.c',
112   '<(src_dir)/src/video/SDL_video.c',
113   '<(src_dir)/src/loadso/dlopen/SDL_sysloadso.c',
114   '<(src_dir)/src/video/cocoa/SDL_cocoaclipboard.m',
115   '<(src_dir)/src/video/cocoa/SDL_cocoaevents.m',
116   '<(src_dir)/src/video/cocoa/SDL_cocoakeyboard.m',
117   '<(src_dir)/src/video/cocoa/SDL_cocoamessagebox.m',
118   '<(src_dir)/src/video/cocoa/SDL_cocoamodes.m',
119   '<(src_dir)/src/video/cocoa/SDL_cocoamouse.m',
120   '<(src_dir)/src/video/cocoa/SDL_cocoamousetap.m',
121   '<(src_dir)/src/video/cocoa/SDL_cocoaopengl.m',
122   '<(src_dir)/src/video/cocoa/SDL_cocoashape.m',
123   '<(src_dir)/src/video/cocoa/SDL_cocoavideo.m',
124   '<(src_dir)/src/video/cocoa/SDL_cocoawindow.m',
125   '<(src_dir)/src/thread/pthread/SDL_systhread.c',
126   '<(src_dir)/src/thread/pthread/SDL_syssem.c',
127   '<(src_dir)/src/thread/pthread/SDL_sysmutex.c',
128   '<(src_dir)/src/thread/pthread/SDL_syscond.c',
129   '<(src_dir)/src/thread/pthread/SDL_systls.c',
130   '<(src_dir)/src/filesystem/cocoa/SDL_sysfilesystem.m',
131   '<(src_dir)/src/timer/unix/SDL_systimer.c',
132   '<(src_dir)/src/file/cocoa/SDL_rwopsbundlesupport.m',
133   '<(src_dir)/src/joystick/dummy/SDL_sysjoystick.c',
134   '<(src_dir)/src/haptic/dummy/SDL_syshaptic.c',
135   '<(src_dir)/src/main/dummy/SDL_dummy_main.c',
136   '<(src_dir)/src/test/SDL_test_assert.c',
137   '<(src_dir)/src/test/SDL_test_common.c',
138   '<(src_dir)/src/test/SDL_test_compare.c',
139   '<(src_dir)/src/test/SDL_test_crc32.c',
140   '<(src_dir)/src/test/SDL_test_font.c',
141   '<(src_dir)/src/test/SDL_test_fuzzer.c',
142   '<(src_dir)/src/test/SDL_test_harness.c',
143   '<(src_dir)/src/test/SDL_test_imageBlit.c',
144   '<(src_dir)/src/test/SDL_test_imageBlitBlend.c',
145   '<(src_dir)/src/test/SDL_test_imageFace.c',
146   '<(src_dir)/src/test/SDL_test_imagePrimitives.c',
147   '<(src_dir)/src/test/SDL_test_imagePrimitivesBlend.c',
148   '<(src_dir)/src/test/SDL_test_log.c',
149   '<(src_dir)/src/test/SDL_test_md5.c',
150   '<(src_dir)/src/test/SDL_test_random.c',
151   '<(src_dir)/src/SDL.c',
152 ],
153 'defines': [
154   '_REENTRANT'
155 ],
156 'cflags': [
157   '-fPIC',
158   '-O3',
159   '-mmmx',
160   '-m3dnow',
161   '-msse',
162   '-msse2',
163   '-fvisibility=hidden',
164 ],
165}
166