1 comment "nodejs needs a toolchain w/ C++, dynamic library, threads, gcc >= 4.8, wchar"
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
9 config BR2_PACKAGE_NODEJS
11 depends on BR2_TOOLCHAIN_HAS_THREADS
12 depends on BR2_INSTALL_LIBSTDCPP
13 depends on BR2_arm || BR2_i386 || BR2_x86_64 || BR2_mipsel
14 depends on !BR2_MIPS_SOFT_FLOAT
15 # ARM needs BLX, so v5t+
16 depends on !BR2_ARM_CPU_ARMV4
17 # 0.10.x could be built without the following toolchain dependencies but
18 # simplify things by requiring these basic dependencies for all versions.
19 depends on BR2_HOST_GCC_AT_LEAST_4_8
20 depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
21 depends on BR2_USE_WCHAR
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_ZLIB
29 Event-driven I/O server-side JavaScript environment based on V8.
35 # Starting with 0.12.x, on ARM, V8 (the JS engine)
36 # now requires an armv6+ and a VFPv2+.
37 config BR2_PACKAGE_NODEJS_V8_ARCH_SUPPORTS
39 # On supported architectures other than ARM, no special requirement
41 # On ARM, at least ARMv6+ with VFPv2+ is needed
42 default y if !BR2_ARM_CPU_ARMV5 && BR2_ARM_CPU_HAS_VFPV2
44 config BR2_PACKAGE_NODEJS_VERSION_STRING
46 default "5.6.0" if BR2_PACKAGE_NODEJS_V8_ARCH_SUPPORTS
49 menu "Module Selection"
51 config BR2_PACKAGE_NODEJS_NPM
52 bool "NPM for the target"
53 select BR2_PACKAGE_OPENSSL
55 NPM is the package manager for the Node JavaScript platform.
56 Note that enabling NPM on the target also selects OpenSSL for the
61 Note that NPM is always built for the buildroot host.
63 config BR2_PACKAGE_NODEJS_MODULES_EXPRESS
64 bool "Express web application framework"
66 Express is a minimal and flexible node.js web application
67 framework, providing a robust set of features for building
68 single and multi-page, and hybrid web applications.
70 http://www.expressjs.com
71 https://github.com/visionmedia/express
73 config BR2_PACKAGE_NODEJS_MODULES_COFFEESCRIPT
76 CoffeeScript is a little language that compiles into JavaScript.
78 http://www.coffeescript.org
80 config BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL
81 string "Additional modules"
83 List of space-separated nodejs modules to install via npm.
84 See https://npmjs.org/ to find modules and 'npm help install'
85 for available installation methods. For repeatable builds,
86 download and save tgz files or clone git repos for the
87 components you care about.
89 Example: serialport uglify-js@1.3.4 /my/module/mymodule.tgz git://github.com/someuser/somemodule.git#v1.2
91 This would install the serialport module (at the newest version),
92 the uglify-js module at 1.3.4, a module from a filesystem path,
93 and a module from a git repository.
95 config BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL_DEPS
96 string "Additional module dependencies"
98 List of space-separated buildroot recipes which must be built before
99 your npms can be installed. For example, if in 'Additional modules'
100 you specified 'node-curl' (see:
101 https://github.com/jiangmiao/node-curl), you could then specify
102 'libcurl' here, to ensure that buildroot builds the libcurl package,
103 and does so before building your node modules.