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