Skip to content
This repository contains the edition of the open-source Node.js program used by Open webOS
JavaScript C++ Python C D Ruby Other
Latest commit 7272321 Jun 13, 2013 @maksym-shevchenko-owo maksym-shevchenko-owo committed with kdopen Assign Copyright to LG Electronics, Inc.
[GF-5644] Convert HP Copyright to LG

Bring back Joynet's copyright in src/node.cc

Open-webOS-DCO-1.0-Signed-off-by: Maksym Shevchenko <myshevchenko@luxoft.com>

Change-Id: I5439645c4006756ef170aae46fbf48e4501a8c7e
Reviewed-on: https://g2g.palm.com/2602
Reviewed-by: Build Verification
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Tested-by: Keith Derrick <keith.derrick@lge.com>
Failed to load latest commit information.
benchmark Assign Copyright to LG Electronics, Inc. Jul 11, 2013
cmake Fix v8_extprj build errors when using icecc Feb 21, 2013
deps Assign Copyright to LG Electronics, Inc. Jul 11, 2013
doc Release nodejs 0.4.12-webos2 to the public Apr 26, 2012
lib Assign Copyright to LG Electronics, Inc. Jul 11, 2013
src Assign Copyright to LG Electronics, Inc. Jul 11, 2013
test Assign Copyright to LG Electronics, Inc. Jul 11, 2013
tools Fix for build failure under Ubuntu 12.04 Aug 29, 2012
.gitignore Release nodejs 0.4.12-webos2 to the public Apr 26, 2012
AUTHORS Release nodejs 0.4.12-webos2 to the public Apr 26, 2012
CMakeLists.txt Release nodejs 0.4.12-webos2 to the public Apr 26, 2012
CTestConfig.cmake Release nodejs 0.4.12-webos2 to the public Apr 26, 2012
ChangeLog Release nodejs 0.4.12-webos2 to the public Apr 26, 2012
LICENSE Release nodejs 0.4.12-webos2 to the public Apr 26, 2012
Makefile Release nodejs 0.4.12-webos2 to the public Apr 26, 2012
Makefile.cmake Release nodejs 0.4.12-webos2 to the public Apr 26, 2012
README.cmake Release nodejs 0.4.12-webos2 to the public Apr 26, 2012
README.md Fix italics on PKG_CONFIG_PATH Aug 21, 2012
README.upstream.md Release nodejs 0.4.12-webos2 to the public Apr 26, 2012
TODO Release nodejs 0.4.12-webos2 to the public Apr 26, 2012
TODO.win32 Release nodejs 0.4.12-webos2 to the public Apr 26, 2012
config.h.cmake Release nodejs 0.4.12-webos2 to the public Apr 26, 2012
configure Release nodejs 0.4.12-webos2 to the public Apr 26, 2012
wscript Release nodejs 0.4.12-webos2 to the public Apr 26, 2012

README.md

nodejs

This repository contains the edition of the open-source Node.js program used by webOS. Node.js is a server-side JavaScript environment that uses an asynchronous event-driven model. This allows Node.js to get excellent performance based on the architectures of many Internet applications.

See the Resources for Newcomers section in README.upstream.md for links to information on the upstream project. Do not use the build instructions found there.

How to Build on Linux

Dependencies

Below are the tools and libraries (and their minimum versions) required to build nodejs:

  • cmake 2.6
  • gcc 4.3
  • make (any version)
  • python 2.6 or 2.7 (3.0 cannot be used)

Building

Once you have downloaded the source, execute the following to build it:

$ mkdir BUILD
$ cd BUILD
$ cmake ..
$ make
$ sudo make install

The executable will be installed under

/usr/local/bin

The header files will be installed under

/usr/local/include/node

and the pkg-config file under

/usr/local/lib

You can install it elsewhere by supplying a value for CMAKE_INSTALL_PREFIX when invoking cmake. For example:

$ cmake -D CMAKE_INSTALL_PREFIX:STRING=$HOME/projects/openwebos ..
$ make
$ make install

will install the files in subdirectories of $HOME/projects/openwebos instead of subdirectories of /usr/local.

Specifying CMAKE_INSTALL_PREFIX also causes the pkg-config files under it to be used to find headers and libraries. To have pkg-config look in a different tree, set the environment variable PKG_CONFIG_PATH to the path to its lib/pkgconfig subdirectory.

To compile with -Wall, configure for debug:

$ cmake -D CMAKE_BUILD_TYPE:STRING=Debug ..
$ make

Uninstalling

From the directory where you originally ran make install, invoke:

$ sudo xargs rm < install_manifest.txt

Generating documentation

Once you have run cmake, execute the following to generate the documentation:

$ make doc

To view the generated HTML documentation for the API, point your browser to:

doc/api/index.html

Testing

To run the test programs, run:

$ make test

Building modules for nodejs

If your system has pkg-config then you can just add this to your makefile:

CFLAGS += $(shell pkg-config --cflags nodejs)

Copyright and License Information

See the file LICENSE.

Something went wrong with that request. Please try again.