vcpkg/ports/fribidi/fix-win-static-suffix.patch
Daniel 92f6eb402a
[fribidi] Update to 1.0.10 (#12517)
* [fribidi] Update to 1.0.10

* [fribidi] Disable tests and executables

* [fribidi] Apply FRIBIDI_LIB_STATIC to static builds

Co-authored-by: wangli28 <wangli28@beyondsoft.com>
2020-08-10 15:33:47 -07:00

26 lines
802 B
Diff

diff --git a/lib/meson.build b/lib/meson.build
index aaf2aed..3fe8937 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -71,6 +71,10 @@ fribidi_sources = [
'fribidi-shape.c',
]
+libsuffix = []
+if host_machine.system() == 'windows' and get_option('default_library') == 'static'
+ libsuffix = 'lib'
+endif
libfribidi = library('fribidi',
fribidi_sources, fribidi_unicode_version_h, fribidi_config_h,
generated_tab_include_files, config_h,
@@ -78,7 +82,8 @@ libfribidi = library('fribidi',
c_args: ['-DHAVE_CONFIG_H', '-DFRIBIDI_BUILD'] + fribidi_static_cargs + visibility_args,
version: libversion,
soversion: soversion,
- install: true)
+ install: true,
+ name_suffix: libsuffix)
libfribidi_dep = declare_dependency(link_with: libfribidi,
include_directories: incs,