Switch to library from static library… (#16)
* Switch to library from static library and add back the version and soversion attributes. * Minor rearrangement to avoid duplication of literals. * Let the soname be determined from the version number.
This commit is contained in:
parent
0c1eda7b91
commit
7b67bd437e
24
meson.build
24
meson.build
|
@ -1,9 +1,12 @@
|
||||||
project('tinyendian', 'd',
|
# -*- mode: python; -*-
|
||||||
meson_version: '>=0.40',
|
|
||||||
version: '0.2.0'
|
|
||||||
)
|
|
||||||
|
|
||||||
project_soversion = '0'
|
project(
|
||||||
|
'tinyendian',
|
||||||
|
'd',
|
||||||
|
meson_version: '>=0.41',
|
||||||
|
version: '0.2.0',
|
||||||
|
default_options: ['buildtype=release'],
|
||||||
|
)
|
||||||
|
|
||||||
src_dir = include_directories('source/')
|
src_dir = include_directories('source/')
|
||||||
pkgc = import('pkgconfig')
|
pkgc = import('pkgconfig')
|
||||||
|
@ -11,15 +14,20 @@ pkgc = import('pkgconfig')
|
||||||
tinyendian_src = [
|
tinyendian_src = [
|
||||||
'source/tinyendian.d'
|
'source/tinyendian.d'
|
||||||
]
|
]
|
||||||
|
|
||||||
install_headers(tinyendian_src, subdir: 'd/')
|
install_headers(tinyendian_src, subdir: 'd/')
|
||||||
|
|
||||||
tinyendian_lib = static_library('tinyendian',
|
tinyendian_lib = library(
|
||||||
|
meson.project_name(),
|
||||||
[tinyendian_src],
|
[tinyendian_src],
|
||||||
include_directories: [src_dir],
|
include_directories: [src_dir],
|
||||||
|
version: meson.project_version(),
|
||||||
|
pic: true,
|
||||||
install: true,
|
install: true,
|
||||||
pic: true
|
|
||||||
)
|
)
|
||||||
pkgc.generate(name: 'tinyendian',
|
|
||||||
|
pkgc.generate(
|
||||||
|
name: meson.project_name(),
|
||||||
libraries: tinyendian_lib,
|
libraries: tinyendian_lib,
|
||||||
subdirs: 'd/',
|
subdirs: 'd/',
|
||||||
version: meson.project_version(),
|
version: meson.project_version(),
|
||||||
|
|
Loading…
Reference in a new issue