pulse_reader: build as static library

Signed-off-by: g3gg0.de <git@g3gg0.de>
This commit is contained in:
gornekich
2022-12-20 18:49:29 +04:00
committed by Tiernan Messmer
parent 035d630ff9
commit b5b5abac27
4 changed files with 31 additions and 0 deletions
+2
View File
@@ -15,6 +15,7 @@ env.Append(
Dir("u8g2"),
Dir("update_util"),
Dir("print"),
Dir("pulse_reader"),
],
)
@@ -94,6 +95,7 @@ libs = env.BuildModules(
"mbedtls",
"subghz",
"nfc",
"pulse_reader",
"appframe",
"misc",
"lfrfid",
+19
View File
@@ -0,0 +1,19 @@
Import("env")
env.Append(
CPPPATH=[
"#/lib/pulse_reader",
],
SDK_HEADERS=[
File("pulse_reader.h"),
],
)
libenv = env.Clone(FW_LIB_NAME="pulse_reader")
libenv.ApplyLibFlags()
sources = libenv.GlobRecursive("*.c*")
lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
libenv.Install("${LIB_DIST_DIR}", lib)
Return("lib")