1 config BR2_PACKAGE_NODEJS_ARCH_SUPPORTS
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
8 comment "nodejs needs a toolchain w/ C++, dynamic library, threads, gcc >= 4.8, wchar"
10 depends on BR2_PACKAGE_NODEJS_ARCH_SUPPORTS
11 depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || \
12 !BR2_HOST_GCC_AT_LEAST_4_8 || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || !BR2_USE_WCHAR
14 config BR2_PACKAGE_NODEJS
16 depends on BR2_TOOLCHAIN_HAS_THREADS
17 depends on BR2_INSTALL_LIBSTDCPP
18 depends on BR2_PACKAGE_NODEJS_ARCH_SUPPORTS
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 config BR2_PACKAGE_NODEJS_NPM
36 bool "NPM for the target"
37 select BR2_PACKAGE_OPENSSL
39 NPM is the package manager for the Node JavaScript platform.
40 Note that enabling NPM on the target also selects OpenSSL for the
45 Note that NPM is always built for the buildroot host.
47 config BR2_PACKAGE_NODEJS_MODULES_EXPRESS
48 bool "Express web application framework"
50 Express is a minimal and flexible node.js web application
51 framework, providing a robust set of features for building
52 single and multi-page, and hybrid web applications.
54 http://www.expressjs.com
55 https://github.com/visionmedia/express
57 config BR2_PACKAGE_NODEJS_MODULES_COFFEESCRIPT
60 CoffeeScript is a little language that compiles into JavaScript.
62 http://www.coffeescript.org
64 config BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL
65 string "Additional modules"
67 List of space-separated nodejs modules to install via npm.
68 See https://npmjs.org/ to find modules and 'npm help install'
69 for available installation methods. For repeatable builds,
70 download and save tgz files or clone git repos for the
71 components you care about.
73 Example: serialport uglify-js@1.3.4 /my/module/mymodule.tgz git://github.com/someuser/somemodule.git#v1.2
75 This would install the serialport module (at the newest version),
76 the uglify-js module at 1.3.4, a module from a filesystem path,
77 and a module from a git repository.
79 config BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL_DEPS
80 string "Additional module dependencies"
82 List of space-separated buildroot recipes which must be built before
83 your npms can be installed. For example, if in 'Additional modules'
84 you specified 'node-curl' (see:
85 https://github.com/jiangmiao/node-curl), you could then specify
86 'libcurl' here, to ensure that buildroot builds the libcurl package,
87 and does so before building your node modules.