Config.in 2.8 KB

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