Config.in 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. config BR2_PACKAGE_SPIDERMONKEY_ARCH_SUPPORTS
  2. bool
  3. default y if BR2_aarch64
  4. default y if BR2_arm || BR2_armeb
  5. default y if BR2_i386 || BR2_x86_64
  6. default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
  7. default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
  8. default y if BR2_riscv
  9. default y if BR2_sh4 || BR2_sh4a
  10. default y if BR2_sparc || BR2_sparc64
  11. depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT # libnspr
  12. config BR2_PACKAGE_SPIDERMONKEY_JIT_ARCH_SUPPORTS
  13. bool
  14. default y if BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 || BR2_x86_64
  15. config BR2_PACKAGE_SPIDERMONKEY
  16. bool "spidermonkey"
  17. depends on BR2_HOST_GCC_AT_LEAST_4_9
  18. depends on BR2_INSTALL_LIBSTDCPP
  19. depends on BR2_PACKAGE_SPIDERMONKEY_ARCH_SUPPORTS
  20. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  21. depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # needs pthread_getattr_np()
  22. depends on BR2_USE_MMU # fork in executable tools.
  23. depends on BR2_USE_WCHAR
  24. depends on !BR2_TOOLCHAIN_USES_UCLIBC # No way to check for fenv support.
  25. depends on !BR2_STATIC_LIBS # dlopen
  26. select BR2_PACKAGE_HOST_PYTHON
  27. select BR2_PACKAGE_HOST_PYTHON_SSL
  28. select BR2_PACKAGE_LIBNSPR
  29. select BR2_PACKAGE_ZLIB
  30. help
  31. SpiderMonkey is the code-name for Mozilla Firefox's C++
  32. implementation of JavaScript. It is intended to be embedded in
  33. other applications that provide host environments for
  34. JavaScript.
  35. https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey
  36. if BR2_PACKAGE_SPIDERMONKEY
  37. config BR2_PACKAGE_SPIDERMONKEY_JS_SHELL
  38. bool "JS shell"
  39. help
  40. Build the JavaScript shell.
  41. WARNING: increases target image size by around 24 MiB.
  42. endif
  43. comment "spidermonkey needs a glibc or musl toolchain with C++, wchar, dynamic library, NPTL, gcc >= 4.9"
  44. depends on BR2_USE_MMU
  45. depends on BR2_PACKAGE_SPIDERMONKEY_ARCH_SUPPORTS
  46. depends on BR2_TOOLCHAIN_USES_UCLIBC || \
  47. !BR2_INSTALL_LIBSTDCPP || \
  48. BR2_STATIC_LIBS || \
  49. !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
  50. !BR2_HOST_GCC_AT_LEAST_4_9 || \
  51. !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
  52. !BR2_USE_WCHAR