Modularise fluxsink and usb.

This commit is contained in:
David Given
2024-10-16 00:41:57 +02:00
parent ec271a67ad
commit c42e73f17a
12 changed files with 45 additions and 31 deletions

View File

@@ -1,4 +1,19 @@
from build.protobuf import proto, protocc
from build.c import cxxlibrary
proto(name="proto", srcs=["./usb.proto"], deps=["lib+common_proto"])
protocc(name="proto_lib", srcs=[".+proto"], deps=["lib+common_proto_lib"])
cxxlibrary(
name="usb",
srcs=[
"./applesauceusb.cc",
"./fluxengineusb.cc",
"./greaseweazleusb.cc",
"./serial.cc",
"./usb.cc",
"./usbfinder.cc",
],
hdrs={"lib/usb/usb.h": "./usb.h", "lib/usb/usbfinder.h": "./usbfinder.h"},
deps=["lib/core", "lib/config", "lib/external", "dep/libusbp", "+protocol"],
)