diff options
author | Trumeet <yuuta@yuuta.moe> | 2022-07-27 15:28:48 -0700 |
---|---|---|
committer | Trumeet <yuuta@yuuta.moe> | 2022-07-27 15:28:48 -0700 |
commit | 4a4238917aed458d25da752ef8019fd97fa88724 (patch) | |
tree | 182c8cc8c821c322e64146a7963dada1c440e94e | |
parent | d935aa8516f2eab5cbde467b9c92400dcf636bcb (diff) | |
download | acron-4a4238917aed458d25da752ef8019fd97fa88724.tar acron-4a4238917aed458d25da752ef8019fd97fa88724.tar.gz acron-4a4238917aed458d25da752ef8019fd97fa88724.tar.bz2 acron-4a4238917aed458d25da752ef8019fd97fa88724.zip |
build(libacron): subproject ready
-rw-r--r-- | client/libacron/meson.build | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/client/libacron/meson.build b/client/libacron/meson.build index bd79834..00b8680 100644 --- a/client/libacron/meson.build +++ b/client/libacron/meson.build @@ -8,17 +8,15 @@ project('libac', 'c', ) xtra_link_args = [] -xtra_c_args = [] +xtra_c_args = [ '-D_POSIX_C_SOURCE=200809L' ] if get_option('debug') == true - add_global_arguments('-DDEBUG', language : 'c') + xtra_c_args += '-DDEBUG' endif if meson.get_compiler('c').get_id() != 'msvc' - xtra_c_args = [ '-fvisibility=hidden' ] + xtra_c_args += '-fvisibility=hidden' endif -add_global_arguments('-D_POSIX_C_SOURCE=200809L', language : 'c') - install_headers([ 'include/common.h', 'include/events.h', @@ -72,6 +70,12 @@ pkg_mod.generate( description : 'Acron client library' ) +libac_dep = declare_dependency( + include_directories : inc, + link_with : libac, + dependencies : [ jsonc_dep, m_dep ] +) + # Warnings if get_option('debug') == true message('Debug build') |