From 49ce07878d406bf440975408f8996a5625c784f0 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Mon, 22 Dec 2014 11:27:35 -0500 Subject: egl/dri2: Fix build of dri2 egl driver with SCons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * egl/dri2 was missing a SConscript * Problem caught by Adrián Arroyo Calle --- src/egl/drivers/dri2/SConscript | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/egl/drivers/dri2/SConscript (limited to 'src/egl') diff --git a/src/egl/drivers/dri2/SConscript b/src/egl/drivers/dri2/SConscript new file mode 100644 index 00000000000..5b03107cbb3 --- /dev/null +++ b/src/egl/drivers/dri2/SConscript @@ -0,0 +1,40 @@ +Import('*') + +env = env.Clone() + +env.Append(CPPDEFINES = [ + 'DEFAULT_DRIVER_DIR=\\"\\"' +]) + +env.Append(CPPPATH = [ + '#/include', + '#/src/egl/main', + '#/src/loader', +]) + +sources = [ + 'egl_dri2.c', +] + +if env['x11']: + sources.append('platform_x11.c') + env.Append(CPPDEFINES = [ + 'HAVE_X11_PLATFORM', + ]) + #env.Append(CPPPATH = [ + # 'XCB_DRI2_CFLAGS', + #]) + +if env['drm']: + env.PkgUseModules('DRM') + +env.Prepend(LIBS = [ + libloader, +]) + +egl_dri2 = env.ConvenienceLibrary( + target = 'egl_dri2', + source = sources, +) + +Export('egl_dri2') -- cgit v1.2.3