Path: blob/21.2-virgl/src/gallium/frontends/dri/meson.build
4565 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.1920inc_st_dri = include_directories('.')2122files_libdri = files(23'dri_context.c',24'dri_context.h',25'dri_drawable.c',26'dri_drawable.h',27'dri_helpers.c',28'dri_helpers.h',29'dri_query_renderer.c',30'dri_query_renderer.h',31'dri_screen.c',32'dri_screen.h',33)3435if with_dri36files_libdri += files('drisw.c')37endif3839if with_dri240files_libdri += files('dri2.c')41endif4243libdri_c_args = []44if with_gallium_softpipe45libdri_c_args += '-DGALLIUM_SOFTPIPE'46endif4748libdri = static_library(49'dri',50with_platform_android ? [] : files_libdri,51include_directories : [52inc_include, inc_util, inc_mesa, inc_mapi, inc_src, inc_gallium,53inc_gallium_aux, inc_dri_common,54],55c_args : [libdri_c_args],56gnu_symbol_visibility : 'hidden',57dependencies : [58dep_libdrm,59idep_mesautil,60],61)626364