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