diff --git a/docs/conf.py b/docs/conf.py index a5df3b8f1bf..a386b3550f5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -219,13 +219,14 @@ graphviz_output_format = 'svg' # -- Options for hawkmoth ------------------------------------------------- hawkmoth_root = os.path.abspath(os.pardir) +mesa_root = os.path.join(os.path.dirname(__file__), os.pardir) hawkmoth_clang = [ - '-Idocs/header-stubs/', - '-Iinclude/', - '-Isrc/', - '-Isrc/gallium/include/', - '-Isrc/intel/', - '-Isrc/mesa/', + '-I{}/docs/header-stubs/'.format(mesa_root), + '-I{}/include/'.format(mesa_root), + '-I{}/src/'.format(mesa_root), + '-I{}/src/gallium/include/'.format(mesa_root), + '-I{}/src/intel/'.format(mesa_root), + '-I{}/src/mesa/'.format(mesa_root), '-DHAVE_STRUCT_TIMESPEC', '-DHAVE_PTHREAD', '-DHAVE_ENDIAN_H',