Update lua example to include benchmarks.

Also add the ability to upload files to the html5 fs
so that can be run by lua.

Also include some describing text.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/62963006

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@975 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Helper script for generating terminal apps

This script wraps create_nmf.py script and generates .html and .js file
for naclterm.js based terminal application.

BUG= none
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/24365009

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@976 7dad1e8b-422e-d2af-fbf5-8013b78bd812
lua_ppapi: ignore failure to mount html5fs.

This will always fail in incognito mode and we don't
want that to prevent lua from running.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/66093005

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@977 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add script to generate wiki page listing all ports.

The generated page can be seen here:
https://code.google.com/p/naclports/wiki/PortList

R=binji@chromium.org

Review URL: https://codereview.chromium.org/70503002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@987 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Move all ports from libraries/* or examples/*/* to ports/*.

BUG=none
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/64923004

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@988 7dad1e8b-422e-d2af-fbf5-8013b78bd812
TeX Live 2013 build in examples

TeX Live currently only builds with glibc; we need to add some of the
missing function definition into toolchain provided headers before we
can build with newlib.

The configuration currently builds all library dependencies rather than
using the "system" ones. We might be able to reuse some of the existing
libraries which already have been ported (e.g. freetype) and split out
those which could be reused by other applications (e.g. icu), but we
would need to solve the dependency management first, in particular the
versioning as TeX Live requires specific versions in many cases.

The script generates a terminal application for each binary which is
only useful for debugging at the moment. We need to provide a driver
(e.g. porting Rubber or latexmk) to setup the pipeline for compiling
TeX documents which could be then integrated with a text editor for
authoring these. However, that should be a separate, standalone
application developed independently of this port.

BUG=
R=bradnelson@google.com, sbc@chromium.org

Review URL: https://codereview.chromium.org/24816002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@990 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Update terminal-based webstore apps.

Update nano, lua, python, ruby and vim terminal based
applications now all use the same startup code.  Ideally
this would not need to be duplicated between them but
this is a step in the right direction.

Update nano patch to removing un-needed parts.

Add CONFIGURE_SENTINAL environment variable which,
when set, allows configure step to be skipped when
the sentinal exists.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/69953015

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@991 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add glibc-compat stubs for sigaction and sigsuspend.

This allows readline's configure stage to depend sigactions
support.  This fixes the build against the latest SDK.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/63503004

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@992 7dad1e8b-422e-d2af-fbf5-8013b78bd812
OpenCV 2.4.7 porting to PNaCl 

Patches and cmake toolchain file for compilation with PNaCl clang. 

Started off from box2d, file "diff"s come from it, if any. 

R=sbc@chromium.org

Review URL: https://codereview.chromium.org/76153002



git-svn-id: https://naclports.googlecode.com/svn/trunk/src@993 7dad1e8b-422e-d2af-fbf5-8013b78bd812
OpenCV 2.4.7 porting to PNaCl - missing executable flag in build.sh

R=sbc@chromium.org



git-svn-id: https://naclports.googlecode.com/svn/trunk/src@994 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix opencv build by setting NACL_TOOLCHAIN_ROOT on the cmake commandline.

Without this cmake was looking in the system library and
include paths to find libraries and headers.

Also, add dependencies on image libraries so they are
correctly detected rather than built form source.

Also, allow parallel builds.  They seem to work for me.

TEST=./make_all.sh opencv
R=binji@chromium.org

Review URL: https://codereview.chromium.org/81423002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@995 7dad1e8b-422e-d2af-fbf5-8013b78bd812
snes9x: remove dependency on nacl-mounts

BUG=none
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/83173009

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@996 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Remove use of libnosys.

libnosys.a has been deprecated as of SDK version 31.  These
days libc provides all the NOSYS stubs that libnosys used
to provide.  While the library still exists as an empty
archive we can simply a lot of the naclports by removing
all referecnes to it.

This change means that many ports now require pepper_31
so I've set this as the default MIN_SDK_VERSION.  It should
still be possible for build some ports with older SDKs
but this is now generally supported.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/86433002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@997 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add python3 port

TEST=./make_all.py python3
R=binji@chromium.org

Review URL: https://codereview.chromium.org/77413006

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@998 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix race crash in nacl-mounts tests.

The kp global was being intialised by the static
constructor but the gtest static constructors were
calling getcwd() before it was run.

R=noelallen@chromium.org

Review URL: https://codereview.chromium.org/90453002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@999 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Prepare naclports for the PNaCl change to libc++ as the default.

Fix some broken assumptions, and allow C programs to link with libstdc++ or libc++ depending on whether they're using PNaCl or not. The later is required because nacl_io needs C++ even if the base program is C.

R=sbc@chromium.org
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3623

Review URL: https://codereview.chromium.org/92733002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1000 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Unbreak naclports build.

My previous CL seems to have broken naclports because NACL_CPP_LIB isn't
defined. Export it so it is defined.

Previous CL: https://codereview.chromium.org/92733002/

R=sbc@chromium.org
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3623

Review URL: https://codereview.chromium.org/99883004

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1002 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Build and install civetweb as library

R=binji@chromium.org

Review URL: https://codereview.chromium.org/99483005

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1003 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Turn on naclmounts tests for pnacl -- seems fixed by r999

They were skipped before because of a crash.

Stack trace in the issue noted that __cxx_global_var_init
was part of the crash and r999 fixed a static initializer
problem.  Seems to work with the patch and not work without
the patch.

BUG= http://code.google.com/p/nativeclient/issues/detail?id=3701
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/99563002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1004 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add common build rules for CMake builds.

Also, split out the XCompile cmake rules so that they
are shared between all ports.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/106013002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1005 7dad1e8b-422e-d2af-fbf5-8013b78bd812