Path: blob/21.2-virgl/src/gallium/drivers/r300/meson.build
4570 views
# Copyright © 2017 Intel Corporation12# 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:89# The above copyright notice and this permission notice shall be included in10# all copies or substantial portions of the Software.1112# 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_r300 = files(21'r300_blit.c',22'r300_cb.h',23'r300_chipset.c',24'r300_chipset.h',25'r300_context.c',26'r300_context.h',27'r300_cs.h',28'r300_debug.c',29'r300_defines.h',30'r300_emit.c',31'r300_emit.h',32'r300_flush.c',33'r300_fs.c',34'r300_fs.h',35'r300_hyperz.c',36'r300_public.h',37'r300_query.c',38'r300_reg.h',39'r300_render.c',40'r300_render_stencilref.c',41'r300_render_translate.c',42'r300_resource.c',43'r300_screen_buffer.c',44'r300_screen_buffer.h',45'r300_screen.c',46'r300_screen.h',47'r300_shader_semantics.h',48'r300_state.c',49'r300_state_derived.c',50'r300_state_inlines.h',51'r300_texture.c',52'r300_texture_desc.c',53'r300_texture_desc.h',54'r300_texture.h',55'r300_tgsi_to_rc.c',56'r300_tgsi_to_rc.h',57'r300_transfer.c',58'r300_transfer.h',59'r300_vs.c',60'r300_vs_draw.c',61'r300_vs.h',62'compiler/memory_pool.c',63'compiler/memory_pool.h',64'compiler/r300_fragprog.c',65'compiler/r300_fragprog_emit.c',66'compiler/r300_fragprog.h',67'compiler/r300_fragprog_swizzle.c',68'compiler/r300_fragprog_swizzle.h',69'compiler/r3xx_fragprog.c',70'compiler/r3xx_vertprog.c',71'compiler/r3xx_vertprog_dump.c',72'compiler/r500_fragprog.c',73'compiler/r500_fragprog_emit.c',74'compiler/r500_fragprog.h',75'compiler/radeon_code.c',76'compiler/radeon_code.h',77'compiler/radeon_compiler.c',78'compiler/radeon_compiler.h',79'compiler/radeon_compiler_util.c',80'compiler/radeon_compiler_util.h',81'compiler/radeon_dataflow.c',82'compiler/radeon_dataflow_deadcode.c',83'compiler/radeon_dataflow.h',84'compiler/radeon_dataflow_swizzles.c',85'compiler/radeon_emulate_branches.c',86'compiler/radeon_emulate_branches.h',87'compiler/radeon_emulate_loops.c',88'compiler/radeon_emulate_loops.h',89'compiler/radeon_inline_literals.c',90'compiler/radeon_list.c',91'compiler/radeon_list.h',92'compiler/radeon_opcodes.c',93'compiler/radeon_opcodes.h',94'compiler/radeon_optimize.c',95'compiler/radeon_pair_dead_sources.c',96'compiler/radeon_pair_regalloc.c',97'compiler/radeon_pair_schedule.c',98'compiler/radeon_pair_translate.c',99'compiler/radeon_program_alu.c',100'compiler/radeon_program_alu.h',101'compiler/radeon_program.c',102'compiler/radeon_program_constants.h',103'compiler/radeon_program.h',104'compiler/radeon_program_pair.c',105'compiler/radeon_program_pair.h',106'compiler/radeon_program_print.c',107'compiler/radeon_program_tex.c',108'compiler/radeon_program_tex.h',109'compiler/radeon_regalloc.h',110'compiler/radeon_remove_constants.c',111'compiler/radeon_remove_constants.h',112'compiler/radeon_rename_regs.c',113'compiler/radeon_rename_regs.h',114'compiler/radeon_swizzle.h',115'compiler/radeon_variable.c',116'compiler/radeon_variable.h',117'compiler/radeon_vert_fc.c',118)119120libr300 = static_library(121'r300',122files_r300,123include_directories : [124inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_drivers,125inc_mesa,126],127gnu_symbol_visibility : 'hidden',128dependencies : [dep_libdrm_radeon, dep_llvm, idep_mesautil],129)130131driver_r300 = declare_dependency(132compile_args : '-DGALLIUM_R300',133link_with : [libr300, libradeonwinsys],134)135136if with_tests137test(138'r300_compiler_test',139executable(140'r300_compiler_test',141files(142'compiler/tests/r300_compiler_tests.c',143'compiler/tests/radeon_compiler_optimize_tests.c',144'compiler/tests/radeon_compiler_regalloc_tests.c',145'compiler/tests/radeon_compiler_util_tests.c',146'compiler/tests/rc_test_helpers.c',147'compiler/tests/unit_test.c',148),149c_args : [150'-DTEST_PATH="@0@"'.format(151join_paths(meson.current_source_dir(), 'compiler', 'tests')152)153],154include_directories : [155inc_src, inc_include, inc_gallium, inc_gallium_aux,156include_directories('compiler'),157],158link_with : [libr300, libgallium],159dependencies : [dep_m, dep_clock, dep_dl, dep_unwind, idep_mesautil],160),161suite : ['r300'],162)163endif164165166