mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-30 00:10:30 +00:00
24 lines
401 B
Text
24 lines
401 B
Text
|
from fbt.util import GLOB_FILE_EXCLUSION
|
||
|
|
||
|
Import("env")
|
||
|
|
||
|
env.Append(
|
||
|
CPPPATH=[
|
||
|
"#/lib/heatshrink",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
|
||
|
libenv = env.Clone(FW_LIB_NAME="heatshrink")
|
||
|
libenv.ApplyLibFlags()
|
||
|
|
||
|
sources = Glob(
|
||
|
"heatshrink/heatshrink_*.c*",
|
||
|
exclude=GLOB_FILE_EXCLUSION,
|
||
|
source=True,
|
||
|
)
|
||
|
|
||
|
lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
|
||
|
libenv.Install("${LIB_DIST_DIR}", lib)
|
||
|
Return("lib")
|