Config.in 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. comment "nodejs needs a toolchain w/ C++, dynamic library, threads, gcc >= 4.8, wchar"
  2. depends on BR2_USE_MMU
  3. depends on BR2_arm || BR2_i386 || BR2_x86_64 || BR2_mipsel
  4. depends on !BR2_MIPS_SOFT_FLOAT
  5. depends on !BR2_ARM_CPU_ARMV4
  6. depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || \
  7. !BR2_HOST_GCC_AT_LEAST_4_8 || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || !BR2_USE_WCHAR
  8. config BR2_PACKAGE_NODEJS
  9. bool "nodejs"
  10. depends on BR2_TOOLCHAIN_HAS_THREADS
  11. depends on BR2_INSTALL_LIBSTDCPP
  12. depends on BR2_arm || BR2_i386 || BR2_x86_64 || BR2_mipsel
  13. depends on !BR2_MIPS_SOFT_FLOAT
  14. # ARM needs BLX, so v5t+
  15. depends on !BR2_ARM_CPU_ARMV4
  16. # 0.10.x could be built without the following toolchain dependencies but
  17. # simplify things by requiring these basic dependencies for all versions.
  18. depends on BR2_HOST_GCC_AT_LEAST_4_8
  19. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
  20. depends on BR2_USE_WCHAR
  21. # uses fork()
  22. depends on BR2_USE_MMU
  23. # uses dlopen(). On ARMv5, we could technically support static
  24. # linking, but that's too much of a corner case to support it.
  25. depends on !BR2_STATIC_LIBS
  26. select BR2_PACKAGE_ZLIB
  27. help
  28. Event-driven I/O server-side JavaScript environment based on V8.
  29. http://nodejs.org/
  30. if BR2_PACKAGE_NODEJS
  31. # Starting with 0.12.x, on ARM, V8 (the JS engine)
  32. # now requires an armv6+ and a VFPv2+.
  33. config BR2_PACKAGE_NODEJS_V8_ARCH_SUPPORTS
  34. bool
  35. # On supported architectures other than ARM, no special requirement
  36. default y if !BR2_arm
  37. # On ARM, at least ARMv6+ with VFPv2+ is needed
  38. default y if !BR2_ARM_CPU_ARMV5 && BR2_ARM_CPU_HAS_VFPV2
  39. config BR2_PACKAGE_NODEJS_VERSION_STRING
  40. string
  41. default "6.9.4" if BR2_PACKAGE_NODEJS_V8_ARCH_SUPPORTS
  42. default "0.10.48"
  43. config BR2_PACKAGE_NODEJS_NPM
  44. bool "NPM for the target"
  45. select BR2_PACKAGE_OPENSSL
  46. help
  47. NPM is the package manager for the Node JavaScript platform.
  48. Note that enabling NPM on the target also selects OpenSSL for the
  49. target.
  50. http://www.npmjs.org
  51. Note that NPM is always built for the buildroot host.
  52. config BR2_PACKAGE_NODEJS_MODULES_EXPRESS
  53. bool "Express web application framework"
  54. help
  55. Express is a minimal and flexible node.js web application
  56. framework, providing a robust set of features for building
  57. single and multi-page, and hybrid web applications.
  58. http://www.expressjs.com
  59. https://github.com/visionmedia/express
  60. config BR2_PACKAGE_NODEJS_MODULES_COFFEESCRIPT
  61. bool "CoffeeScript"
  62. help
  63. CoffeeScript is a little language that compiles into JavaScript.
  64. http://www.coffeescript.org
  65. config BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL
  66. string "Additional modules"
  67. help
  68. List of space-separated nodejs modules to install via npm.
  69. See https://npmjs.org/ to find modules and 'npm help install'
  70. for available installation methods. For repeatable builds,
  71. download and save tgz files or clone git repos for the
  72. components you care about.
  73. Example: serialport uglify-js@1.3.4 /my/module/mymodule.tgz git://github.com/someuser/somemodule.git#v1.2
  74. This would install the serialport module (at the newest version),
  75. the uglify-js module at 1.3.4, a module from a filesystem path,
  76. and a module from a git repository.
  77. config BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL_DEPS
  78. string "Additional module dependencies"
  79. help
  80. List of space-separated buildroot recipes which must be built before
  81. your npms can be installed. For example, if in 'Additional modules'
  82. you specified 'node-curl' (see:
  83. https://github.com/jiangmiao/node-curl), you could then specify
  84. 'libcurl' here, to ensure that buildroot builds the libcurl package,
  85. and does so before building your node modules.
  86. endif