Path: blob/21.2-virgl/src/gallium/winsys/kmsro/drm/meson.build
4566 views
# Copyright © 2017 Broadcom1#2# 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:8#9# The above copyright notice and this permission notice shall be included in10# all copies or substantial portions of the Software.11#12# 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.1920kmsro_c_args = []21if with_gallium_etnaviv22kmsro_c_args += '-DGALLIUM_ETNAVIV'23endif24if with_gallium_lima25kmsro_c_args += '-DGALLIUM_LIMA'26endif27if with_gallium_v3d28kmsro_c_args += '-DGALLIUM_V3D'29endif30if with_gallium_vc431kmsro_c_args += '-DGALLIUM_VC4'32endif33if with_gallium_freedreno34kmsro_c_args += '-DGALLIUM_FREEDRENO'35endif36if with_gallium_panfrost37kmsro_c_args += '-DGALLIUM_PANFROST'38endif3940libkmsrowinsys = static_library(41'kmsrowinsys',42files('kmsro_drm_winsys.c'),43include_directories : [44inc_src, inc_include,45inc_gallium, inc_gallium_aux, inc_gallium_winsys,46],47c_args : [kmsro_c_args],48gnu_symbol_visibility : 'hidden',49dependencies: dep_libdrm,50)5152driver_kmsro = declare_dependency(53compile_args : '-DGALLIUM_KMSRO',54link_with : libkmsrowinsys,55)565758