mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-30 08:44:34 +03:00
28 lines
508 B
Python
28 lines
508 B
Python
|
Import("env")
|
||
|
|
||
|
env.Append(
|
||
|
CPPPATH=[
|
||
|
"#/lib/pulse_reader",
|
||
|
],
|
||
|
SDK_HEADERS=[
|
||
|
File("pulse_reader.h"),
|
||
|
],
|
||
|
)
|
||
|
|
||
|
libenv = env.Clone(FW_LIB_NAME="pulse_reader")
|
||
|
libenv.ApplyLibFlags()
|
||
|
|
||
|
libenv.AppendUnique(
|
||
|
CCFLAGS=[
|
||
|
# Required for lib to be linkable with .faps
|
||
|
"-mword-relocations",
|
||
|
"-mlong-calls",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
sources = libenv.GlobRecursive("*.c*")
|
||
|
|
||
|
lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
|
||
|
libenv.Install("${LIB_DIST_DIR}", lib)
|
||
|
Return("lib")
|