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