meson: Avoid duplicate symbols.
authorJose Fonseca <jfonseca@vmware.com>
Tue, 10 Mar 2020 17:26:35 +0000 (17:26 +0000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 16 Mar 2020 11:52:26 +0000 (11:52 +0000)
commitf6dad10d0474cc80228636d6deb45b6025583566
tree98f0bf3dd613d2ba46ca037597e97a4e607b50bd
parent4b61ad372d51681a3fb41b2dc21d2d58eb2becac
meson: Avoid duplicate symbols.

All the stubs in src/compiler/glsl/glcpp/pp_standalone_scaffolding.c
are duplicate symbols.  They should only be used as replacement for
Mesa functions when building glcpp and glsl standalone compilers, but
in fact they are getting linked with Mesa.

This change fixes this by moving the standalone stubs to a
libglcpp_standalone target, that's only linked with the glcpp/glsl
tools.

Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Neha Bhende <bhenden@vmware.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4186>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4186>
src/compiler/glsl/glcpp/meson.build
src/compiler/glsl/meson.build