1b8e80941Smrg# Copyright © 2018 Lima Project 2b8e80941Smrg# 3b8e80941Smrg# Permission is hereby granted, free of charge, to any person obtaining a 4b8e80941Smrg# copy of this software and associated documentation files (the "Software"), 5b8e80941Smrg# to deal in the Software without restriction, including without limitation 6b8e80941Smrg# the rights to use, copy, modify, merge, publish, distribute, sublicense, 7b8e80941Smrg# and/or sell copies of the Software, and to permit persons to whom the 8b8e80941Smrg# Software is furnished to do so, subject to the following conditions: 9b8e80941Smrg# 10b8e80941Smrg# The above copyright notice and this permission notice (including the next 11b8e80941Smrg# paragraph) shall be included in all copies or substantial portions of the 12b8e80941Smrg# Software. 13b8e80941Smrg# 14b8e80941Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15b8e80941Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16b8e80941Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17b8e80941Smrg# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18b8e80941Smrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19b8e80941Smrg# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 20b8e80941Smrg# IN THE SOFTWARE. 21b8e80941Smrg 22b8e80941Smrgfiles_lima = files( 23b8e80941Smrg 'ir/gp/gpir.h', 24b8e80941Smrg 'ir/gp/nir.c', 25b8e80941Smrg 'ir/gp/node.c', 26b8e80941Smrg 'ir/gp/lower.c', 27b8e80941Smrg 'ir/gp/scheduler.c', 28b8e80941Smrg 'ir/gp/instr.c', 29b8e80941Smrg 'ir/gp/codegen.h', 30b8e80941Smrg 'ir/gp/codegen.c', 31b8e80941Smrg 'ir/gp/reduce_scheduler.c', 32b8e80941Smrg 'ir/gp/value_regalloc.c', 33b8e80941Smrg 'ir/gp/physical_regalloc.c', 34b8e80941Smrg 'ir/gp/disasm.c', 35b8e80941Smrg 36b8e80941Smrg 'ir/pp/ppir.h', 37b8e80941Smrg 'ir/pp/nir.c', 38b8e80941Smrg 'ir/pp/node.c', 39b8e80941Smrg 'ir/pp/lower.c', 40b8e80941Smrg 'ir/pp/scheduler.c', 41b8e80941Smrg 'ir/pp/instr.c', 42b8e80941Smrg 'ir/pp/regalloc.c', 43b8e80941Smrg 'ir/pp/codegen.h', 44b8e80941Smrg 'ir/pp/codegen.c', 45b8e80941Smrg 'ir/pp/node_to_instr.c', 46b8e80941Smrg 'ir/pp/disasm.c', 47b8e80941Smrg 48b8e80941Smrg 'ir/lima_nir_lower_uniform_to_scalar.c', 49b8e80941Smrg 50b8e80941Smrg 'ir/lima_ir.h', 51b8e80941Smrg 52b8e80941Smrg 'lima_screen.c', 53b8e80941Smrg 'lima_screen.h', 54b8e80941Smrg 'lima_context.c', 55b8e80941Smrg 'lima_context.h', 56b8e80941Smrg 'lima_resource.c', 57b8e80941Smrg 'lima_resource.h', 58b8e80941Smrg 'lima_state.c', 59b8e80941Smrg 'lima_draw.c', 60b8e80941Smrg 'lima_program.c', 61b8e80941Smrg 'lima_query.c', 62b8e80941Smrg 'lima_bo.c', 63b8e80941Smrg 'lima_bo.h', 64b8e80941Smrg 'lima_submit.c', 65b8e80941Smrg 'lima_submit.h', 66b8e80941Smrg 'lima_util.c', 67b8e80941Smrg 'lima_util.h', 68b8e80941Smrg 'lima_texture.c', 69b8e80941Smrg 'lima_texture.h', 70b8e80941Smrg 'lima_fence.c', 71b8e80941Smrg 'lima_fence.h', 72b8e80941Smrg 'lima_tiling.c', 73b8e80941Smrg 'lima_tiling.h', 74b8e80941Smrg) 75b8e80941Smrg 76b8e80941Smrgliblima = static_library( 77b8e80941Smrg 'lima', 78b8e80941Smrg files_lima, 79b8e80941Smrg include_directories : [ 80b8e80941Smrg inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_drivers, 81b8e80941Smrg ], 82b8e80941Smrg dependencies : [dep_libdrm, idep_nir_headers], 83b8e80941Smrg) 84b8e80941Smrg 85b8e80941Smrgdriver_lima = declare_dependency( 86b8e80941Smrg compile_args : '-DGALLIUM_LIMA', 87b8e80941Smrg link_with : [liblima, liblimawinsys], 88b8e80941Smrg dependencies : idep_nir, 89b8e80941Smrg) 90