SCsub 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. #!/usr/bin/env python
  2. Import('env')
  3. Import('env_modules')
  4. env_mbed_tls = env_modules.Clone()
  5. if env['builtin_mbedtls']:
  6. # Thirdparty source files
  7. thirdparty_sources = [
  8. "aes.c",
  9. "aesni.c",
  10. "arc4.c",
  11. "aria.c",
  12. "asn1parse.c",
  13. "asn1write.c",
  14. "base64.c",
  15. "bignum.c",
  16. "blowfish.c",
  17. "camellia.c",
  18. "ccm.c",
  19. "certs.c",
  20. "chacha20.c",
  21. "chachapoly.c",
  22. "cipher.c",
  23. "cipher_wrap.c",
  24. "cmac.c",
  25. "ctr_drbg.c",
  26. "debug.c",
  27. "des.c",
  28. "dhm.c",
  29. "ecdh.c",
  30. "ecdsa.c",
  31. "ecjpake.c",
  32. "ecp.c",
  33. "ecp_curves.c",
  34. "entropy.c",
  35. "entropy_poll.c",
  36. "error.c",
  37. "gcm.c",
  38. "havege.c",
  39. "hkdf.c",
  40. "hmac_drbg.c",
  41. "md2.c",
  42. "md4.c",
  43. "md5.c",
  44. "md.c",
  45. "md_wrap.c",
  46. "memory_buffer_alloc.c",
  47. "net_sockets.c",
  48. "nist_kw.c",
  49. "oid.c",
  50. "padlock.c",
  51. "pem.c",
  52. "pk.c",
  53. "pkcs11.c",
  54. "pkcs12.c",
  55. "pkcs5.c",
  56. "pkparse.c",
  57. "pk_wrap.c",
  58. "pkwrite.c",
  59. "platform.c",
  60. "platform_util.c",
  61. "poly1305.c",
  62. "ripemd160.c",
  63. "rsa.c",
  64. "rsa_internal.c",
  65. "sha1.c",
  66. "sha256.c",
  67. "sha512.c",
  68. "ssl_cache.c",
  69. "ssl_ciphersuites.c",
  70. "ssl_cli.c",
  71. "ssl_cookie.c",
  72. "ssl_srv.c",
  73. "ssl_ticket.c",
  74. "ssl_tls.c",
  75. "threading.c",
  76. "timing.c",
  77. "version.c",
  78. "version_features.c",
  79. "x509.c",
  80. "x509_create.c",
  81. "x509_crl.c",
  82. "x509_crt.c",
  83. "x509_csr.c",
  84. "x509write_crt.c",
  85. "x509write_csr.c",
  86. "xtea.c"
  87. ]
  88. thirdparty_dir = "#thirdparty/mbedtls/library/"
  89. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  90. env_mbed_tls.Prepend(CPPPATH=["#thirdparty/mbedtls/include/"])
  91. env_thirdparty = env_mbed_tls.Clone()
  92. env_thirdparty.disable_warnings()
  93. env_thirdparty.add_source_files(env.modules_sources, thirdparty_sources)
  94. # Module sources
  95. env_mbed_tls.add_source_files(env.modules_sources, "*.cpp")