From d49dfe66cfb0e13094e5918b9857c4eb474a53f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 3 Nov 2010 15:21:51 +0000 Subject: [PATCH] st/xorg: Detect libkms with scons too. --- scons/gallium.py | 1 + src/gallium/state_trackers/xorg/SConscript | 3 +++ 2 files changed, 4 insertions(+) diff --git a/scons/gallium.py b/scons/gallium.py index 3c0ff905389..7374cf58d3b 100644 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -559,6 +559,7 @@ def generate(env): pkg_config_modules(env, 'x11', ['x11', 'xext']) pkg_config_modules(env, 'dri', ['libdrm']) pkg_config_modules(env, 'xorg', ['xorg-server']) + pkg_config_modules(env, 'kms', ['libkms']) # Custom builders and methods env.Tool('custom') diff --git a/src/gallium/state_trackers/xorg/SConscript b/src/gallium/state_trackers/xorg/SConscript index ffaa1c26846..bc7821f8a8d 100644 --- a/src/gallium/state_trackers/xorg/SConscript +++ b/src/gallium/state_trackers/xorg/SConscript @@ -14,6 +14,9 @@ env.Append(CPPPATH = [ env.ParseConfig('pkg-config --cflags --libs libdrm xorg-server') +if env['kms']: + env.Append(CPPDEFINES = ['HAVE_LIBKMS']) + conf = env.Configure() if conf.CheckHeader('X11/extensions/dpmsconst.h'): -- 2.30.2