SConscript 555 B

123456789101112131415161718192021222324252627282930
  1. Import("env")
  2. env.Append(
  3. CPPPATH=[
  4. "#/lib/flipper_format",
  5. ],
  6. SDK_HEADERS=[
  7. File("flipper_format.h"),
  8. File("flipper_format_i.h"),
  9. File("flipper_format_stream.h"),
  10. ],
  11. )
  12. libenv = env.Clone(FW_LIB_NAME="flipperformat")
  13. libenv.ApplyLibFlags()
  14. if libenv["RAM_EXEC"]:
  15. libenv.Append(
  16. CPPDEFINES=[
  17. "FLIPPER_STREAM_LITE",
  18. ],
  19. )
  20. sources = libenv.GlobRecursive("*.c")
  21. lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
  22. libenv.Install("${LIB_DIST_DIR}", lib)
  23. Return("lib")