-
Notifications
You must be signed in to change notification settings - Fork 49
/
meson.build
43 lines (34 loc) · 1.06 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
project(
'erfa', 'c',
version: '2.0.1',
meson_version: '>=0.50.0',
)
cc = meson.get_compiler('c')
confdata = configuration_data()
# The historic versions use libtool-compatible versioning.
# This uses some gnarly math to define ABI versions, which we replicate here.
# The general formula is:
# libtool: C:R:A
# -soname: (C - A).A.R
libtool_version = [9, 1, 8]
soversion = '@0@.@1@.@2@'.format(
libtool_version[0] - libtool_version[2],
libtool_version[2],
libtool_version[1],
)
# API versions
version = meson.project_version().split('.')
confdata.set_quoted('PACKAGE_VERSION', meson.project_version())
confdata.set('PACKAGE_VERSION_MAJOR', version[0])
confdata.set('PACKAGE_VERSION_MINOR', version[1])
confdata.set('PACKAGE_VERSION_MICRO', version[2])
confdata.set_quoted('SOFA_VERSION', '20231011')
libm = cc.find_library('m', required: false)
subdir('src')
import('pkgconfig').generate(
liberfa,
filebase: 'erfa',
name: 'Erfa',
description: 'Essential Routines for Fundamental Astronomy',
)
meson.add_dist_script('./bootstrap.sh')