2023-02-08 12:35:38 +03:00
|
|
|
from fbt.util import GLOB_FILE_EXCLUSION
|
|
|
|
|
2023-05-03 08:48:49 +03:00
|
|
|
Import("env")
|
|
|
|
|
2022-06-26 15:00:03 +03:00
|
|
|
env.Append(
|
|
|
|
CPPPATH=[
|
|
|
|
"#/lib/fnv1a_hash",
|
|
|
|
"#/lib/heatshrink",
|
|
|
|
"#/lib/micro-ecc",
|
|
|
|
"#/lib/nanopb",
|
|
|
|
"#/lib/u8g2",
|
|
|
|
],
|
|
|
|
CPPDEFINES=[
|
|
|
|
"PB_ENABLE_MALLOC",
|
|
|
|
],
|
2022-09-14 19:11:38 +03:00
|
|
|
SDK_HEADERS=[
|
2022-11-02 18:15:40 +03:00
|
|
|
File("micro-ecc/uECC.h"),
|
NFC refactoring (#3050)
"A long time ago in a galaxy far, far away...." we started NFC subsystem refactoring.
Starring:
- @gornekich - NFC refactoring project lead, architect, senior developer
- @gsurkov - architect, senior developer
- @RebornedBrain - senior developer
Supporting roles:
- @skotopes, @DrZlo13, @hedger - general architecture advisors, code review
- @Astrrra, @doomwastaken, @Hellitron, @ImagineVagon333 - quality assurance
Special thanks:
@bettse, @pcunning, @nxv, @noproto, @AloneLiberty and everyone else who has been helping us all this time and contributing valuable knowledges, ideas and source code.
2023-10-24 06:08:09 +03:00
|
|
|
File("nanopb/pb.h"),
|
|
|
|
File("nanopb/pb_decode.h"),
|
|
|
|
File("nanopb/pb_encode.h"),
|
2022-09-14 19:11:38 +03:00
|
|
|
],
|
2022-06-26 15:00:03 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
libenv = env.Clone(FW_LIB_NAME="misc")
|
|
|
|
libenv.ApplyLibFlags()
|
|
|
|
|
|
|
|
sources = []
|
|
|
|
|
|
|
|
libs_recurse = [
|
|
|
|
"micro-ecc",
|
|
|
|
"u8g2",
|
|
|
|
"update_util",
|
|
|
|
]
|
|
|
|
|
|
|
|
for lib in libs_recurse:
|
|
|
|
sources += libenv.GlobRecursive("*.c*", lib)
|
|
|
|
|
|
|
|
libs_plain = [
|
|
|
|
"nanopb",
|
|
|
|
]
|
|
|
|
|
|
|
|
for lib in libs_plain:
|
2023-02-08 12:35:38 +03:00
|
|
|
sources += Glob(
|
|
|
|
lib + "/*.c*",
|
|
|
|
exclude=GLOB_FILE_EXCLUSION,
|
|
|
|
source=True,
|
|
|
|
)
|
2022-06-26 15:00:03 +03:00
|
|
|
|
2023-03-22 20:00:48 +03:00
|
|
|
sources += Glob(
|
|
|
|
"heatshrink/heatshrink_*.c*",
|
|
|
|
exclude=GLOB_FILE_EXCLUSION,
|
|
|
|
source=True,
|
|
|
|
)
|
|
|
|
|
2022-06-26 15:00:03 +03:00
|
|
|
lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
|
|
|
|
libenv.Install("${LIB_DIST_DIR}", lib)
|
|
|
|
Return("lib")
|