xref: /aosp_15_r20/external/mesa3d/src/panfrost/meson.build (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1# Copyright © 2018 Rob Clark
2# Copyright © 2019 Collabora
3# SPDX-License-Identifier: MIT
4
5inc_panfrost_hw = include_directories([
6   'include'
7])
8
9inc_panfrost = include_directories([
10   '.', 'include', 'shared', 'midgard', 'compiler', 'lib'
11])
12
13compile_args_panfrost = [
14  '-Wno-pointer-arith'
15]
16
17subdir('shared')
18subdir('util')
19subdir('midgard')
20subdir('compiler')
21
22if with_gallium_panfrost or with_panfrost_vk
23   subdir('lib')
24   subdir('perf')
25endif
26
27files_bifrost = files(
28  'compiler/cmdline.c',
29)
30
31bifrost_compiler = executable(
32  'bifrost_compiler',
33  [files_bifrost],
34  include_directories : [
35    inc_include,
36    inc_src,
37    inc_panfrost,
38    inc_panfrost_hw,
39 ],
40  dependencies : [
41    idep_nir,
42    idep_mesautil,
43    idep_bi_opcodes_h,
44    dep_libdrm,
45  ],
46  link_with : [
47    libpanfrost_bifrost,
48  ],
49  build_by_default : with_tools.contains('panfrost')
50)
51
52if with_panfrost_vk
53  subdir('vulkan')
54endif
55
56if with_perfetto and (with_datasources.contains('panfrost') or with_datasources.contains('auto'))
57  subdir('ds')
58endif
59
60if with_tools.contains('drm-shim')
61  subdir('drm-shim')
62endif
63
64if with_tools.contains('panfrost')
65   subdir('tools')
66endif
67