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