2019-04-06 11:45:52 +03:00
|
|
|
dxgi_res = wrc_generator.process('version.rc')
|
2019-04-02 16:31:21 +02:00
|
|
|
|
2017-10-11 03:09:04 +02:00
|
|
|
dxgi_src = [
|
|
|
|
'dxgi_adapter.cpp',
|
2017-12-04 11:33:04 +01:00
|
|
|
'dxgi_enums.cpp',
|
2017-10-11 03:09:04 +02:00
|
|
|
'dxgi_factory.cpp',
|
2018-04-12 15:36:01 +02:00
|
|
|
'dxgi_format.cpp',
|
2017-10-11 03:09:04 +02:00
|
|
|
'dxgi_main.cpp',
|
2018-12-11 14:38:32 +01:00
|
|
|
'dxgi_monitor.cpp',
|
2018-05-24 12:31:04 +02:00
|
|
|
'dxgi_options.cpp',
|
2017-10-11 03:09:04 +02:00
|
|
|
'dxgi_output.cpp',
|
|
|
|
'dxgi_swapchain.cpp',
|
|
|
|
]
|
|
|
|
|
2022-10-06 01:22:17 +01:00
|
|
|
dxgi_ld_args = []
|
|
|
|
dxgi_link_depends = []
|
|
|
|
|
|
|
|
if platform != 'windows'
|
|
|
|
dxgi_ld_args += [ '-Wl,--version-script', join_paths(meson.current_source_dir(), 'dxgi.sym') ]
|
|
|
|
dxgi_link_depends += files('dxgi.sym')
|
|
|
|
endif
|
|
|
|
|
2019-04-06 11:45:52 +03:00
|
|
|
dxgi_dll = shared_library('dxgi'+dll_ext, dxgi_src, dxgi_res,
|
2022-10-05 21:04:59 +01:00
|
|
|
name_prefix : dxvk_name_prefix,
|
2017-10-11 03:09:04 +02:00
|
|
|
dependencies : [ dxvk_dep ],
|
2017-10-11 15:31:36 +02:00
|
|
|
include_directories : dxvk_include_path,
|
2018-03-06 20:34:34 +03:00
|
|
|
install : true,
|
2018-07-21 13:43:33 +03:00
|
|
|
vs_module_defs : 'dxgi'+def_spec_ext,
|
2022-10-06 01:22:17 +01:00
|
|
|
link_args : dxgi_ld_args,
|
|
|
|
link_depends : [ dxgi_link_depends ],
|
2022-02-22 23:34:02 +01:00
|
|
|
)
|
2017-10-11 03:09:04 +02:00
|
|
|
|
|
|
|
dxgi_dep = declare_dependency(
|
|
|
|
link_with : [ dxgi_dll ],
|
2022-02-22 23:34:02 +01:00
|
|
|
include_directories : [ dxvk_include_path ],
|
|
|
|
)
|