• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright © 2017 Dylan Baker
2# Copyright © 2018 Intel Corporation
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# TODO: support non-static targets
23# Static targets are always enabled in autotools (unless you modify
24# configure.ac)
25
26nine_version = ['1', '0', '0']
27
28gallium_nine_c_args = [
29  '-DGALLIUM_DDEBUG',
30  '-DGALLIUM_RBUG',
31  '-DGALLIUME_TRACE',
32]
33gallium_nine_ld_args = []
34gallium_nine_link_depends = []
35
36if with_ld_version_script
37  gallium_nine_ld_args += ['-Wl,--version-script', join_paths(meson.current_source_dir(), 'd3dadapter9.sym')]
38  gallium_nine_link_depends += files('d3dadapter9.sym')
39endif
40
41libgallium_nine = shared_library(
42  'd3dadapter9',
43  [files('description.c', 'getproc.c', 'drm.c'), xmlpool_options_h],
44  include_directories : [
45    inc_include, inc_src, inc_loader, inc_mapi, inc_mesa, inc_util,
46    inc_dri_common, inc_gallium, inc_gallium_aux, inc_gallium_winsys,
47    inc_gallium_drivers, inc_d3d9,
48    include_directories('../../state_trackers/nine'),
49  ],
50  c_args : [c_vis_args, gallium_nine_c_args],
51  cpp_args : [cpp_vis_args],
52  link_args : [ld_args_gc_sections, gallium_nine_ld_args],
53  link_depends : gallium_nine_link_depends,
54  link_with : [
55    libgalliumvl_stub, libgallium, libnine_st, libmesa_util, libddebug,
56    librbug, libtrace, libpipe_loader_static, libws_null, libwsw, libswdri,
57    libswkmsdri,
58  ],
59  dependencies : [
60    dep_selinux, dep_expat, dep_libdrm, dep_llvm,
61    driver_swrast, driver_r300, driver_r600, driver_radeonsi, driver_nouveau,
62    driver_i915, driver_svga,
63  ],
64  name_prefix : '',
65  version : '.'.join(nine_version),
66  install : true,
67  install_dir : d3d_drivers_path,
68)
69
70pkg.generate(
71  name : 'd3d',
72  description : 'Native D3D driver modules',
73  version : '.'.join(nine_version),
74  requires_private : 'libdrm >= 2.4.75',
75  variables : ['moduledir=${prefix}/@0@'.format(d3d_drivers_path)],
76)
77