X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmeson.build;h=cefa1c9ac2803f6709b88d88d3829b600edff937;hb=442fd3d007d733a24e8d2473756467d616a134ac;hp=ddbcd7f3ae42819cae40caaa1146589f4ff30d57;hpb=93df862b6affb6b8507e40601212a58012bfa873;p=mesa.git diff --git a/src/meson.build b/src/meson.build index ddbcd7f3ae4..cefa1c9ac28 100644 --- a/src/meson.build +++ b/src/meson.build @@ -26,6 +26,7 @@ inc_src = include_directories('.') inc_gallium = include_directories('gallium/include') inc_gallium_aux = include_directories('gallium/auxiliary') inc_amd_common = include_directories('amd/common') +inc_amd_common_llvm = include_directories('amd/llvm') libglsl_util = static_library( 'glsl_util', @@ -111,22 +112,12 @@ endif # This must be after at least mesa, glx, and gallium, since libgl will be # defined in one of those subdirs depending on the glx provider. -if with_glx != 'disabled' - # If using glvnd the pkg-config header should not point to GL_mesa, it should - # point to GL. glvnd is only available on unix like platforms so adding -l - # should be safe here - # TODO: in the glvnd case glvnd itself should really be providing this. - if with_glvnd and glvnd_missing_pc_files - _gl = '-L${libdir} -lGL' - else - _gl = libgl - endif - +if with_glx != 'disabled' and not with_glvnd pkg.generate( name : 'gl', description : 'Mesa OpenGL Library', version : meson.project_version(), - libraries : _gl, + libraries : libgl, libraries_private : gl_priv_libs, requires_private : gl_priv_reqs, variables : ['glx_tls=yes'],