-
Notifications
You must be signed in to change notification settings - Fork 4
/
meson.build
29 lines (24 loc) · 859 Bytes
/
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
# Project info
project('byteconvert', 'cpp', version:'2.0.0', license: 'MIT', default_options : ['cpp_std=c++11'])
# Import modules
pkg = import('pkgconfig')
# Include directories
libbyteconvert_include = include_directories('.')
# Run subscripts
subdir('ByteConvert') # Run meson script in libbyteconvert dir
subdir('examples') # Run meson script in examples dir
subdir('test')
# Package info
pkg.generate(
name : 'lib' + meson.project_name(),
description : 'Library for converting variables to bytes.',
version : meson.project_version(),
filebase : meson.project_name(),
url: 'https://github.com/SloCompTech/ByteConvert_cpp',
libraries : libbyteconvert
)
# Declare as dependency so it can be used elsewhere
libbyteconvert_dep = declare_dependency(
link_with: libbyteconvert,
include_directories: libbyteconvert_include
)