Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ endif

configure_file(output: 'config.h', configuration: config_h)

raqm_ver_major = raqm_version[0].to_int()
raqm_ver_minor = raqm_version[1].to_int()
raqm_ver_micro = raqm_version[2].to_int()

version_h = configuration_data()
version_h.set('RAQM_VERSION_MAJOR', raqm_version[0].to_int())
version_h.set('RAQM_VERSION_MINOR', raqm_version[1].to_int())
version_h.set('RAQM_VERSION_MICRO', raqm_version[2].to_int())
version_h.set('RAQM_VERSION_MAJOR', raqm_ver_major)
version_h.set('RAQM_VERSION_MINOR', raqm_ver_minor)
version_h.set('RAQM_VERSION_MICRO', raqm_ver_micro)
version_h.set('RAQM_VERSION', meson.project_version())

configure_file(
Expand All @@ -32,11 +36,20 @@ configure_file(
raqm_headers = files('raqm.h')
install_headers(raqm_headers)

# ABI compatibility version should be that used for last non-meson release, 0.7.2
raqm_ver_compat = 701
raqm_ver_current = raqm_ver_major * 10000 + raqm_ver_minor * 100 + raqm_ver_micro
Comment thread
khaledhosny marked this conversation as resolved.

raqm_dylib_ver_compat = '@0@.0.0'.format(raqm_ver_compat)
raqm_dylib_ver_current = '@0@.0.0'.format(raqm_ver_current)
raqm_darwin_versions = [raqm_dylib_ver_compat, raqm_dylib_ver_current]

libraqm = library(
'raqm',
'raqm.c',
'raqm.h',
version: meson.project_version(),
darwin_versions: raqm_darwin_versions,
dependencies: deps,
c_args: ['-DHAVE_CONFIG_H'],
install: true,
Expand Down
Loading