Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mesa
Path: blob/21.2-virgl/src/freedreno/decode/meson.build
4565 views
1
# Copyright © 2020 Google, Inc
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
# Shared cmdstream decoding:
22
libfreedreno_cffdec = static_library(
23
'freedreno_cffdec',
24
[
25
'buffers.c',
26
'buffers.h',
27
'cffdec.c',
28
'cffdec.h',
29
'pager.c',
30
'pager.h',
31
'rnnutil.c',
32
'rnnutil.h',
33
'util.h',
34
],
35
include_directories: [
36
inc_freedreno,
37
inc_freedreno_rnn,
38
inc_include,
39
inc_src,
40
],
41
c_args : [ no_override_init_args ],
42
gnu_symbol_visibility: 'hidden',
43
dependencies: [],
44
link_with: [
45
libfreedreno_rnn,
46
libfreedreno_ir2, # for disasm_a2xx
47
libfreedreno_ir3, # for disasm_a3xx
48
_libmesa_util,
49
],
50
build_by_default: false,
51
)
52
53
if dep_libarchive.found()
54
libfreedreno_io = static_library(
55
'libfreedreno_io',
56
[
57
'io.c',
58
'io.h',
59
],
60
include_directories: [],
61
c_args : [no_override_init_args],
62
gnu_symbol_visibility: 'hidden',
63
dependencies: [
64
dep_libarchive,
65
],
66
build_by_default: false,
67
)
68
endif
69
70
if dep_lua.found() and dep_libarchive.found()
71
cffdump = executable(
72
'cffdump',
73
[
74
'cffdump.c',
75
'script.c',
76
'script.h'
77
],
78
include_directories: [
79
inc_freedreno,
80
inc_freedreno_rnn,
81
inc_include,
82
inc_src,
83
],
84
c_args : [no_override_init_args],
85
gnu_symbol_visibility: 'hidden',
86
dependencies: [
87
dep_lua,
88
],
89
link_with: [
90
libfreedreno_cffdec,
91
libfreedreno_io,
92
],
93
build_by_default: with_tools.contains('freedreno'),
94
install: install_fd_decode_tools,
95
)
96
endif
97
98
crashdec = executable(
99
'crashdec',
100
'crashdec.c',
101
include_directories: [
102
inc_freedreno,
103
inc_freedreno_rnn,
104
inc_include,
105
inc_src,
106
],
107
gnu_symbol_visibility: 'hidden',
108
dependencies: [],
109
link_with: [
110
libfreedreno_cffdec,
111
],
112
build_by_default: with_tools.contains('freedreno'),
113
install: install_fd_decode_tools,
114
)
115
116
if dep_libarchive.found()
117
pgmdump = executable(
118
'pgmdump',
119
'pgmdump.c',
120
include_directories: [
121
inc_freedreno,
122
inc_include,
123
inc_src,
124
],
125
gnu_symbol_visibility: 'hidden',
126
dependencies: [],
127
link_with: [
128
libfreedreno_cffdec,
129
libfreedreno_io,
130
libfreedreno_ir2, # for disasm_a2xx
131
libfreedreno_ir3, # for disasm_a3xx
132
],
133
build_by_default: with_tools.contains('freedreno'),
134
install: false,
135
)
136
pgmdump2 = executable(
137
'pgmdump2',
138
'pgmdump2.c',
139
include_directories: [
140
inc_freedreno,
141
inc_include,
142
inc_src,
143
],
144
gnu_symbol_visibility: 'hidden',
145
dependencies: [],
146
link_with: [
147
libfreedreno_cffdec,
148
libfreedreno_io,
149
libfreedreno_ir2, # for disasm_a2xx
150
libfreedreno_ir3, # for disasm_a3xx
151
],
152
build_by_default: with_tools.contains('freedreno'),
153
install: false,
154
)
155
endif
156
157