mirror of https://github.com/doitsujin/dxvk
[d3d10] Enable native builds
This started working at some point... may as well!
This commit is contained in:
parent
eea77b845f
commit
d83e184afd
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
global:
|
||||||
|
D3D10CoreCreateDevice;
|
||||||
|
D3D10CoreGetVersion;
|
||||||
|
D3D10CoreRegisterLayers;
|
||||||
|
|
||||||
|
local:
|
||||||
|
*;
|
||||||
|
};
|
|
@ -4,12 +4,22 @@ d3d10_core_src = [
|
||||||
'd3d10_core.cpp',
|
'd3d10_core.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
d3d10_core_ld_args = []
|
||||||
|
d3d10_core_link_depends = []
|
||||||
|
|
||||||
|
if platform != 'windows'
|
||||||
|
d3d10_core_ld_args += [ '-Wl,--version-script', join_paths(meson.current_source_dir(), 'd3d10core.sym') ]
|
||||||
|
d3d10_core_link_depends += files('d3d10core.sym')
|
||||||
|
endif
|
||||||
|
|
||||||
d3d10_core_dll = shared_library('d3d10core'+dll_ext, d3d10_core_src, d3d10_core_res,
|
d3d10_core_dll = shared_library('d3d10core'+dll_ext, d3d10_core_src, d3d10_core_res,
|
||||||
name_prefix : dxvk_name_prefix,
|
name_prefix : dxvk_name_prefix,
|
||||||
dependencies : [ d3d11_dep ],
|
dependencies : [ d3d11_dep ],
|
||||||
include_directories : dxvk_include_path,
|
include_directories : dxvk_include_path,
|
||||||
install : true,
|
install : true,
|
||||||
vs_module_defs : 'd3d10core'+def_spec_ext,
|
vs_module_defs : 'd3d10core'+def_spec_ext,
|
||||||
|
link_args : d3d10_core_ld_args,
|
||||||
|
link_depends : [ d3d10_core_link_depends ],
|
||||||
)
|
)
|
||||||
|
|
||||||
d3d10_core_dep = declare_dependency(
|
d3d10_core_dep = declare_dependency(
|
||||||
|
|
|
@ -20,14 +20,10 @@ if get_option('enable_d3d11')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('enable_d3d10')
|
if get_option('enable_d3d10')
|
||||||
if platform == 'windows'
|
if not get_option('enable_d3d11')
|
||||||
if not get_option('enable_d3d11')
|
error('D3D11 is required for D3D10.')
|
||||||
error('D3D11 is required for D3D10.')
|
|
||||||
endif
|
|
||||||
subdir('d3d10')
|
|
||||||
else
|
|
||||||
warning('Building D3D10 is not supported on non-Windows platforms')
|
|
||||||
endif
|
endif
|
||||||
|
subdir('d3d10')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('enable_d3d9')
|
if get_option('enable_d3d9')
|
||||||
|
|
Loading…
Reference in New Issue