2022-06-26 12:00:03 +00:00
|
|
|
Import("env")
|
|
|
|
|
|
|
|
env.Append(
|
|
|
|
CPPPATH=[
|
|
|
|
"#/lib/libusb_stm32/inc",
|
|
|
|
],
|
2022-11-02 15:15:40 +00:00
|
|
|
SDK_HEADERS=env.GlobRecursive(
|
|
|
|
"*.h",
|
|
|
|
Dir("libusb_stm32/inc"),
|
|
|
|
),
|
2022-06-26 12:00:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
libenv = env.Clone(FW_LIB_NAME="usb_stm32")
|
|
|
|
libenv.ApplyLibFlags()
|
2023-05-03 05:48:49 +00:00
|
|
|
libenv.Append(
|
|
|
|
CPPDEFINES=[
|
|
|
|
("USB_PMASIZE", "0x400"),
|
|
|
|
],
|
|
|
|
)
|
2022-06-26 12:00:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
"libusb_stm32/src/usbd_core.c",
|
|
|
|
"libusb_stm32/src/usbd_stm32wb55_devfs.c",
|
|
|
|
]
|
|
|
|
|
|
|
|
lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
|
|
|
|
libenv.Install("${LIB_DIST_DIR}", lib)
|
|
|
|
Return("lib")
|