Home | History | Annotate | Download | only in linux
      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      '-lm',
     12      '-ldl',
     13      '-lpthread',
     14      '-lrt' 
     15    ],
     16  },
     17  'sources': [
     18    '<(src_dir)/src/SDL.c',
     19    '<(src_dir)/src/SDL_assert.c',
     20    '<(src_dir)/src/SDL_error.c',
     21    '<(src_dir)/src/SDL_hints.c',
     22    '<(src_dir)/src/SDL_log.c',
     23    '<(src_dir)/src/atomic/SDL_atomic.c',
     24    '<(src_dir)/src/atomic/SDL_spinlock.c',
     25    '<(src_dir)/src/audio/SDL_audio.c',
     26    '<(src_dir)/src/audio/SDL_audiocvt.c',
     27    '<(src_dir)/src/audio/SDL_audiodev.c',
     28    '<(src_dir)/src/audio/SDL_audiotypecvt.c',
     29    '<(src_dir)/src/audio/SDL_mixer.c',
     30    '<(src_dir)/src/audio/SDL_wave.c',
     31    '<(src_dir)/src/cpuinfo/SDL_cpuinfo.c',
     32    '<(src_dir)/src/dynapi/SDL_dynapi.c',
     33    '<(src_dir)/src/events/SDL_clipboardevents.c',
     34    '<(src_dir)/src/events/SDL_dropevents.c',
     35    '<(src_dir)/src/events/SDL_events.c',
     36    '<(src_dir)/src/events/SDL_gesture.c',
     37    '<(src_dir)/src/events/SDL_keyboard.c',
     38    '<(src_dir)/src/events/SDL_mouse.c',
     39    '<(src_dir)/src/events/SDL_quit.c',
     40    '<(src_dir)/src/events/SDL_touch.c',
     41    '<(src_dir)/src/events/SDL_windowevents.c',
     42    '<(src_dir)/src/file/SDL_rwops.c',
     43    '<(src_dir)/src/haptic/SDL_haptic.c',
     44    '<(src_dir)/src/joystick/SDL_gamecontroller.c',
     45    '<(src_dir)/src/joystick/SDL_joystick.c',
     46    '<(src_dir)/src/libm/e_atan2.c',
     47    '<(src_dir)/src/libm/e_log.c',
     48    '<(src_dir)/src/libm/e_pow.c',
     49    '<(src_dir)/src/libm/e_rem_pio2.c',
     50    '<(src_dir)/src/libm/e_sqrt.c',
     51    '<(src_dir)/src/libm/k_cos.c',
     52    '<(src_dir)/src/libm/k_rem_pio2.c',
     53    '<(src_dir)/src/libm/k_sin.c',
     54    '<(src_dir)/src/libm/k_tan.c',
     55    '<(src_dir)/src/libm/s_atan.c',
     56    '<(src_dir)/src/libm/s_copysign.c',
     57    '<(src_dir)/src/libm/s_cos.c',
     58    '<(src_dir)/src/libm/s_fabs.c',
     59    '<(src_dir)/src/libm/s_floor.c',
     60    '<(src_dir)/src/libm/s_scalbn.c',
     61    '<(src_dir)/src/libm/s_sin.c',
     62    '<(src_dir)/src/libm/s_tan.c',
     63    '<(src_dir)/src/power/SDL_power.c',
     64    '<(src_dir)/src/render/SDL_d3dmath.c',
     65    '<(src_dir)/src/render/SDL_render.c',
     66    '<(src_dir)/src/render/SDL_yuv_mmx.c',
     67    '<(src_dir)/src/render/SDL_yuv_sw.c',
     68    '<(src_dir)/src/render/direct3d/SDL_render_d3d.c',
     69    '<(src_dir)/src/render/direct3d11/SDL_render_d3d11.c',
     70    '<(src_dir)/src/render/opengl/SDL_render_gl.c',
     71    '<(src_dir)/src/render/opengl/SDL_shaders_gl.c',
     72    '<(src_dir)/src/render/opengles/SDL_render_gles.c',
     73    '<(src_dir)/src/render/opengles2/SDL_render_gles2.c',
     74    '<(src_dir)/src/render/opengles2/SDL_shaders_gles2.c',
     75    '<(src_dir)/src/render/psp/SDL_render_psp.c',
     76    '<(src_dir)/src/render/software/SDL_blendfillrect.c',
     77    '<(src_dir)/src/render/software/SDL_blendline.c',
     78    '<(src_dir)/src/render/software/SDL_blendpoint.c',
     79    '<(src_dir)/src/render/software/SDL_drawline.c',
     80    '<(src_dir)/src/render/software/SDL_drawpoint.c',
     81    '<(src_dir)/src/render/software/SDL_render_sw.c',
     82    '<(src_dir)/src/render/software/SDL_rotate.c',
     83    '<(src_dir)/src/stdlib/SDL_getenv.c',
     84    '<(src_dir)/src/stdlib/SDL_iconv.c',
     85    '<(src_dir)/src/stdlib/SDL_malloc.c',
     86    '<(src_dir)/src/stdlib/SDL_qsort.c',
     87    '<(src_dir)/src/stdlib/SDL_stdlib.c',
     88    '<(src_dir)/src/stdlib/SDL_string.c',
     89    '<(src_dir)/src/thread/SDL_thread.c',
     90    '<(src_dir)/src/timer/SDL_timer.c',
     91    '<(src_dir)/src/video/SDL_RLEaccel.c',
     92    '<(src_dir)/src/video/SDL_blit.c',
     93    '<(src_dir)/src/video/SDL_blit_0.c',
     94    '<(src_dir)/src/video/SDL_blit_1.c',
     95    '<(src_dir)/src/video/SDL_blit_A.c',
     96    '<(src_dir)/src/video/SDL_blit_N.c',
     97    '<(src_dir)/src/video/SDL_blit_auto.c',
     98    '<(src_dir)/src/video/SDL_blit_copy.c',
     99    '<(src_dir)/src/video/SDL_blit_slow.c',
    100    '<(src_dir)/src/video/SDL_bmp.c',
    101    '<(src_dir)/src/video/SDL_clipboard.c',
    102    '<(src_dir)/src/video/SDL_egl.c',
    103    '<(src_dir)/src/video/SDL_fillrect.c',
    104    '<(src_dir)/src/video/SDL_pixels.c',
    105    '<(src_dir)/src/video/SDL_rect.c',
    106    '<(src_dir)/src/video/SDL_shape.c',
    107    '<(src_dir)/src/video/SDL_stretch.c',
    108    '<(src_dir)/src/video/SDL_surface.c',
    109    '<(src_dir)/src/video/SDL_video.c',
    110    '<(src_dir)/src/loadso/dlopen/SDL_sysloadso.c',
    111    '<(src_dir)/src/video/x11/SDL_x11clipboard.c',
    112    '<(src_dir)/src/video/x11/SDL_x11dyn.c',
    113    '<(src_dir)/src/video/x11/SDL_x11events.c',
    114    '<(src_dir)/src/video/x11/SDL_x11framebuffer.c',
    115    '<(src_dir)/src/video/x11/SDL_x11keyboard.c',
    116    '<(src_dir)/src/video/x11/SDL_x11messagebox.c',
    117    '<(src_dir)/src/video/x11/SDL_x11modes.c',
    118    '<(src_dir)/src/video/x11/SDL_x11mouse.c',
    119    '<(src_dir)/src/video/x11/SDL_x11opengl.c',
    120    '<(src_dir)/src/video/x11/SDL_x11opengles.c',
    121    '<(src_dir)/src/video/x11/SDL_x11shape.c',
    122    '<(src_dir)/src/video/x11/SDL_x11touch.c',
    123    '<(src_dir)/src/video/x11/SDL_x11video.c',
    124    '<(src_dir)/src/video/x11/SDL_x11window.c',
    125    '<(src_dir)/src/video/x11/SDL_x11xinput2.c',
    126    '<(src_dir)/src/video/x11/edid-parse.c',
    127    '<(src_dir)/src/video/x11/imKStoUCS.c',
    128    '<(src_dir)/src/thread/pthread/SDL_systhread.c',
    129    '<(src_dir)/src/thread/pthread/SDL_syssem.c',
    130    '<(src_dir)/src/thread/pthread/SDL_sysmutex.c',
    131    '<(src_dir)/src/thread/pthread/SDL_syscond.c',
    132    '<(src_dir)/src/thread/pthread/SDL_systls.c',
    133    '<(src_dir)/src/filesystem/unix/SDL_sysfilesystem.c',
    134    '<(src_dir)/src/timer/unix/SDL_systimer.c',
    135    '<(src_dir)/src/core/linux/SDL_evdev.c',
    136    '<(src_dir)/src/joystick/dummy/SDL_sysjoystick.c',
    137    '<(src_dir)/src/haptic/dummy/SDL_syshaptic.c',
    138    '<(src_dir)/src/main/dummy/SDL_dummy_main.c',
    139  ],
    140  'defines': [ 
    141    '__LINUX__',
    142    '_REENTRANT'
    143  ],
    144  'cflags': [
    145    '-fPIC',
    146    '-O3',
    147    '-mmmx',
    148    '-m3dnow',
    149    '-msse',
    150    '-msse2',
    151    '-fvisibility=hidden',
    152  ],
    153 }
    154