####################################################################### # SConscript for egl-apis target Import('*') if env['platform'] == 'windows': env = env.Clone() env.Append(CPPPATH = [ '#/src/gallium/state_trackers/vega', ]) env.Append(LIBS = [ 'gdi32', 'user32', 'kernel32', 'ws2_32', ]) env['no_import_lib'] = 1 drivers = [softpipe] if env['llvm']: drivers += [llvmpipe] drivers += [identity, trace, rbug] egl_gallium = env.SharedLibrary( target ='egl_gallium', source = ['egl.c', 'pipe_swrast.c'], LIBS = st_egl_gdi + ws_gdi + drivers + gallium + egl + env['LIBS'], ) env.InstallSharedLibrary(egl_gallium) api_libs = { 'OpenVG': vgapi + st_vega, } for name in api_libs.keys(): api = env.SharedLibrary( target = 'st_' + name, source = ['st_' + name + '.c'], LIBS = api_libs[name] + gallium + env['LIBS'], ) env.InstallSharedLibrary(api)