xref: /aosp_15_r20/external/mesa3d/src/gallium/targets/d3d10umd/meson.build (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1# Copyright © 2021 VMware, Inc
2# Copyright © 2018 Intel Corporation
3# SPDX-License-Identifier: MIT
4
5libgallium_d3d10_def = custom_target(
6  'd3d10.def',
7  input: 'd3d10.def.in',
8  output : 'd3d10.def',
9  command : gen_vs_module_defs_normal_command,
10)
11
12gallium_d3d10_name = get_option('gallium-d3d10-dll-name')
13libgallium_d3d10 = shared_library(
14  gallium_d3d10_name,
15  ['d3d10_gdi.c'],
16  vs_module_defs : libgallium_d3d10_def,
17  include_directories : [
18    inc_include, inc_src, inc_gallium, inc_gallium_aux, inc_d3d10umd, inc_gallium_winsys, inc_gallium_winsys_sw, inc_gallium_drivers, inc_winddk
19  ],
20  link_whole : [libd3d10umd],
21  link_with : [
22    libgallium, libwsgdi
23  ],
24  dependencies : [
25    dep_ws2_32, idep_nir, driver_swrast, idep_mesautil
26  ],
27  name_prefix: '',
28  install : true,
29)
30
31if with_tests
32  test(
33    'd3d10',
34    executable(
35      'test_d3d10',
36      files('tests/tri.cpp'),
37      cpp_args : [cpp_msvc_compat_args],
38      dependencies : [cpp.find_library('d3d11')],
39      link_with : [libgallium_d3d10],
40    ),
41    suite : ['d3d10'],
42  )
43endif
44