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 "6.2.1" if BR2_PACKAGE_NODEJS_V8_ARCH_SUPPORTS
49 config BR2_PACKAGE_NODEJS_NPM
50 bool "NPM for the target"
51 select BR2_PACKAGE_OPENSSL
53 NPM is the package manager for the Node JavaScript platform.
54 Note that enabling NPM on the target also selects OpenSSL for the
59 Note that NPM is always built for the buildroot host.
61 config BR2_PACKAGE_NODEJS_MODULES_EXPRESS
62 bool "Express web application framework"
64 Express is a minimal and flexible node.js web application
65 framework, providing a robust set of features for building
66 single and multi-page, and hybrid web applications.
68 http://www.expressjs.com
69 https://github.com/visionmedia/express
71 config BR2_PACKAGE_NODEJS_MODULES_COFFEESCRIPT
74 CoffeeScript is a little language that compiles into JavaScript.
76 http://www.coffeescript.org
78 config BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL
79 string "Additional modules"
81 List of space-separated nodejs modules to install via npm.
82 See https://npmjs.org/ to find modules and 'npm help install'
83 for available installation methods. For repeatable builds,
84 download and save tgz files or clone git repos for the
85 components you care about.
87 Example: serialport uglify-js@1.3.4 /my/module/mymodule.tgz git://github.com/someuser/somemodule.git#v1.2
89 This would install the serialport module (at the newest version),
90 the uglify-js module at 1.3.4, a module from a filesystem path,
91 and a module from a git repository.
93 config BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL_DEPS
94 string "Additional module dependencies"
96 List of space-separated buildroot recipes which must be built before
97 your npms can be installed. For example, if in 'Additional modules'
98 you specified 'node-curl' (see:
99 https://github.com/jiangmiao/node-curl), you could then specify
100 'libcurl' here, to ensure that buildroot builds the libcurl package,
101 and does so before building your node modules.