aboutsummaryrefslogtreecommitdiff
path: root/libffwd
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-06-25 22:26:00 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-06-25 22:26:00 +0200
commitfe3fe5d737e61e6e179b63f0480216c421810fd8 (patch)
tree3ba8b7ce178187b31261d8a1cd2ae2e97a1e9d05 /libffwd
parent6a9aa3302362e7d129b804cd621d39a1c1e7c43d (diff)
downloadffwd-fe3fe5d737e61e6e179b63f0480216c421810fd8.tar.gz
ffwd-fe3fe5d737e61e6e179b63f0480216c421810fd8.zip
build: vendor yyjson 0.12.0 in deps/yyjson
Diffstat (limited to 'libffwd')
-rw-r--r--libffwd/Makefile6
1 files changed, 6 insertions, 0 deletions
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