OSDN Git Service

scons: Add X11 include path if X11 is available.
[android-x86/external-mesa.git] / scons / gallium.py
index 8e2090b..5195508 100755 (executable)
@@ -624,6 +624,9 @@ def generate(env):
     env.PkgCheckModules('DRM', ['libdrm >= 2.4.38'])
     env.PkgCheckModules('UDEV', ['libudev >= 151'])
 
+    if env['x11']:
+        env.Append(CPPPATH = env['X11_CPPPATH'])
+
     env['dri'] = env['x11'] and env['drm']
 
     # for debugging