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

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