pihelper-c/meson.build

11 lines
508 B
Meson
Raw Normal View History

2024-07-15 02:34:07 +00:00
project('pihelper', 'c')
crypto = dependency('libcrypto')
curl = dependency('libcurl')
jsonc = dependency('json-c')
ssl = dependency('libssl')
incdir = include_directories('include')
lib_dependencies = [ crypto, curl, ssl, jsonc ]
lib_sources = [ 'src/config.c', 'src/log.c', 'src/network.c', 'src/pihelper.c' ]
lib = library('pihelper', lib_sources, include_directories: incdir, dependencies: lib_dependencies)
executable('pihelper', ['src/cli.h', 'src/cli.c'], link_with: lib, include_directories: incdir)