Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mesa
Path: blob/21.2-virgl/src/panfrost/lib/meson.build
4560 views
1
# Copyright © 2018 Rob Clark
2
# Copyright © 2019 Collabora
3
4
# Permission is hereby granted, free of charge, to any person obtaining a copy
5
# of this software and associated documentation files (the "Software"), to deal
6
# in the Software without restriction, including without limitation the rights
7
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
# copies of the Software, and to permit persons to whom the Software is
9
# furnished to do so, subject to the following conditions:
10
11
# The above copyright notice and this permission notice shall be included in
12
# all copies or substantial portions of the 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 THE
17
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
# SOFTWARE.
21
22
midgard_pack = custom_target(
23
'midgard_pack.h',
24
input : ['gen_pack.py', 'midgard.xml'],
25
output : 'midgard_pack.h',
26
command : [prog_python, '@INPUT@'],
27
capture : true,
28
)
29
30
idep_midgard_pack = declare_dependency(
31
sources : [midgard_pack],
32
include_directories : include_directories('.'),
33
)
34
35
pixel_format_versions = ['6', '7']
36
libpanfrost_pixel_format = []
37
38
foreach ver : pixel_format_versions
39
libpanfrost_pixel_format += static_library(
40
'pan-format-v' + ver,
41
['pan_format.c', midgard_pack],
42
include_directories : [
43
inc_src, inc_include, inc_gallium, inc_mesa, inc_panfrost_hw, inc_gallium_aux, inc_panfrost_hw
44
],
45
c_args : ['-DPAN_ARCH=' + ver],
46
gnu_symbol_visibility : 'hidden',
47
dependencies : [idep_midgard_pack, dep_libdrm],
48
)
49
endforeach
50
51
libpanfrost_lib_files = files(
52
'pan_encoder.h',
53
54
'pan_afbc.c',
55
'pan_attributes.c',
56
'pan_bo.c',
57
'pan_blend.c',
58
'pan_blitter.c',
59
'pan_clear.c',
60
'pan_cs.c',
61
'pan_indirect_dispatch.c',
62
'pan_indirect_draw.c',
63
'pan_samples.c',
64
'pan_tiler.c',
65
'pan_texture.c',
66
'pan_shader.c',
67
'pan_scoreboard.c',
68
'pan_scratch.c',
69
'pan_props.c',
70
'pan_util.c',
71
)
72
73
libpanfrost_decode_files = files(
74
'decode_common.c',
75
'decode.c',
76
)
77
78
libpanfrost_lib = static_library(
79
'panfrost_lib',
80
[libpanfrost_lib_files, midgard_pack],
81
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_panfrost_hw],
82
c_args : [no_override_init_args],
83
gnu_symbol_visibility : 'hidden',
84
dependencies: [dep_libdrm, idep_nir],
85
build_by_default : false,
86
link_with: [libpanfrost_pixel_format],
87
)
88
89
libpanfrost_decode = static_library(
90
'panfrost_decode',
91
[libpanfrost_decode_files, midgard_pack],
92
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_panfrost],
93
dependencies : idep_mesautil,
94
c_args : [no_override_init_args],
95
gnu_symbol_visibility : 'hidden',
96
build_by_default : false,
97
)
98
99
libpanfrost_dep = declare_dependency(
100
link_with: [libpanfrost_lib, libpanfrost_decode, libpanfrost_midgard, libpanfrost_bifrost, libpanfrost_pixel_format],
101
include_directories: [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_panfrost_hw, inc_panfrost],
102
dependencies: [dep_libdrm, idep_nir, idep_midgard_pack],
103
)
104
105