[Mesa-dev] [PATCH v3 16/48] meson: Add necessary defines for mesa_gallium on windows

Eric Anholt eric at anholt.net
Tue Aug 7 18:06:14 UTC 2018


Dylan Baker <dylan at pnwbakers.com> writes:

> ---
>  src/mesa/meson.build | 12 ++++++++++--
>  1 file changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/meson.build b/src/mesa/meson.build
> index 29633691ee7..fa086466443 100644
> --- a/src/mesa/meson.build
> +++ b/src/mesa/meson.build
> @@ -728,11 +728,19 @@ libmesa_classic = static_library(
>    build_by_default : false,
>  )
>  
> +_mesa_gallium_args = []
> +if with_platform_windows
> +  _mesa_gallium_args += ['-D_GDI32_', '-DBUILD_GL32']
> +  if not with_gles2
> +    _mesa_gallium_args += '-D_GLAPI_NO_EXPORTS'
> +  endif
> +endif

It would be nice to retain scons's comment as to what these defines are
doing.  Other than that, 15-16 have my r-b.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180807/f5eff485/attachment.sig>


More information about the mesa-dev mailing list