mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-28 07:47:35 +03:00
32 lines
556 B
Plaintext
32 lines
556 B
Plaintext
|
from fbt.util import GLOB_FILE_EXCLUSION
|
||
|
|
||
|
Import("env")
|
||
|
|
||
|
env.Append(
|
||
|
CPPPATH=[
|
||
|
"#/lib/nanopb",
|
||
|
],
|
||
|
CPPDEFINES=[
|
||
|
"PB_ENABLE_MALLOC",
|
||
|
],
|
||
|
SDK_HEADERS=[
|
||
|
File("nanopb/pb.h"),
|
||
|
File("nanopb/pb_decode.h"),
|
||
|
File("nanopb/pb_encode.h"),
|
||
|
],
|
||
|
)
|
||
|
|
||
|
|
||
|
libenv = env.Clone(FW_LIB_NAME="nanopb")
|
||
|
libenv.ApplyLibFlags()
|
||
|
|
||
|
sources = Glob(
|
||
|
"nanopb/*.c*",
|
||
|
exclude=GLOB_FILE_EXCLUSION,
|
||
|
source=True,
|
||
|
)
|
||
|
|
||
|
lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
|
||
|
libenv.Install("${LIB_DIST_DIR}", lib)
|
||
|
Return("lib")
|