forked from minhngoc25a/freetype2
parent
a11650d7fa
commit
896630bed6
15
meson.build
15
meson.build
|
@ -237,6 +237,20 @@ endif
|
|||
ft2_deps = []
|
||||
|
||||
|
||||
# Correct compatibility version for OS x
|
||||
#
|
||||
# OSX sets the compatibility_version (aka libtools version) differently from
|
||||
# the library name.
|
||||
#
|
||||
if host_machine.system() == 'darwin'
|
||||
# Maintain compatibility with autotools on macOS
|
||||
common_ldflags = [
|
||||
'-compatibility_version', ft2_pkgconfig_version.split('.')[0],
|
||||
'-current_version', ft2_pkgconfig_version
|
||||
]
|
||||
endif
|
||||
|
||||
|
||||
# Generate `ftoption.h` based on available dependencies.
|
||||
|
||||
process_header_command = [python_exe,
|
||||
|
@ -344,6 +358,7 @@ ft2_lib = library('freetype',
|
|||
dependencies: ft2_deps,
|
||||
install: true,
|
||||
version: ft2_so_version,
|
||||
link_args: common_ldflags,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue