meson: only build libglsl_util when needed

Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19600>
This commit is contained in:
Eric Engestrom
2023-01-17 17:57:43 +00:00
committed by Marge Bot
parent 0404918f61
commit e0adef2652
2 changed files with 10 additions and 8 deletions

View File

@@ -18,6 +18,15 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE. # SOFTWARE.
libglsl_util = static_library(
'glsl_util',
glsl_util_files,
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : dep_valgrind,
gnu_symbol_visibility : 'hidden',
build_by_default : false,
)
subdir('glcpp') subdir('glcpp')
bison_command = [] bison_command = []

View File

@@ -36,18 +36,11 @@ else
inc_amd_common_llvm = [] inc_amd_common_llvm = []
endif endif
libglsl_util = static_library( glsl_util_files = files(
'glsl_util',
files(
'mesa/main/extensions_table.c', 'mesa/main/extensions_table.c',
'mesa/program/prog_parameter.c', 'mesa/program/prog_parameter.c',
'mesa/program/symbol_table.c', 'mesa/program/symbol_table.c',
'mesa/program/dummy_errors.c', 'mesa/program/dummy_errors.c',
),
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : dep_valgrind,
gnu_symbol_visibility : 'hidden',
build_by_default : false,
) )
sha1_h = custom_target( sha1_h = custom_target(