Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
This repository contains the edition of the open-source Node.js program used by Open webOS

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>
latest commit 7272321dff
maksym-shevchenko-owo maksym-shevchenko-owo authored kdopen committed
Failed to load latest commit information.
benchmark Assign Copyright to LG Electronics, Inc.
cmake Fix v8_extprj build errors when using icecc
deps Assign Copyright to LG Electronics, Inc.
doc Release nodejs 0.4.12-webos2 to the public
lib Assign Copyright to LG Electronics, Inc.
src Assign Copyright to LG Electronics, Inc.
test Assign Copyright to LG Electronics, Inc.
tools Fix for build failure under Ubuntu 12.04
.gitignore Release nodejs 0.4.12-webos2 to the public
AUTHORS Release nodejs 0.4.12-webos2 to the public
CMakeLists.txt Release nodejs 0.4.12-webos2 to the public
CTestConfig.cmake Release nodejs 0.4.12-webos2 to the public
ChangeLog Release nodejs 0.4.12-webos2 to the public
LICENSE Release nodejs 0.4.12-webos2 to the public
Makefile Release nodejs 0.4.12-webos2 to the public
Makefile.cmake Release nodejs 0.4.12-webos2 to the public
README.cmake Release nodejs 0.4.12-webos2 to the public
README.md Fix italics on PKG_CONFIG_PATH
README.upstream.md Release nodejs 0.4.12-webos2 to the public
TODO Release nodejs 0.4.12-webos2 to the public
TODO.win32 Release nodejs 0.4.12-webos2 to the public
config.h.cmake Release nodejs 0.4.12-webos2 to the public
configure Release nodejs 0.4.12-webos2 to the public
wscript Release nodejs 0.4.12-webos2 to the public

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.