st/xorg: Detect libkms with scons too.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 3 Nov 2010 15:21:51 +0000 (15:21 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 3 Nov 2010 15:21:51 +0000 (15:21 +0000)
scons/gallium.py
src/gallium/state_trackers/xorg/SConscript

index 3c0ff905389f207344bc6c18ce89a0e27e16ec1c..7374cf58d3b1c7a772b20a9ecfff664081f5bb5a 100644 (file)
@@ -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')
index ffaa1c2684636f9e0af7f25dc097bbb1bfa7a86d..bc7821f8a8d40f04ded09003c080b4fbd6e07eac 100644 (file)
@@ -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'):