1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-10 01:29:14 +01:00
dxvk/src/dxgi/meson.build
Simon McVittie 2ff2c826a5 [build] Generate pkg-config metadata to link to DXVK libraries
This allows dependent projects to query the version and location of DXVK
via the pkg-config interface.

The include directories aren't yet set, because the headers aren't
installed; that will follow in a subsequent commit.

The naming of these pkg-config files is based on proposed Fedora packages
for DXVK 2.0, and is not compatible with older Fedora packages for DXVK
1.x (which used the naming convention dxvk-native-d3d9 and so on).
Packagers can create symlinks such as dxvk-native-d3d9.pc -> dxvk-d3d9.pc
if they want to retain compatibility with older names.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-05-21 19:18:12 +00:00

45 lines
1.1 KiB
Meson

dxgi_res = wrc_generator.process('version.rc')
dxgi_src = [
'dxgi_adapter.cpp',
'dxgi_enums.cpp',
'dxgi_factory.cpp',
'dxgi_format.cpp',
'dxgi_main.cpp',
'dxgi_monitor.cpp',
'dxgi_options.cpp',
'dxgi_output.cpp',
'dxgi_surface.cpp',
'dxgi_swapchain.cpp',
]
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
dxgi_dll = shared_library(dxvk_name_prefix+'dxgi', dxgi_src, dxgi_res,
dependencies : [ dxvk_dep ],
include_directories : dxvk_include_path,
install : true,
vs_module_defs : 'dxgi'+def_spec_ext,
link_args : dxgi_ld_args,
link_depends : [ dxgi_link_depends ],
kwargs : dxvk_so_version,
)
dxgi_dep = declare_dependency(
link_with : [ dxgi_dll ],
include_directories : [ dxvk_include_path ],
)
if platform != 'windows'
pkg.generate(dxgi_dll,
filebase: dxvk_pkg_prefix + 'dxgi',
subdirs: 'dxvk',
)
endif