mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2025-09-27 12:06:51 +02:00
* Add back uzlib * FBT: Support different resources compress methods * Tar: Detect gzip compress type * Tar: Generic compressed stream refactor * Compress: Shared config params * Fix comment * Compress: Scaffolding for gzip implementation * Compress: Handle errors from allocation * Compress: Gzip support implementation * Tar/Compress: Don't rewind if already at stream cursor * Update changelog
29 lines
502 B
Plaintext
29 lines
502 B
Plaintext
Import("env")
|
|
|
|
env.Append(
|
|
CPPPATH=[
|
|
"#/lib/uzlib/src",
|
|
],
|
|
)
|
|
|
|
libenv = env.Clone(FW_LIB_NAME="uzlib")
|
|
libenv.ApplyLibFlags()
|
|
|
|
libenv.AppendUnique(
|
|
CCFLAGS=[
|
|
"-Wno-redundant-decls",
|
|
"-Wno-sign-compare",
|
|
],
|
|
)
|
|
|
|
sources = [
|
|
File("uzlib/src/adler32.c"),
|
|
File("uzlib/src/crc32.c"),
|
|
File("uzlib/src/tinfgzip.c"),
|
|
File("uzlib/src/tinflate.c"),
|
|
]
|
|
|
|
lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
|
|
libenv.Install("${LIB_DIST_DIR}", lib)
|
|
Return("lib")
|