Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Commit

Permalink
Add VS symbol export definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpakkane committed May 26, 2021
1 parent f334ea5 commit 9a54bb4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LICENSE.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2020 The Meson development team
Copyright (c) 2021 The Meson development team

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 8 additions & 0 deletions lib/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,17 @@ vorbisfile_sources = ['vorbisfile.c']

vorbisenc_sources = ['vorbisenc.c']

if host_machine.system() == 'windows'
# Seems a bit weird, but this is what upstream does.
vorbis_sources += vorbisenc_sources
endif

math_dep = meson.get_compiler('c').find_library('m', required: false)

vorbis_lib = library('vorbis', vorbis_sources,
include_directories : [incdir],
dependencies : [ogg_dep, math_dep],
vs_module_defs: '../win32/vorbis.def',
)

vorbis_dep = declare_dependency(link_with : vorbis_lib,
Expand All @@ -40,6 +46,7 @@ vorbisfile_lib = library('vorbisfile', vorbisfile_sources,
include_directories : [incdir],
link_with: vorbis_lib,
dependencies : [ogg_dep, math_dep],
vs_module_defs: '../win32/vorbisfile.def',
)

vorbisfile_dep = declare_dependency(link_with : vorbisfile_lib,
Expand All @@ -49,6 +56,7 @@ vorbisenc_lib = library('vorbisenc', vorbisenc_sources,
include_directories : [incdir],
link_with: vorbis_lib,
dependencies : [ogg_dep, math_dep],
vs_module_defs: '../win32/vorbisenc.def',
)

vorbisenc_dep = declare_dependency(link_with : vorbisenc_lib,
Expand Down

0 comments on commit 9a54bb4

Please sign in to comment.