tree-wide: check if necessary cflags dependencies are set
This makes each `foo_cflags` dependency define a `SYSTEMD_CFLAGS_MARKER_FOO` macro, and checks if the macro is set when headers provided by external libraries are included. With this, we can fail fast at compile time if necessary `_cflags` dependencies are omitted in meson.build. Missing dependencies found by this mechanism have been added across the tree.
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#ifndef SYSTEMD_CFLAGS_MARKER_LIBOPENSSL
|
||||
# error "missing libopenssl_cflags in meson dependency."
|
||||
#endif
|
||||
|
||||
#include <openssl/asn1.h>
|
||||
|
||||
#include "shared-forward.h"
|
||||
|
||||
Reference in New Issue
Block a user