Move the external file format stuff into its own module.

This commit is contained in:
David Given
2024-10-15 00:46:46 +02:00
parent ea4a147751
commit 7983a4b883
40 changed files with 96 additions and 154 deletions

20
lib/external/build.py vendored Normal file
View File

@@ -0,0 +1,20 @@
from build.c import cxxlibrary
from build.protobuf import proto, protocc
proto(name="fl2_proto", srcs=["./fl2.proto"])
protocc(name="fl2_proto_lib", srcs=[".+fl2_proto"])
cxxlibrary(
name="external",
srcs=[
"./ldbs.cc",
"./fl2.cc",
],
hdrs={
"lib/external/ldbs.h": "./ldbs.h",
"lib/external/a2r.h": "./a2r.h",
"lib/external/scp.h": "./scp.h",
"lib/external/fl2.h": "./fl2.h",
},
deps=["lib/core", ".+fl2_proto_lib", "lib/data"],
)