Path: blob/21.2-virgl/src/gallium/drivers/iris/meson.build
4565 views
# Copyright © 2017-2019 Intel Corporation1#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.1920files_libiris = files(21'driinfo_iris.h',22'iris_batch.c',23'iris_batch.h',24'iris_binder.c',25'iris_binder.h',26'iris_blit.c',27'iris_border_color.c',28'iris_bufmgr.c',29'iris_bufmgr.h',30'iris_clear.c',31'iris_context.c',32'iris_context.h',33'iris_draw.c',34'iris_fence.c',35'iris_fence.h',36'iris_fine_fence.c',37'iris_fine_fence.h',38'iris_formats.c',39'iris_genx_macros.h',40'iris_genx_protos.h',41'iris_measure.c',42'iris_measure.h',43'iris_monitor.c',44'iris_perf.h',45'iris_perf.c',46'iris_performance_query.c',47'iris_pipe.h',48'iris_pipe_control.c',49'iris_program.c',50'iris_program_cache.c',51'iris_resolve.c',52'iris_resource.c',53'iris_resource.h',54'iris_screen.c',55'iris_screen.h',56'iris_disk_cache.c',57)5859iris_per_hw_ver_libs = []60foreach v : ['80', '90', '110', '120', '125']61iris_per_hw_ver_libs += static_library(62'iris_per_hw_ver@0@'.format(v),63['iris_blorp.c', 'iris_query.c', 'iris_state.c', gen_xml_pack],64include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_intel],65c_args : [66no_override_init_args, c_sse2_args,67'-DGFX_VERx10=@0@'.format(v),68],69gnu_symbol_visibility : 'hidden',70dependencies : [dep_libdrm, dep_valgrind, idep_genxml, idep_nir_headers],71)72endforeach7374libiris = static_library(75'iris',76[files_libiris, gen_xml_pack],77include_directories : [78inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_intel,79inc_gallium_drivers,80# these should not be necessary, but main/macros.h...81inc_mesa, inc_mapi82],83c_args : [c_sse2_args],84cpp_args : [c_sse2_args],85gnu_symbol_visibility : 'hidden',86dependencies : [dep_libdrm, dep_valgrind, idep_genxml, idep_libintel_common, idep_nir_headers],87link_with : [88iris_per_hw_ver_libs, libintel_compiler, libintel_dev, libisl,89libblorp, libintel_perf90],91)9293driver_iris = declare_dependency(94compile_args : '-DGALLIUM_IRIS',95link_with : [libiris, libiriswinsys],96)979899