Path: blob/21.2-virgl/src/gallium/drivers/crocus/meson.build
4570 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_libcrocus = files(21'gen4_blorp_exec.h',22'driinfo_crocus.h',23'crocus_batch.c',24'crocus_batch.h',25'crocus_blit.c',26'crocus_bufmgr.c',27'crocus_bufmgr.h',28'crocus_clear.c',29'crocus_context.c',30'crocus_context.h',31'crocus_draw.c',32'crocus_fence.c',33'crocus_fence.h',34'crocus_fine_fence.c',35'crocus_fine_fence.h',36'crocus_formats.c',37'crocus_genx_macros.h',38'crocus_genx_protos.h',39'crocus_monitor.c',40'crocus_pipe.h',41'crocus_pipe_control.c',42'crocus_program.c',43'crocus_program_cache.c',44'crocus_resolve.c',45'crocus_resource.c',46'crocus_resource.h',47'crocus_screen.c',48'crocus_screen.h',49'crocus_disk_cache.c',50)5152crocus_per_hw_ver_libs = []53foreach v : ['40', '45', '50', '60', '70', '75', '80']54crocus_per_hw_ver_libs += static_library(55'crocus_per_hw_ver@0@'.format(v),56['crocus_blorp.c', 'crocus_query.c', 'crocus_state.c', 'crocus_blt.c', gen_xml_pack],57include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_intel],58c_args : [59no_override_init_args, c_sse2_args,60'-DGFX_VERx10=@0@'.format(v),61],62gnu_symbol_visibility : 'hidden',63dependencies : [dep_libdrm, dep_valgrind, idep_genxml, idep_nir_headers],64)65endforeach6667libcrocus = static_library(68'crocus',69[files_libcrocus, gen_xml_pack],70include_directories : [71inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_intel,72inc_gallium_drivers,73# these should not be necessary, but main/macros.h...74inc_mesa, inc_mapi75],76c_args : [c_sse2_args],77cpp_args : [c_sse2_args],78gnu_symbol_visibility : 'hidden',79dependencies : [dep_libdrm, dep_valgrind, idep_genxml, idep_libintel_common, idep_nir_headers],80link_with : [81crocus_per_hw_ver_libs, libintel_compiler, libintel_dev, libisl,82libblorp, libintel_perf83],84)8586driver_crocus = declare_dependency(87compile_args : '-DGALLIUM_CROCUS',88link_with : [libcrocus, libcrocuswinsys],89)909192