Path: blob/21.2-virgl/src/gallium/drivers/vc4/meson.build
4570 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.1920files_libvc4 = files(21'kernel/vc4_drv.h',22'kernel/vc4_gem.c',23'kernel/vc4_packet.h',24'kernel/vc4_render_cl.c',25'kernel/vc4_validate.c',26'kernel/vc4_validate_shaders.c',27'vc4_blit.c',28'vc4_bufmgr.c',29'vc4_bufmgr.h',30'vc4_cl.c',31'vc4_cl_dump.c',32'vc4_cl_dump.h',33'vc4_cl.h',34'vc4_context.c',35'vc4_context.h',36'vc4_draw.c',37'vc4_emit.c',38'vc4_fence.c',39'vc4_formats.c',40'vc4_job.c',41'vc4_nir_lower_blend.c',42'vc4_nir_lower_io.c',43'vc4_nir_lower_txf_ms.c',44'vc4_opt_algebraic.c',45'vc4_opt_constant_folding.c',46'vc4_opt_copy_propagation.c',47'vc4_opt_dead_code.c',48'vc4_opt_peephole_sf.c',49'vc4_opt_small_immediates.c',50'vc4_opt_vpm.c',51'vc4_opt_coalesce_ff_writes.c',52'vc4_program.c',53'vc4_qir.c',54'vc4_qir_emit_uniform_stream_resets.c',55'vc4_qir_live_variables.c',56'vc4_qir_lower_uniforms.c',57'vc4_qir_schedule.c',58'vc4_qir_validate.c',59'vc4_qir.h',60'vc4_qpu.c',61'vc4_qpu_defines.h',62'vc4_qpu_disasm.c',63'vc4_qpu_emit.c',64'vc4_qpu.h',65'vc4_qpu_schedule.c',66'vc4_qpu_validate.c',67'vc4_query.c',68'vc4_register_allocate.c',69'vc4_reorder_uniforms.c',70'vc4_resource.c',71'vc4_resource.h',72'vc4_screen.c',73'vc4_screen.h',74'vc4_simulator.c',75'vc4_simulator_validate.h',76'vc4_state.c',77'vc4_tiling.c',78'vc4_tiling_lt.c',79'vc4_tiling.h',80'vc4_uniforms.c',81)8283vc4_c_args = []8485libvc4_neon = []86if host_machine.cpu_family() == 'arm'87libvc4_neon = static_library(88'vc4_neon',89'vc4_tiling_lt_neon.c',90include_directories : [91inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_broadcom92],93c_args : '-mfpu=neon',94)95vc4_c_args += '-DUSE_ARM_ASM'96endif9798if dep_simpenrose.found()99vc4_c_args += '-DUSE_VC4_SIMULATOR'100endif101102libvc4 = static_library(103'vc4',104[files_libvc4, v3d_xml_pack],105include_directories : [106inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_broadcom,107inc_gallium_drivers,108],109link_with: libvc4_neon,110c_args : [vc4_c_args],111gnu_symbol_visibility : 'hidden',112dependencies : [dep_simpenrose, dep_libdrm, dep_valgrind, idep_nir_headers],113build_by_default : false,114)115116driver_vc4 = declare_dependency(117compile_args : '-DGALLIUM_VC4',118link_with : [libvc4, libvc4winsys, libbroadcom_cle, libbroadcom_v3d],119dependencies : idep_nir,120)121122123