Commit d49dfe66 authored by Jose Fonseca's avatar Jose Fonseca

st/xorg: Detect libkms with scons too.

parent 12376d8e
......@@ -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')
......
......@@ -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'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment