1 # Copyright © 2017 Intel Corporation
3 # Permission is hereby granted, free of charge, to any person obtaining a copy
4 # of this software and associated documentation files (the "Software"), to deal
5 # in the Software without restriction, including without limitation the rights
6 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 # copies of the Software, and to permit persons to whom the Software is
8 # furnished to do so, subject to the following conditions:
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27 _dri_drivers += libswrast_dri
28 _dri_link += 'swrast_dri.so'
32 _dri_drivers += libi915
33 _dri_link += 'i915_dri.so'
37 _dri_drivers += libi965
38 _dri_link += 'i965_dri.so'
42 _dri_drivers += libr100
43 _dri_link += 'radeon_dri.so'
47 _dri_drivers += libr200
48 _dri_link += 'r200_dri.so'
52 _dri_drivers += libnouveau_vieux
53 _dri_link += 'nouveau_vieux_dri.so'
57 libmesa_dri_drivers = shared_library(
60 link_whole : _dri_drivers,
62 libmegadriver_stub, libdricommon, libglapi,
66 dep_selinux, dep_libdrm, dep_m, dep_thread, dep_dl,
67 idep_nir, idep_xmlconfig, idep_mesautil,
69 link_args : [ld_args_build_id, ld_args_bsymbolic, ld_args_gc_sections],
70 # Will be deleted during installation, see install_megadrivers.py
72 install_dir : dri_drivers_path,
76 meson.add_install_script(
77 install_megadrivers_py.path(),
78 libmesa_dri_drivers.full_path(),
84 # This needs to be installed if any dri drivers (including gallium dri drivers)
89 dri_req_private = ['libdrm >= ' + _drm_ver]
95 description : 'Direct Rendering Infrastructure',
96 version : meson.project_version(),
97 variables : ['dridriverdir=' + dri_drivers_path],
98 requires_private : dri_req_private,