Path: blob/21.2-virgl/src/gallium/auxiliary/pipe-loader/meson.build
4561 views
# Copyright © 2017 Dylan Baker12# 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.1920files_pipe_loader = files(21'pipe_loader.c',22'pipe_loader.h',23'pipe_loader_priv.h',24'pipe_loader_sw.c',25'driinfo_gallium.h',26)2728libpipe_loader_defines = []29libpipe_loader_links = []3031if dep_libdrm.found()32files_pipe_loader += files('pipe_loader_drm.c')33libpipe_loader_links += libloader34endif35if with_dri36libpipe_loader_defines += '-DHAVE_PIPE_LOADER_DRI'37endif38if with_gallium_drisw_kms39libpipe_loader_defines += '-DHAVE_PIPE_LOADER_KMS'40endif4142libpipe_loader_static = static_library(43'pipe_loader_static',44files_pipe_loader,45include_directories : [46inc_util, inc_loader, inc_gallium, inc_include, inc_src, inc_gallium_aux,47inc_gallium_winsys,48],49c_args : [libpipe_loader_defines, '-DGALLIUM_STATIC_TARGETS=1'],50gnu_symbol_visibility : 'hidden',51link_with : [libpipe_loader_links],52dependencies : [dep_libdrm, idep_xmlconfig, idep_mesautil],53build_by_default : false,54)5556libpipe_loader_dynamic = static_library(57'pipe_loader_dynamic',58files_pipe_loader,59include_directories : [60inc_util, inc_loader, inc_gallium, inc_include, inc_src, inc_gallium_aux,61inc_gallium_winsys,62],63c_args : [64libpipe_loader_defines,65'-DPIPE_SEARCH_DIR="@0@"'.format(66join_paths(get_option('prefix'), get_option('libdir'), 'gallium-pipe')67)68],69gnu_symbol_visibility : 'hidden',70link_with : [libpipe_loader_links],71dependencies : [dep_libdrm, idep_xmlconfig, idep_mesautil],72build_by_default : false,73)747576