mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
st/xorg: Detect libkms with scons too.
This commit is contained in:
parent
12376d8ea3
commit
d49dfe66cf
2 changed files with 4 additions and 0 deletions
|
|
@ -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'):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue