Skip to content

Commit

Permalink
meson.build: only add lib prefix on Unix
Browse files Browse the repository at this point in the history
Signed-off-by: akarin <[email protected]>
  • Loading branch information
AkarinVS committed Oct 27, 2021
1 parent 56dedf1 commit 4a288cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ add_global_arguments(['-D_XOPEN_SOURCE=700'], language: 'c')
cc = meson.get_compiler('c')

gcc_syntax = cc.get_argument_syntax() == 'gcc'
is_windows = host_machine.system() == 'windows'

includedirs = ['include', 'src']

Expand All @@ -22,7 +23,7 @@ deps = []
# so we don't need to have VS fully installed
# in our build environment. Just the header files
# are enough.
if host_machine.system() == 'windows'
if is_windows
installdir = join_paths(get_option('libdir'), 'vapoursynth')
m_dep = []
else
Expand Down Expand Up @@ -53,7 +54,7 @@ shared_module('descale', sources,
dependencies: deps,
include_directories: includedirs,
link_with: libs,
name_prefix: 'lib',
name_prefix: is_windows ? '' : 'lib',
install: true,
install_dir: installdir
)

0 comments on commit 4a288cf

Please sign in to comment.