Skip to content
This repository

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 June 13, 2013 kdopen committed July 11, 2013
Octocat-spinner-32 benchmark Assign Copyright to LG Electronics, Inc. July 11, 2013
Octocat-spinner-32 cmake Fix v8_extprj build errors when using icecc February 21, 2013
Octocat-spinner-32 deps Assign Copyright to LG Electronics, Inc. July 11, 2013
Octocat-spinner-32 doc Release nodejs 0.4.12-webos2 to the public April 26, 2012
Octocat-spinner-32 lib Assign Copyright to LG Electronics, Inc. July 11, 2013
Octocat-spinner-32 src Assign Copyright to LG Electronics, Inc. July 11, 2013
Octocat-spinner-32 test Assign Copyright to LG Electronics, Inc. July 11, 2013
Octocat-spinner-32 tools Fix for build failure under Ubuntu 12.04 August 29, 2012
Octocat-spinner-32 .gitignore Release nodejs 0.4.12-webos2 to the public April 26, 2012
Octocat-spinner-32 AUTHORS Release nodejs 0.4.12-webos2 to the public April 26, 2012
Octocat-spinner-32 CMakeLists.txt Release nodejs 0.4.12-webos2 to the public April 26, 2012
Octocat-spinner-32 CTestConfig.cmake Release nodejs 0.4.12-webos2 to the public April 26, 2012
Octocat-spinner-32 ChangeLog Release nodejs 0.4.12-webos2 to the public April 26, 2012
Octocat-spinner-32 LICENSE Release nodejs 0.4.12-webos2 to the public April 26, 2012
Octocat-spinner-32 Makefile Release nodejs 0.4.12-webos2 to the public April 26, 2012
Octocat-spinner-32 Makefile.cmake Release nodejs 0.4.12-webos2 to the public April 26, 2012
Octocat-spinner-32 README.cmake Release nodejs 0.4.12-webos2 to the public April 26, 2012
Octocat-spinner-32 README.md Fix italics on PKG_CONFIG_PATH August 21, 2012
Octocat-spinner-32 README.upstream.md Release nodejs 0.4.12-webos2 to the public April 26, 2012
Octocat-spinner-32 TODO Release nodejs 0.4.12-webos2 to the public April 26, 2012
Octocat-spinner-32 TODO.win32 Release nodejs 0.4.12-webos2 to the public April 26, 2012
Octocat-spinner-32 config.h.cmake Release nodejs 0.4.12-webos2 to the public April 26, 2012
Octocat-spinner-32 configure Release nodejs 0.4.12-webos2 to the public April 26, 2012
Octocat-spinner-32 wscript Release nodejs 0.4.12-webos2 to the public April 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.