17ec681f3Smrg# Copyright © 2017-2019 Intel Corporation 27ec681f3Smrg# 37ec681f3Smrg# Permission is hereby granted, free of charge, to any person obtaining a copy 47ec681f3Smrg# of this software and associated documentation files (the "Software"), to deal 57ec681f3Smrg# in the Software without restriction, including without limitation the rights 67ec681f3Smrg# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 77ec681f3Smrg# copies of the Software, and to permit persons to whom the Software is 87ec681f3Smrg# furnished to do so, subject to the following conditions: 97ec681f3Smrg# 107ec681f3Smrg# The above copyright notice and this permission notice shall be included in 117ec681f3Smrg# all copies or substantial portions of the Software. 127ec681f3Smrg# 137ec681f3Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 147ec681f3Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 157ec681f3Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 167ec681f3Smrg# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 177ec681f3Smrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 187ec681f3Smrg# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 197ec681f3Smrg# SOFTWARE. 207ec681f3Smrg 217ec681f3Smrgfiles_libcrocus = files( 227ec681f3Smrg 'gen4_blorp_exec.h', 237ec681f3Smrg 'driinfo_crocus.h', 247ec681f3Smrg 'crocus_batch.c', 257ec681f3Smrg 'crocus_batch.h', 267ec681f3Smrg 'crocus_blit.c', 277ec681f3Smrg 'crocus_bufmgr.c', 287ec681f3Smrg 'crocus_bufmgr.h', 297ec681f3Smrg 'crocus_clear.c', 307ec681f3Smrg 'crocus_context.c', 317ec681f3Smrg 'crocus_context.h', 327ec681f3Smrg 'crocus_draw.c', 337ec681f3Smrg 'crocus_fence.c', 347ec681f3Smrg 'crocus_fence.h', 357ec681f3Smrg 'crocus_fine_fence.c', 367ec681f3Smrg 'crocus_fine_fence.h', 377ec681f3Smrg 'crocus_formats.c', 387ec681f3Smrg 'crocus_genx_macros.h', 397ec681f3Smrg 'crocus_genx_protos.h', 407ec681f3Smrg 'crocus_monitor.c', 417ec681f3Smrg 'crocus_pipe.h', 427ec681f3Smrg 'crocus_pipe_control.c', 437ec681f3Smrg 'crocus_program.c', 447ec681f3Smrg 'crocus_program_cache.c', 457ec681f3Smrg 'crocus_resolve.c', 467ec681f3Smrg 'crocus_resource.c', 477ec681f3Smrg 'crocus_resource.h', 487ec681f3Smrg 'crocus_screen.c', 497ec681f3Smrg 'crocus_screen.h', 507ec681f3Smrg 'crocus_disk_cache.c', 517ec681f3Smrg) 527ec681f3Smrg 537ec681f3Smrgcrocus_per_hw_ver_libs = [] 547ec681f3Smrgforeach v : ['40', '45', '50', '60', '70', '75', '80'] 557ec681f3Smrg crocus_per_hw_ver_libs += static_library( 567ec681f3Smrg 'crocus_per_hw_ver@0@'.format(v), 577ec681f3Smrg ['crocus_blorp.c', 'crocus_query.c', 'crocus_state.c', 'crocus_blt.c', gen_xml_pack], 587ec681f3Smrg include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_intel], 597ec681f3Smrg c_args : [ 607ec681f3Smrg no_override_init_args, c_sse2_args, 617ec681f3Smrg '-DGFX_VERx10=@0@'.format(v), 627ec681f3Smrg ], 637ec681f3Smrg gnu_symbol_visibility : 'hidden', 647ec681f3Smrg dependencies : [dep_libdrm, dep_valgrind, idep_genxml, idep_nir_headers], 657ec681f3Smrg ) 667ec681f3Smrgendforeach 677ec681f3Smrg 687ec681f3Smrglibcrocus = static_library( 697ec681f3Smrg 'crocus', 707ec681f3Smrg [files_libcrocus, gen_xml_pack], 717ec681f3Smrg include_directories : [ 727ec681f3Smrg inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_intel, 737ec681f3Smrg inc_gallium_drivers, 747ec681f3Smrg # these should not be necessary, but main/macros.h... 757ec681f3Smrg inc_mesa, inc_mapi 767ec681f3Smrg ], 777ec681f3Smrg c_args : [c_sse2_args], 787ec681f3Smrg cpp_args : [c_sse2_args], 797ec681f3Smrg gnu_symbol_visibility : 'hidden', 807ec681f3Smrg dependencies : [dep_libdrm, dep_valgrind, idep_genxml, idep_libintel_common, idep_nir_headers], 817ec681f3Smrg link_with : [ 827ec681f3Smrg crocus_per_hw_ver_libs, libintel_compiler, libintel_dev, libisl, 837ec681f3Smrg libblorp, libintel_perf 847ec681f3Smrg ], 857ec681f3Smrg) 867ec681f3Smrg 877ec681f3Smrgdriver_crocus = declare_dependency( 887ec681f3Smrg compile_args : '-DGALLIUM_CROCUS', 897ec681f3Smrg link_with : [libcrocus, libcrocuswinsys], 907ec681f3Smrg) 91