1b8e80941Smrg# Copyright © 2017 Intel Corporation 2b8e80941Smrg 3b8e80941Smrg# Permission is hereby granted, free of charge, to any person obtaining a copy 4b8e80941Smrg# of this software and associated documentation files (the "Software"), to deal 5b8e80941Smrg# in the Software without restriction, including without limitation the rights 6b8e80941Smrg# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7b8e80941Smrg# copies of the Software, and to permit persons to whom the Software is 8b8e80941Smrg# furnished to do so, subject to the following conditions: 9b8e80941Smrg 10b8e80941Smrg# The above copyright notice and this permission notice shall be included in 11b8e80941Smrg# all copies or substantial portions of the Software. 12b8e80941Smrg 13b8e80941Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14b8e80941Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15b8e80941Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16b8e80941Smrg# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17b8e80941Smrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18b8e80941Smrg# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19b8e80941Smrg# SOFTWARE. 20b8e80941Smrg 21b8e80941Smrgfiles_i915 = files( 22b8e80941Smrg 'i915_batchbuffer.h', 23b8e80941Smrg 'i915_batch.h', 24b8e80941Smrg 'i915_blit.c', 25b8e80941Smrg 'i915_blit.h', 26b8e80941Smrg 'i915_clear.c', 27b8e80941Smrg 'i915_context.c', 28b8e80941Smrg 'i915_context.h', 29b8e80941Smrg 'i915_debug.c', 30b8e80941Smrg 'i915_debug_fp.c', 31b8e80941Smrg 'i915_debug.h', 32b8e80941Smrg 'i915_debug_private.h', 33b8e80941Smrg 'i915_flush.c', 34b8e80941Smrg 'i915_fpc_emit.c', 35b8e80941Smrg 'i915_fpc.h', 36b8e80941Smrg 'i915_fpc_optimize.c', 37b8e80941Smrg 'i915_fpc_translate.c', 38b8e80941Smrg 'i915_prim_emit.c', 39b8e80941Smrg 'i915_prim_vbuf.c', 40b8e80941Smrg 'i915_public.h', 41b8e80941Smrg 'i915_query.c', 42b8e80941Smrg 'i915_query.h', 43b8e80941Smrg 'i915_reg.h', 44b8e80941Smrg 'i915_resource_buffer.c', 45b8e80941Smrg 'i915_resource.c', 46b8e80941Smrg 'i915_resource.h', 47b8e80941Smrg 'i915_resource_texture.c', 48b8e80941Smrg 'i915_screen.c', 49b8e80941Smrg 'i915_screen.h', 50b8e80941Smrg 'i915_state.c', 51b8e80941Smrg 'i915_state_derived.c', 52b8e80941Smrg 'i915_state_dynamic.c', 53b8e80941Smrg 'i915_state_emit.c', 54b8e80941Smrg 'i915_state_fpc.c', 55b8e80941Smrg 'i915_state.h', 56b8e80941Smrg 'i915_state_immediate.c', 57b8e80941Smrg 'i915_state_inlines.h', 58b8e80941Smrg 'i915_state_sampler.c', 59b8e80941Smrg 'i915_state_static.c', 60b8e80941Smrg 'i915_surface.c', 61b8e80941Smrg 'i915_surface.h', 62b8e80941Smrg 'i915_winsys.h', 63b8e80941Smrg) 64b8e80941Smrg 65b8e80941Smrglibi915 = static_library( 66b8e80941Smrg 'i915', 67b8e80941Smrg files_i915, 68b8e80941Smrg c_args : [c_vis_args], 69b8e80941Smrg include_directories : [inc_include, inc_src, inc_gallium, inc_gallium_aux], 70b8e80941Smrg) 71b8e80941Smrg 72b8e80941Smrgdriver_i915 = declare_dependency( 73b8e80941Smrg compile_args : '-DGALLIUM_I915', 74b8e80941Smrg link_with : [libi915, libi915drm], 75b8e80941Smrg) 76