diff --git a/meson.build b/meson.build index e1e7f74..c510789 100644 --- a/meson.build +++ b/meson.build @@ -5,6 +5,10 @@ client_target = get_option('libexecdir') / 'hexagonrpc' cflags = ['-Wall', '-Wextra', '-Wpedantic', '-Wno-unused-parameter'] +if get_option('hexagonrpcd_verbose') + cflags += '-DHEXAGONRPC_VERBOSE' +endif + subdir('libhexagonrpc') subdir('hexagonrpcd') subdir('chrecd') diff --git a/meson.options b/meson.options new file mode 100644 index 0000000..62dd8f2 --- /dev/null +++ b/meson.options @@ -0,0 +1,2 @@ +option('hexagonrpcd_verbose', type : 'boolean', value : true, + description : 'Compile hexagonrpcd with extra logging for each remote method invocation')