mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[d3d10] Enable native builds
This started working at some point... may as well!
This commit is contained in:
parent
eea77b845f
commit
d83e184afd
9
src/d3d10/d3d10core.sym
Normal file
9
src/d3d10/d3d10core.sym
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
global:
|
||||
D3D10CoreCreateDevice;
|
||||
D3D10CoreGetVersion;
|
||||
D3D10CoreRegisterLayers;
|
||||
|
||||
local:
|
||||
*;
|
||||
};
|
@ -4,12 +4,22 @@ d3d10_core_src = [
|
||||
'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,
|
||||
name_prefix : dxvk_name_prefix,
|
||||
dependencies : [ d3d11_dep ],
|
||||
include_directories : dxvk_include_path,
|
||||
install : true,
|
||||
vs_module_defs : 'd3d10core'+def_spec_ext,
|
||||
link_args : d3d10_core_ld_args,
|
||||
link_depends : [ d3d10_core_link_depends ],
|
||||
)
|
||||
|
||||
d3d10_core_dep = declare_dependency(
|
||||
|
@ -20,14 +20,10 @@ if get_option('enable_d3d11')
|
||||
endif
|
||||
|
||||
if get_option('enable_d3d10')
|
||||
if platform == 'windows'
|
||||
if not get_option('enable_d3d11')
|
||||
error('D3D11 is required for D3D10.')
|
||||
endif
|
||||
subdir('d3d10')
|
||||
else
|
||||
warning('Building D3D10 is not supported on non-Windows platforms')
|
||||
if not get_option('enable_d3d11')
|
||||
error('D3D11 is required for D3D10.')
|
||||
endif
|
||||
subdir('d3d10')
|
||||
endif
|
||||
|
||||
if get_option('enable_d3d9')
|
||||
|
Loading…
x
Reference in New Issue
Block a user