• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright © 2017 Dylan Baker
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_libnouveau_codegen = files(
22  'nv50_ir.cpp',
23  'nv50_ir_bb.cpp',
24  'nv50_ir_build_util.cpp',
25  'nv50_ir_build_util.h',
26  'nv50_ir_driver.h',
27  'nv50_ir_emit_nv50.cpp',
28  'nv50_ir_from_common.cpp',
29  'nv50_ir_from_common.h',
30  'nv50_ir_from_nir.cpp',
31  'nv50_ir_from_tgsi.cpp',
32  'nv50_ir_graph.cpp',
33  'nv50_ir_graph.h',
34  'nv50_ir.h',
35  'nv50_ir_inlines.h',
36  'nv50_ir_lowering_helper.cpp',
37  'nv50_ir_lowering_helper.h',
38  'nv50_ir_lowering_nv50.cpp',
39  'nv50_ir_peephole.cpp',
40  'nv50_ir_print.cpp',
41  'nv50_ir_ra.cpp',
42  'nv50_ir_serialize.cpp',
43  'nv50_ir_ssa.cpp',
44  'nv50_ir_target.cpp',
45  'nv50_ir_target.h',
46  'nv50_ir_target_nv50.cpp',
47  'nv50_ir_target_nv50.h',
48  'nv50_ir_util.cpp',
49  'nv50_ir_util.h',
50  'nv50_ir_emit_gv100.cpp',
51  'nv50_ir_emit_gv100.h',
52  'nv50_ir_emit_gk110.cpp',
53  'nv50_ir_emit_gm107.cpp',
54  'nv50_ir_emit_nvc0.cpp',
55  'nv50_ir_lowering_gv100.cpp',
56  'nv50_ir_lowering_gv100.h',
57  'nv50_ir_lowering_gm107.cpp',
58  'nv50_ir_lowering_gm107.h',
59  'nv50_ir_lowering_nvc0.cpp',
60  'nv50_ir_lowering_nvc0.h',
61  'nv50_ir_target_gv100.cpp',
62  'nv50_ir_target_gv100.h',
63  'nv50_ir_target_gm107.cpp',
64  'nv50_ir_target_gm107.h',
65  'nv50_ir_target_nvc0.cpp',
66  'nv50_ir_target_nvc0.h',
67)
68
69libnouveau_codegen = static_library(
70  'nouveau_codegen',
71  files_libnouveau_codegen,
72  include_directories : [
73    inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_mapi, inc_mesa,
74  ],
75  gnu_symbol_visibility : 'hidden',
76  dependencies : [dep_libdrm, idep_mesautil, idep_nir_headers],
77)
78
79idep_nouveau_codegen = declare_dependency(
80  sources : [ 'nv50_ir_driver.h' ],
81  include_directories : include_directories('.'),
82)
83