Commit 80a8abbd authored by Bastien Nocera's avatar Bastien Nocera

Merge branch 'macos-fixes' into 'master'

macOS fixes

Closes #4

See merge request !7
parents 8280732c 39a958c8
Pipeline #68207 passed with stage
in 3 minutes and 19 seconds
......@@ -43,15 +43,32 @@ endif
include = include_directories('..')
gclib_map = join_paths(meson.current_source_dir(), 'geocode-glib.map')
link_depends = []
link_args = []
if cc.has_link_argument('-Wl,--version-script,' + gclib_map)
link_depends += gclib_map
link_args += ['-Wl,--version-script,' + gclib_map]
endif
version = '0.0.0'
version_arr = version.split('.')
major_version = version_arr[0].to_int()
minor_version = version_arr[1].to_int()
micro_version = version_arr[2].to_int()
current = major_version + minor_version + 1
interface_age = micro_version
darwin_versions = [current, '@0@.@1@'.format(current, interface_age)]
libgcglib = shared_library('geocode-glib',
sources,
dependencies: deps,
include_directories: include,
link_depends: gclib_map,
link_args: [ '-Wl,--version-script,' + gclib_map ],
link_depends: link_depends,
link_args: link_args,
soversion: '0',
version: '0.0.0',
version: version,
darwin_versions: darwin_versions,
install: true)
install_headers(headers, subdir: header_subdir)
......
project('geocode-glib', 'c', version: '3.26.1')
project('geocode-glib', 'c', version: '3.26.1', meson_version : '>= 0.48.0')
gclib_version = meson.project_version() # set in project() below
ver_arr = gclib_version.split('.')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment