1# Copyright © 2017 Intel Corporation 2# SPDX-License-Identifier: MIT 3 4# TODO: support non-static targets 5# Static targets are always enabled in autotools (unless you modify 6# configure.ac) 7 8gallium_xlib_ld_args = [] 9gallium_xlib_link_with = [] 10gallium_xlib_link_depends = [] 11 12if with_ld_version_script 13 gallium_xlib_ld_args += ['-Wl,--version-script', join_paths(meson.current_source_dir(), 'libgl-xlib.sym')] 14 gallium_xlib_link_depends += files('libgl-xlib.sym') 15endif 16if with_shared_glapi 17 gallium_xlib_link_with += libglapi 18endif 19 20libgl = shared_library( 21 'GL', 22 files('xlib.c'), 23 include_directories : [ 24 inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_gallium_winsys, inc_gallium_drivers, 25 include_directories('../../frontends/glx/xlib'), 26 ], 27 gnu_symbol_visibility : 'hidden', 28 link_args : [ld_args_bsymbolic, ld_args_gc_sections, gallium_xlib_ld_args], 29 link_depends : gallium_xlib_link_depends, 30 link_whole : [libxlib, libglapi_static], 31 link_with : [ 32 libgalliumvl_stub, libws_xlib, 33 libgallium, libmesa, gallium_xlib_link_with, 34 ], 35 dependencies : [dep_x11, idep_mesautil, dep_thread, dep_clock, dep_unwind, driver_swrast, driver_virgl, driver_asahi], 36 install : true, 37 version : '1.5.0', 38 darwin_versions: '4.0.0', 39) 40