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 g3gg0.de
parent 24f016d079
commit eddc1c41df
4 changed files with 32 additions and 1 deletions

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")