1 # Copyright © 2020 Google, Inc
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:
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
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
21 dep_lua = dependency('lua53', required: false)
22 if not dep_lua.found()
23 dep_lua = dependency('lua52', required: false)
25 if not dep_lua.found()
26 dep_lua = dependency('lua', required: false)
29 dep_libarchive = dependency('libarchive', required: false)
31 # Shared cmdstream decoding:
32 libfreedreno_cffdec = static_library(
47 include_directories: [
53 c_args : [ no_override_init_args ],
54 gnu_symbol_visibility: 'hidden',
58 libfreedreno_ir3, # for disasm_a3xx
60 build_by_default: false,
63 if dep_libarchive.found()
64 libfreedreno_io = static_library(
70 include_directories: [],
71 c_args : [no_override_init_args],
72 gnu_symbol_visibility: 'hidden',
76 build_by_default: false,
80 if dep_lua.found() and dep_libarchive.found()
88 include_directories: [
94 c_args : [no_override_init_args],
95 gnu_symbol_visibility: 'hidden',
103 build_by_default: with_tools.contains('freedreno'),
104 install : with_tools.contains('freedreno'),
108 crashdec = executable(
111 include_directories: [
117 gnu_symbol_visibility: 'hidden',
122 build_by_default: with_tools.contains('freedreno'),
123 install : with_tools.contains('freedreno'),
126 if dep_libarchive.found()
127 pgmdump = executable(
130 include_directories: [
135 gnu_symbol_visibility: 'hidden',
140 libfreedreno_ir3, # for disasm_a3xx
142 build_by_default: with_tools.contains('freedreno'),
145 pgmdump2 = executable(
148 include_directories: [
153 gnu_symbol_visibility: 'hidden',
158 libfreedreno_ir3, # for disasm_a3xx
160 build_by_default: with_tools.contains('freedreno'),