Config.in 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. config BR2_PACKAGE_NODEJS_ARCH_SUPPORTS
  2. bool
  3. # On ARM, at least ARMv6+ with VFPv2+ is needed
  4. default y if BR2_arm && !BR2_ARM_CPU_ARMV4 && !BR2_ARM_CPU_ARMV5 && BR2_ARM_CPU_HAS_VFPV2
  5. default y if BR2_mipsel && !BR2_MIPS_SOFT_FLOAT
  6. default y if BR2_aarch64 || BR2_i386 || BR2_x86_64
  7. # libuv
  8. depends on BR2_TOOLCHAIN_HAS_SYNC_4
  9. comment "nodejs needs a toolchain w/ C++, dynamic library, NPTL, gcc >= 4.9, wchar"
  10. depends on BR2_USE_MMU
  11. depends on BR2_PACKAGE_NODEJS_ARCH_SUPPORTS
  12. depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
  13. !BR2_HOST_GCC_AT_LEAST_4_9 || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || !BR2_USE_WCHAR
  14. config BR2_PACKAGE_NODEJS
  15. bool "nodejs"
  16. depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv
  17. depends on BR2_INSTALL_LIBSTDCPP
  18. depends on BR2_PACKAGE_NODEJS_ARCH_SUPPORTS
  19. depends on BR2_HOST_GCC_AT_LEAST_4_9
  20. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  21. depends on BR2_USE_WCHAR
  22. # uses fork()
  23. depends on BR2_USE_MMU
  24. # uses dlopen(). On ARMv5, we could technically support static
  25. # linking, but that's too much of a corner case to support it.
  26. depends on !BR2_STATIC_LIBS
  27. select BR2_PACKAGE_C_ARES
  28. select BR2_PACKAGE_LIBUV
  29. select BR2_PACKAGE_ZLIB
  30. select BR2_PACKAGE_NGHTTP2
  31. help
  32. Event-driven I/O server-side JavaScript environment based on
  33. V8.
  34. http://nodejs.org/
  35. if BR2_PACKAGE_NODEJS
  36. config BR2_PACKAGE_NODEJS_NPM
  37. bool "NPM for the target"
  38. select BR2_PACKAGE_OPENSSL
  39. help
  40. NPM is the package manager for the Node JavaScript platform.
  41. Note that enabling NPM on the target also selects OpenSSL
  42. for the target.
  43. http://www.npmjs.org
  44. Note that NPM is always built for the buildroot host.
  45. config BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL
  46. string "Additional modules"
  47. help
  48. List of space-separated nodejs modules to install via npm.
  49. See https://npmjs.org/ to find modules and 'npm help install'
  50. for available installation methods. For repeatable builds,
  51. download and save tgz files or clone git repos for the
  52. components you care about.
  53. Example:
  54. serialport uglify-js@1.3.4 /my/module/mymodule.tgz \
  55. git://github.com/someuser/somemodule.git#v1.2
  56. This would install the serialport module (at the newest
  57. version), the uglify-js module at 1.3.4, a module from a
  58. filesystem path, and a module from a git repository.
  59. config BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL_DEPS
  60. string "Additional module dependencies"
  61. help
  62. List of space-separated buildroot recipes which must be
  63. built before your npms can be installed. For example, if in
  64. 'Additional modules' you specified 'node-curl' (see:
  65. https://github.com/jiangmiao/node-curl), you could then
  66. specify 'libcurl' here, to ensure that buildroot builds the
  67. libcurl package, and does so before building your node
  68. modules.
  69. endif