• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright © 2018 Rob Clark
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
21libfreedreno_drm_files = files(
22  'freedreno_bo.c',
23  'freedreno_bo_cache.c',
24  'freedreno_device.c',
25  'freedreno_drmif.h',
26  'freedreno_pipe.c',
27  'freedreno_priv.h',
28  'freedreno_ringbuffer.c',
29  'freedreno_ringbuffer.h',
30  'freedreno_ringbuffer_sp.c',
31  'freedreno_ringbuffer_sp.h',
32  'freedreno_ringbuffer_sp_reloc.h',
33)
34libfreedreno_drm_flags = []
35libfreedreno_drm_includes = [
36  inc_freedreno,
37  inc_include,
38  inc_src,
39  inc_mapi,
40  inc_mesa,
41  inc_gallium,
42  inc_gallium_aux,
43]
44
45libfreedreno_drm_msm_files = files(
46  'msm/msm_bo.c',
47  'msm/msm_device.c',
48  'msm/msm_pipe.c',
49  'msm/msm_priv.h',
50  'msm/msm_ringbuffer.c',
51  'msm/msm_ringbuffer_sp.c',
52)
53libfreedreno_drm_files += libfreedreno_drm_msm_files
54
55libfreedreno_drm_virtio_files = files(
56  'virtio/msm_proto.h',
57  'virtio/virtio_bo.c',
58  'virtio/virtio_device.c',
59  'virtio/virtio_pipe.c',
60  'virtio/virtio_priv.h',
61  'virtio/virtio_ringbuffer.c',
62  'virtio/virtio_ringbuffer.h',
63)
64if with_freedreno_virtio
65  libfreedreno_drm_files += libfreedreno_drm_virtio_files
66  libfreedreno_drm_flags += '-DHAVE_FREEDRENO_VIRTIO'
67  libfreedreno_drm_includes += inc_virtio_gpu
68endif
69
70libfreedreno_drm = static_library(
71  'freedreno_drm',
72  [
73    libfreedreno_drm_files,
74    freedreno_xml_header_files,
75  ],
76  include_directories : libfreedreno_drm_includes,
77  c_args : [no_override_init_args, libfreedreno_drm_flags],
78  gnu_symbol_visibility : 'hidden',
79  dependencies : [
80    dep_libdrm,
81    dep_valgrind,
82  ],
83  build_by_default : false,
84)
85
86