etnaviv: meson: add etnaviv_query_pm.[ch] to the sources
[mesa.git] / src / gallium / drivers / etnaviv / meson.build
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
21 files_etnaviv = files(
22 'hw/cmdstream.xml.h',
23 'hw/common.xml.h',
24 'hw/common_3d.xml.h',
25 'hw/isa.xml.h',
26 'hw/state_3d.xml.h',
27 'hw/state_blt.xml.h',
28 'hw/state.xml.h',
29 'etnaviv_asm.c',
30 'etnaviv_asm.h',
31 'etnaviv_blend.c',
32 'etnaviv_blend.h',
33 'etnaviv_blt.c',
34 'etnaviv_blt.h',
35 'etnaviv_clear_blit.c',
36 'etnaviv_clear_blit.h',
37 'etnaviv_compiler.c',
38 'etnaviv_compiler.h',
39 'etnaviv_context.c',
40 'etnaviv_context.h',
41 'etnaviv_debug.h',
42 'etnaviv_disasm.c',
43 'etnaviv_disasm.h',
44 'etnaviv_emit.c',
45 'etnaviv_emit.h',
46 'etnaviv_fence.c',
47 'etnaviv_fence.h',
48 'etnaviv_format.c',
49 'etnaviv_format.h',
50 'etnaviv_internal.h',
51 'etnaviv_query.c',
52 'etnaviv_query.h',
53 'etnaviv_query_hw.c',
54 'etnaviv_query_hw.h',
55 'etnaviv_query_sw.c',
56 'etnaviv_query_sw.h',
57 'etnaviv_query_pm.c',
58 'etnaviv_query_pm.h',
59 'etnaviv_rasterizer.c',
60 'etnaviv_rasterizer.h',
61 'etnaviv_resource.c',
62 'etnaviv_resource.h',
63 'etnaviv_rs.c',
64 'etnaviv_rs.h',
65 'etnaviv_screen.c',
66 'etnaviv_screen.h',
67 'etnaviv_shader.c',
68 'etnaviv_shader.h',
69 'etnaviv_state.c',
70 'etnaviv_state.h',
71 'etnaviv_surface.c',
72 'etnaviv_surface.h',
73 'etnaviv_texture.c',
74 'etnaviv_texture.h',
75 'etnaviv_texture_state.c',
76 'etnaviv_texture_state.h',
77 'etnaviv_tiling.c',
78 'etnaviv_tiling.h',
79 'etnaviv_transfer.c',
80 'etnaviv_transfer.h',
81 'etnaviv_translate.h',
82 'etnaviv_uniforms.c',
83 'etnaviv_uniforms.h',
84 'etnaviv_util.h',
85 'etnaviv_zsa.c',
86 'etnaviv_zsa.h',
87 )
88
89 libetnaviv = static_library(
90 'etnaviv',
91 files_etnaviv,
92 c_args : [c_vis_args],
93 include_directories : [inc_include, inc_src, inc_gallium, inc_gallium_aux],
94 dependencies : dep_libdrm_etnaviv,
95 )
96
97 etnaviv_compiler = executable(
98 'etnaviv_compiler',
99 'etnaviv_compiler_cmdline.c',
100 include_directories : [inc_include, inc_src, inc_gallium, inc_gallium_aux],
101 link_with : [libmesa_util, libgallium, libetnaviv],
102 dependencies : [dep_libdrm_etnaviv],
103 build_by_default : false,
104 )
105
106 driver_etnaviv = declare_dependency(
107 compile_args : '-DGALLIUM_ETNAVIV',
108 link_with : [libetnaviv, libetnavivdrm],
109 )