1 #######################################################################
2 # SConscript for egl-static target
11 '#/src/gallium/auxiliary',
12 '#/src/gallium/drivers',
13 '#/src/gallium/include',
14 '#/src/gallium/winsys',
15 '#/src/gallium/state_trackers/egl',
16 '#/src/gallium/state_trackers/vega',
20 env.Append(CPPDEFINES = [
25 '_EGL_MAIN=_eglBuiltInDriverGALLIUM',
39 env.Append(CPPDEFINES = ['GALLIUM_LLVMPIPE'])
40 env.Prepend(LIBS = [llvmpipe])
48 if env['platform'] == 'windows':
49 sources.append('#src/egl/main/egl.def')
62 # OpenGL ES and OpenGL
64 env.Append(CPPDEFINES = [
69 env.Prepend(LIBPATH = [shared_glapi.dir])
70 # manually add LIBPREFIX on windows
71 glapi_name = 'glapi' if env['platform'] != 'windows' else 'libglapi'
72 env.Prepend(LIBS = [glapi_name, glsl, mesa])
76 env.Append(CPPDEFINES = ['FEATURE_VG=1'])
77 env.Prepend(LIBPATH = [openvg.dir])
78 # manually add LIBPREFIX on windows
79 openvg_name = 'OpenVG' if env['platform'] != 'windows' else 'libOpenVG'
80 env.Prepend(LIBS = [openvg_name, st_vega])
89 env.ParseConfig('pkg-config --cflags --libs xfixes')
93 env.ParseConfig('pkg-config --cflags --libs libdrm')
96 env.ParseConfig('pkg-config --cflags --libs libdrm_intel')
97 env.Append(CPPDEFINES = ['_EGL_PIPE_I915', '_EGL_PIPE_I965'])
106 if env['drm_radeon']:
107 env.Append(CPPDEFINES = ['_EGL_PIPE_R300', '_EGL_PIPE_R600'])
115 env.Append(CPPDEFINES = ['_EGL_PIPE_VMWGFX'])
122 env['LIBPREFIX'] = 'lib'
123 env['SHLIBPREFIX'] = 'lib'
125 egl_gallium = env.SharedLibrary(
130 env.Depends(egl_gallium, [openvg])
132 egl_gallium = env.InstallSharedLibrary(egl_gallium, version=(1, 4, 0))
134 env.Alias('egl-gallium', egl_gallium)