fdf66c021382d5649471a3b3f83ac0dcddf91f16
[mesa.git] / src / gallium / drivers / panfrost / meson.build
1 # Copyright © 2017 Intel Corporation
2 # Copyright © 2018 Alyssa Rosenzweig
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 files_panfrost = files(
23 'pan_public.h',
24 'pan_screen.c',
25 'pan_screen.h',
26 )
27
28 inc_panfrost = [
29 inc_common,
30 inc_gallium,
31 inc_gallium_aux,
32 inc_drm_uapi,
33 inc_include,
34 inc_src,
35 include_directories('include')
36 ]
37
38 libpanfrost = static_library(
39 'panfrost',
40 [files_panfrost],
41 dependencies: [
42 dep_thread,
43 idep_nir
44 ],
45 include_directories : inc_panfrost,
46 c_args : [c_vis_args, c_msvc_compat_args],
47 )
48
49 driver_panfrost = declare_dependency(
50 compile_args : ['-DGALLIUM_PANFROST', '-Wno-pointer-arith'],
51 link_with : [libpanfrost, libpanfrostwinsys],
52 )