Path: blob/21.2-virgl/src/gallium/targets/libgl-xlib/meson.build
4565 views
# Copyright © 2017 Intel Corporation12# Permission is hereby granted, free of charge, to any person obtaining a copy3# of this software and associated documentation files (the "Software"), to deal4# in the Software without restriction, including without limitation the rights5# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell6# copies of the Software, and to permit persons to whom the Software is7# furnished to do so, subject to the following conditions:89# The above copyright notice and this permission notice shall be included in10# all copies or substantial portions of the Software.1112# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR13# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,14# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE15# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER16# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,17# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE18# SOFTWARE.1920# TODO: support non-static targets21# Static targets are always enabled in autotools (unless you modify22# configure.ac)2324gallium_xlib_c_args = [25'-DGALLIUM_SOFTPIPE',26]27gallium_xlib_ld_args = []28gallium_xlib_link_with = []29gallium_xlib_link_depends = []3031if with_ld_version_script32gallium_xlib_ld_args += ['-Wl,--version-script', join_paths(meson.current_source_dir(), 'libgl-xlib.sym')]33gallium_xlib_link_depends += files('libgl-xlib.sym')34endif35if with_shared_glapi36gallium_xlib_link_with += libglapi37endif3839libgl = shared_library(40'GL',41files('xlib.c'),42include_directories : [43inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_gallium_winsys, inc_gallium_drivers,44include_directories('../../frontends/glx/xlib'),45],46c_args : [gallium_xlib_c_args],47gnu_symbol_visibility : 'hidden',48link_args : [ld_args_bsymbolic, ld_args_gc_sections, gallium_xlib_ld_args],49link_depends : gallium_xlib_link_depends,50link_with : [51libxlib, libws_xlib, libglapi_static,52libgallium, libmesa_gallium, gallium_xlib_link_with,53],54dependencies : [dep_x11, dep_thread, dep_clock, dep_unwind, driver_swrast, driver_swr, driver_virgl, driver_asahi],55install : true,56version : '1.5.0',57darwin_versions: '4.0.0',58)596061