mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-13 05:06:30 +04:00
[FL-2052] New build system based on scons (#1269)
This commit is contained in:
26
lib/appframe.scons
Normal file
26
lib/appframe.scons
Normal file
@@ -0,0 +1,26 @@
|
||||
Import("env")
|
||||
|
||||
env.Append(
|
||||
CPPPATH=[
|
||||
"#/lib/app-scened-template",
|
||||
"#/lib/callback-connector",
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
libenv = env.Clone(FW_LIB_NAME="appframe")
|
||||
libenv.ApplyLibFlags()
|
||||
|
||||
sources = []
|
||||
|
||||
recurse_dirs = [
|
||||
"app-scened-template",
|
||||
"callback-connector",
|
||||
]
|
||||
|
||||
for recurse_dir in recurse_dirs:
|
||||
sources += libenv.GlobRecursive("*.c*", recurse_dir)
|
||||
|
||||
lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
|
||||
libenv.Install("${LIB_DIST_DIR}", lib)
|
||||
Return("lib")
|
||||
Reference in New Issue
Block a user