mirror of
https://github.com/pikvm/ustreamer.git
synced 2025-12-23 18:50:00 +00:00
report about all WITH_* flags in --features
This commit is contained in:
parent
b2d1a5612d
commit
e19a3ca7ff
@ -50,6 +50,14 @@ _OBJS = $(_USTR_SRCS:%.c=$(_BUILD)/%.o) $(_DUMP_SRCS:%.c=$(_BUILD)/%.o)
|
||||
|
||||
|
||||
# =====
|
||||
ifneq ($(call optbool,$(WITH_PYTHON)),)
|
||||
override _CFLAGS += -DWITH_PYTHON
|
||||
endif
|
||||
|
||||
ifneq ($(call optbool,$(WITH_JANUS)),)
|
||||
override _CFLAGS += -DWITH_JANUS
|
||||
endif
|
||||
|
||||
ifneq ($(call optbool,$(WITH_GPIO)),)
|
||||
override _CFLAGS += -DWITH_GPIO $(shell $(PKG_CONFIG) --atleast-version=2 libgpiod 2> /dev/null && echo -DHAVE_GPIOD2)
|
||||
override _USTR_LDFLAGS += -lgpiod
|
||||
|
||||
@ -581,6 +581,18 @@ static int _check_instance_id(const char *str) {
|
||||
}
|
||||
|
||||
static void _features(void) {
|
||||
# ifdef WITH_PYTHON
|
||||
puts("+ WITH_PYTHON");
|
||||
# else
|
||||
puts("- WITH_PYTHON");
|
||||
# endif
|
||||
|
||||
# ifdef WITH_JANUS
|
||||
puts("+ WITH_JANUS");
|
||||
# else
|
||||
puts("- WITH_JANUS");
|
||||
# endif
|
||||
|
||||
# ifdef WITH_V4P
|
||||
puts("+ WITH_V4P");
|
||||
# else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user