Skip to content

Commit

Permalink
[d3d8] Add d3d8.sym
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpyneDreams committed Jul 4, 2023
1 parent bc7afea commit 48bfd83
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/d3d8/d3d8.sym
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
global:
Direct3DCreate8;

local:
*;
};
9 changes: 8 additions & 1 deletion src/d3d8/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ d3d8_src = [
'd3d8_shader.cpp'
]

d3d8_ld_args = []
d3d8_link_depends = []

if platform != 'windows'
lib_d3d9 = d3d9_dep
d3d8_ld_args += [ '-Wl,--version-script', join_paths(meson.current_source_dir(), 'd3d8.sym') ]
d3d8_link_depends += files('d3d8.sym')
endif

d3d8_dll = shared_library('d3d8'+dll_ext, d3d8_src, d3d8_res,
Expand All @@ -21,6 +26,8 @@ d3d8_dll = shared_library('d3d8'+dll_ext, d3d8_src, d3d8_res,
include_directories : dxvk_include_path,
install : true,
objects : (not dxvk_is_msvc and platform == 'windows') ? 'd3d8'+def_spec_ext : [],
vs_module_defs : 'd3d8'+def_spec_ext
vs_module_defs : 'd3d8'+def_spec_ext,
link_args : d3d8_ld_args,
link_depends : [ d3d8_link_depends ],
)

0 comments on commit 48bfd83

Please sign in to comment.