[build] Use .spec files instead of .def files in winelib build

This commit is contained in:
Jacek Caban 2018-07-15 19:13:05 +02:00 committed by Philip Rebohle
parent 635a43fefe
commit 06511aa72c
5 changed files with 9 additions and 2 deletions

View File

@ -30,6 +30,7 @@ if meson.get_cross_property('winelib', false)
lib_d3dcompiler_47 = declare_dependency(link_args: [ '-ld3dcompiler_47' ])
exe_ext = '.exe.so'
dll_ext = '.dll'
def_spec_ext = '.spec'
else
lib_vulkan = dxvk_compiler.find_library('vulkan-1', dirs : dxvk_library_path)
lib_d3d11 = dxvk_compiler.find_library('d3d11')
@ -39,6 +40,7 @@ else
endif
exe_ext = ''
dll_ext = ''
def_spec_ext = '.def'
endif
glsl_compiler = find_program('glslangValidator')

2
src/d3d11/d3d11.spec Normal file
View File

@ -0,0 +1,2 @@
@ stdcall D3D11CreateDevice(ptr long ptr long ptr long long ptr ptr ptr)
@ stdcall D3D11CreateDeviceAndSwapChain(ptr long ptr long ptr long long ptr ptr ptr ptr ptr)

View File

@ -34,7 +34,7 @@ d3d11_dll = shared_library('d3d11'+dll_ext, d3d11_src,
dependencies : [ dxvk_dep, dxgi_dep, dxbc_dep ],
include_directories : dxvk_include_path,
install : true,
vs_module_defs : 'd3d11.def',
objects : 'd3d11'+def_spec_ext,
override_options : ['cpp_std='+dxvk_cpp_std])
d3d11_dep = declare_dependency(

3
src/dxgi/dxgi.spec Normal file
View File

@ -0,0 +1,3 @@
@ stdcall CreateDXGIFactory(ptr ptr)
@ stdcall CreateDXGIFactory1(ptr ptr)
@ stdcall CreateDXGIFactory2(long ptr ptr)

View File

@ -22,7 +22,7 @@ dxgi_dll = shared_library('dxgi'+dll_ext, dxgi_src, glsl_generator.process(dxgi_
dependencies : [ dxvk_dep ],
include_directories : dxvk_include_path,
install : true,
vs_module_defs : 'dxgi'+def_spec_ext,
objects : 'dxgi'+def_spec_ext,
override_options : ['cpp_std='+dxvk_cpp_std])
dxgi_dep = declare_dependency(