/macton-nacl

NaCl examples and tests

Primary LanguageC

Do you need a machine set up to build NaCl projects? ...and other info.
- See the wiki: https://github.com/macton/macton-nacl/wiki

Are you on the Native-Client-Discuss google group?
- https://groups.google.com/forum/?fromgroups#!forum/native-client-discuss

Find me on Twitter: @mike_acton 
- http://twitter.com/mike_acton

What version of Pepper do these run on?
- 24 Apr 2012: Pepper 19
- 20 Apr 2012: Pepper 18


Projects
--------

hello_01_log
- Basic sample using C API and C compiler. Message passing for logs.

nacl_single_instance
- Simplified (generated) single instance API. nacl.c; nacl.h
- See also: https://groups.google.com/d/topic/native-client-discuss/70hXg3AACeE/discussion
- Graphics3D and OpenGLES2 boilerplate included (bind the view). Just provide RenderFrame()

hello_01_single_instance
- Use nacl_single_instance API. Equivalent to hello_01_log.

hello_01_sel_ldr
- Simple example of using sel_ldr to run nexe from command line, read stdin and write stdou

hello_02_post_json
- Using Insomniac DDL to post JSON of object to chrome. 
- Custom NaCl DDL template generates concrete structure/class which can write JSON.
- Also mixes c99 and c++98

hello_03_njf_demo
- Port Nicholas Fullagar's OpenGLES2 ppapi_njf_demo to single_instance
- See also: https://github.com/macton/ppapi_njf_demo

ports/lua/5.2.0
- Lua library for embedding in applications

server_compile
- Build code submitted from website on the server, dynamically reload nexe. Bonus: NaCl as CGI script. see: server_compile/README


License
-------

Copyright (c) 2012, Insomniac Games
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.