summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/src/examples
Commit message (Collapse)AuthorAgeFilesLines
* Update Make filesnoelallen@google.com2012-02-1018-1591/+1054
| | | | | | | | | | | | | | | | | | This change grately simplifies the other example build cases making it easier to point out exactly what is different between the various builds. It also allows us to stage simple make file changes instead of starting with a more complex one. This change also adds the missing check_browser.js to each directory instead of copying it via macro from a common location. This change only affect the NaCl SDK builders. TBR=bradnelson@chromium.org BUG=109207 Review URL: https://chromiumcodereview.appspot.com/9383018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121569 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up examplesnoelallen@google.com2012-02-1023-811/+734
| | | | | | | | | | | | | | | | | | | | | Simplify hello world examples. Remove DEBUG/RELEASE builds from make. Remove 'helper_functions' from simple hello_world. Move C++ hello_world -> hello_world_interactive. Move Hello_world_c -> hello_world_newlib Copy Hello_world_c -> hello_world_glibc (with glibc TC) This change grately simplifies the hello world cases making it easier to point out exactly what is different between the various builds. It also allows us to stage simple make file changes instead of starting with a more complex one. This change only affect the NaCl SDK builders. BUG= 109207 Review URL: https://chromiumcodereview.appspot.com/9370041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121374 0039d316-1c4b-4281-b951-d872f2087c98
* Remove bogus make files.noelallen@google.com2012-02-062-2/+0
| | | | | | | | | | buildbot_run.py automatically generates make.bat files during the Windows SDK build process. These files should be removed. TBR= bradnelson@chromium.org Review URL: https://chromiumcodereview.appspot.com/9331011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120603 0039d316-1c4b-4281-b951-d872f2087c98
* Support GLBIC example in SDKnoelallen@google.com2012-02-0112-0/+996
| | | | | | | | | | | | | | | This CL added two new examples for the NaCl SDK. This only affects SDK bots since the code is completely contained within native_client_sdk subtree. Fix incorrectly placed ppapi headers. Remove TODOs and cleanup create_nmf.py. Add hello_world_glibc example Add dlopen example. BUG= 111224 Review URL: https://chromiumcodereview.appspot.com/9234043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120117 0039d316-1c4b-4281-b951-d872f2087c98
* Add simple NaCl gamepad examplescottmg@chromium.org2012-01-196-0/+476
| | | | | | | | | BUG=79098 Review URL: http://codereview.chromium.org/9148086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118334 0039d316-1c4b-4281-b951-d872f2087c98
* Update SDK build scripts to green tree.noelallen@google.com2012-01-1512-0/+72
| | | | | | | | | | | | | | | | Replace multiple SDK scripts with updated buildbot_run.py Remove Windows installer, use tgz/bz2 on all platforms. Remove scons, replace all example build components with Make. Add missing NMF files. Add oshelper to make a platform independant mv, rm, cp, mkdir This CL should only affect SDK bots, not Chrome. Commiting TBR to green SDK tree. BUG= 109207 TBR= bradnelson@chromium.org Review URL: http://codereview.chromium.org/9090001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117813 0039d316-1c4b-4281-b951-d872f2087c98
* Convert examples from scons to Makenoelallen@google.com2012-01-1370-967/+2335
| | | | | | | | | | | | | Remove all scons files. Remove all scons test files. Add Makefile. Fix various build issues due to PPAPI changes. NOTE: This only affect SDK builders and not Chrome itself. BUG= http://code.google.com/p/chromium/issues/detail?id=109917 Review URL: http://codereview.chromium.org/9139029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117675 0039d316-1c4b-4281-b951-d872f2087c98
* Switching license notice from nacl to chromium as the naclsdk has beenbradnelson@google.com2012-01-1298-98/+98
| | | | | | | | | | | merged into chromium. BUG=None TEST=None R=noelallen@chromium.org,steveblock@chromium.org Review URL: http://codereview.chromium.org/9051006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117462 0039d316-1c4b-4281-b951-d872f2087c98
* Update PPAPI IDL generator to define versioned structs, and unversioned typedef.wez@chromium.org2012-01-051-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For interface Foo with versions A and B, structs will be defined for Foo_A and Foo_B, and a typedef generated from Foo_B to Foo. Versioning of IDL structs remains unchanged. (Follow-up to discussion on CL 8931019) *** This change breaks compatibility with C code that makes use of unversioned-named interface structs. :( *** We need to define a versioned-named struct for each interface's current version. We could: 1. Carry on defining the current struct unversioned and typedef a versioned name for it. The versioned type for the interface would be a typedef for the latest version and a struct for later versions, causing calling C code that uses it to break when a new version is added. 2. Define structs for all versions, and a separate unversioned struct. This would lose type equivalence between the versioned and unversioned copies of the latest interface specification, and lead to needless duplication, especially for one-version interfaces. 3. Do this CL. We break some C code once, by change the unversioned type from struct to typedef, but we avoid these headaches in future. C++ code shouldn't be affected. *** Contents of this CL, including notes on to-dos: This change requires updating thunk-getters to be defined using versioned names, so that the interface structs can be forward declared; the thunk-getters now have versioned names and return values. Changing the thunk-getter naming requires updating unit-tests to call the versioned names. It also requires some interface headers not generated from IDL to be manually updated to the new scheme (PPB_CharSet_Dev, PPB_Crypto_Dev, PPB_DirectoryReader_Dev, PPB_LayerCompositor_Dev, PPB_Graphics3D, PPB_Flash_Menu, PPB_Instance_Private, PPP_Pdf, PPB_Flash_NetConnector, PPB_GLESChromiumTextureMapping_Dev and PPB_Graphics3D_Trusted). The proxy GetInfo() calls are updated to use versioned interface macros and thunks. Similarly, most PPBs added in interface_list.cc are now added using versioned interface macros and thunk getters. Ditto PluginModule, and some of PluginInstance. Some implementations (e.g. PPB_CharSet_Dev) needed updating to use versioned thunk getters to fetch interfaces to use. The VideoDecoder interface size checks are for 32-bit are updated not to expect structs. It was necessary to replace forward declarations of interface structs with includes, and remove "struct" prefixes where unversioned names were used. In most cases the affected code should really be updated to cope with versions. PPP_Pdf has become PPP_Pdf_1. Other versionless structs that should be updated for consistenct include PPB_UMA_Private, PPB_GPU_Blacklist_Private, PPB_Proxy_Private, PPP_PDF, PPB_OpenGLES2, PPB_Flash_File_FileRef and PPB_Flash_File_ModuleLocal. Also PPP_Class_Deprecated, PPP_CursorControl_Dev, PPP_Find_Dev, PPP_NetworkState_Dev, PPP_Scrollbar_Dev, PPP_Selection_Dev, PPP_VideoCapture_Dev, PPP_Graphics3D and PPP_Instance_Private. The Graphics2D and GLES2 examples now use unversioned interface type names without "struct" prefix. It's not clear whether examples should use versioned names, to show best practice, or unversioned. The typedef hack in PPP_Instance IDL is gone. Yay. BUG=107398,108379 TEST=All Pepper and NaCl tests should continue to pass on Chromium bots. NaCl SDK examples build correctly. Review URL: http://codereview.chromium.org/8989006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116490 0039d316-1c4b-4281-b951-d872f2087c98
* Merged in NaCl SDK r1388 from old repomball@google.com2011-12-132-5/+39
| | | | | | | | | | | | | | | | Original commit text: Add some suggested performance improvements to geturl. Original Review URL: http://codereview.chromium.org/8603014 BUG=None TEST=None TBR=bradnelson@chromium.org Review URL: http://codereview.chromium.org/8922018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114125 0039d316-1c4b-4281-b951-d872f2087c98
* Fix PluginImageData and mouselock NaCl example:yzshen@chromium.org2011-12-091-8/+18
| | | | | | | | | | | | - Fix the memory leak in PluginImageData. - Fix the out-of-bound memory access in mouselock NaCl example. BUG=106779 TEST=mouselock NaCl example won't crash after a while (~30 seconds). Review URL: http://codereview.chromium.org/8872045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113854 0039d316-1c4b-4281-b951-d872f2087c98
* Update the NaCl SDK C example to handle removing module from VarFromUtf8dmichael@chromium.org2011-12-081-1/+1
| | | | | | | | | | BUG=106596 TEST=NaCl SDK Hello World C example builds and runs successfully. TBR=noelallen1 Review URL: http://codereview.chromium.org/8883008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113557 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert "Restructuring SDK so that it builds inside a normal chrome ↵aa@chromium.org2011-11-292-12/+27
| | | | | | | | | | | | | checkout."" This reverts commit 5034eda4c488c4f47361bd3b70f52a375837326f. BUG=105658 TEST= Review URL: http://codereview.chromium.org/8687022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111827 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Restructuring SDK so that it builds inside a normal chrome checkout."aa@chromium.org2011-11-292-27/+12
| | | | | | | | | | | | | | This reverts commit f93e934130f674cde671d49f17dc152793e943ca. Revert "Make archiving source independent of which buildbot_run.py is run from." This reverts commit c4ab747a752ee8228bfb78f71b54df8ef9104c7e. BUG=105658 Review URL: http://codereview.chromium.org/8664018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111826 0039d316-1c4b-4281-b951-d872f2087c98
* Restructuring SDK so that it builds inside a normal chrome checkout.bradnelson@google.com2011-11-282-12/+27
| | | | | | | | | | | Adding the glibc toolchain to chromebots. BUG=None TEST=None R=noelallen@google.com Review URL: http://codereview.chromium.org/8676030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111759 0039d316-1c4b-4281-b951-d872f2087c98
* Fix python scripts in src/native_client_sdk/maruel@chromium.org2011-11-271-5/+7
| | | | | | | | | | | | | | | | | | Make sure that: - shebang is only present for executable files - shebang is #!/usr/bin/env python - __main__ is only present for executable files - file's executable bit is coherent Also fix EOF LF to be only one. TBR=bradnelson@chromium.org BUG=105108 TEST= Review URL: http://codereview.chromium.org/8669017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111659 0039d316-1c4b-4281-b951-d872f2087c98
* Adding in (mostly) verbatim landing of nacl sdk.bradnelson@google.com2011-11-21102-0/+10433
| | | | | | | | | | | | | Dropping large binaries. Redo of http://crrev.com/110822 checkdeps + checkperms have now beep updated in preparation. BUG=None TEST=None R=noelallen@google.com TBR git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110872 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 110822 - Breaks check_deps and check_permsrsleevi@chromium.org2011-11-19102-10433/+0
| | | | | | | | | | | | | | | Adding reduced version of sdk at 1387 to chrome tree. BUG=None TEST=None R=noelallen@google.com TBR BUG=None TBR=bradnelson@google.com git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110830 0039d316-1c4b-4281-b951-d872f2087c98
* Adding reduced version of sdk at 1387 to chrome tree.bradnelson@google.com2011-11-19102-0/+10433
BUG=None TEST=None R=noelallen@google.com TBR git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110822 0039d316-1c4b-4281-b951-d872f2087c98