Cleanup meson build
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
22
meson.build
22
meson.build
@@ -1,10 +1,22 @@
|
||||
project('glorytun', 'c',
|
||||
version: run_command('./version.sh').stdout()
|
||||
version: run_command('./version.sh').stdout(),
|
||||
license: 'BSD-3-Clause',
|
||||
default_options : [ 'buildtype=debugoptimized' ]
|
||||
)
|
||||
|
||||
add_global_arguments('-DPACKAGE_VERSION="'+meson.project_version()+'"', language : 'c')
|
||||
|
||||
executable('glorytun', install: true,
|
||||
sources: [ 'src/main.c', 'src/common.c', 'src/option.c', 'src/tun.c', 'src/iface.c', 'mud/mud.c' ],
|
||||
dependencies: [ dependency('libsodium', version : '>=1.0.4') ]
|
||||
)
|
||||
src = [
|
||||
'src/common.c',
|
||||
'src/iface.c',
|
||||
'src/option.c',
|
||||
'src/tun.c',
|
||||
'mud/mud.c',
|
||||
'src/main.c'
|
||||
]
|
||||
|
||||
deps = [
|
||||
dependency('libsodium', version : '>=1.0.4')
|
||||
]
|
||||
|
||||
executable('glorytun', install: true, sources: src, dependencies: deps)
|
||||
|
||||
Reference in New Issue
Block a user