From fe3fe5d737e61e6e179b63f0480216c421810fd8 Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Thu, 25 Jun 2026 22:26:00 +0200 Subject: build: vendor yyjson 0.12.0 in deps/yyjson --- libffwd/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libffwd') diff --git a/libffwd/Makefile b/libffwd/Makefile index 70ec9ad..955f93e 100644 --- a/libffwd/Makefile +++ b/libffwd/Makefile @@ -45,6 +45,12 @@ all: $(STATIC) $(SHARED) $(eval $(call static_archive,$(STATIC),$(OBJS))) $(eval $(call shared_library,$(SHARED),$(OBJS),,$(BACKEND_LDFLAGS) $(YYJSON_LDFLAGS) -lm)) +# yyjson is vendored under deps/yyjson; build its archive before linking the +# shared library (the static libffwd.a does not embed it — consumers link both). +YYJSON := $(ROOT)/deps/yyjson +$(OUTDIR)/libyyjson.a: + $(MAKE) -C $(YYJSON) +$(SHARED): $(OUTDIR)/libyyjson.a # The export map is generated from the public ABI (the FFWD_API declarations in # ffwd.h) instead of being committed, so it cannot drift from the header. It is # regenerated when the header or the generator changes, and the shared library -- cgit v1.3.1