1 ####################################################################### 2 # SConscript for EGL 3 4 5 Import('*') 6 7 env = env.Clone() 8 9 env.Append(CPPDEFINES = [ 10 '_EGL_BUILT_IN_DRIVER_GALLIUM', 11 '_EGL_DRIVER_SEARCH_DIR=\\"\\"', 12 ]) 13 14 if env['platform'] == 'windows': 15 env.Append(CPPDEFINES = [ 16 '_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_WINDOWS', 17 '_EGL_OS_WINDOWS', 18 '_EGL_GET_CORE_ADDRESSES', 19 'KHRONOS_DLL_EXPORTS', 20 ]) 21 else: 22 env.Append(CPPDEFINES = [ 23 '_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_X11', 24 '_EGL_OS_UNIX', 25 ]) 26 27 env.Append(CPPPATH = [ 28 '#/include', 29 ]) 30 31 egl_sources = [ 32 'eglapi.c', 33 'eglarray.c', 34 'eglconfig.c', 35 'eglcontext.c', 36 'eglcurrent.c', 37 'egldisplay.c', 38 'egldriver.c', 39 'eglfallbacks.c', 40 'eglglobals.c', 41 'eglimage.c', 42 'egllog.c', 43 'eglmisc.c', 44 'eglmode.c', 45 'eglscreen.c', 46 'eglstring.c', 47 'eglsurface.c', 48 'eglsync.c', 49 ] 50 51 egl = env.ConvenienceLibrary( 52 target = 'egl', 53 source = egl_sources, 54 ) 55 56 Export('egl') 57