mbedtls.scons 548 B

123456789101112131415161718192021222324252627282930
  1. Import("env")
  2. env.Append(
  3. CPPPATH=[
  4. "#/lib/mbedtls",
  5. "#/lib/mbedtls/include",
  6. ],
  7. )
  8. libenv = env.Clone(FW_LIB_NAME="mbedtls")
  9. libenv.ApplyLibFlags()
  10. libenv.AppendUnique(
  11. CCFLAGS=[
  12. # Required for lib to be linkable with .faps
  13. "-mword-relocations",
  14. "-mlong-calls",
  15. ],
  16. )
  17. sources = [
  18. "mbedtls/library/des.c",
  19. "mbedtls/library/sha1.c",
  20. "mbedtls/library/platform_util.c",
  21. ]
  22. lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
  23. libenv.Install("${LIB_DIST_DIR}", lib)
  24. Return("lib")