summaryrefslogtreecommitdiffstats
path: root/native_client_sdk
Commit message (Collapse)AuthorAgeFilesLines
* Tweak PNaCl component archiver in SDK to avoid leading zeros vernum.jvoung2015-07-012-21/+30
| | | | | | | | | | | | | | | | | E.g., avoid 330242 -> 33.0242 in the rev_major/rev_minor splitting. Instead convert that to 330242 -> 33.242. This creates some ambiguity with 330242 vs 33242. To help a bit, label the tar file with the full 330242 (since that doesn't have the rev_major/minor restriction). Within the version number we also have the chrome milestone (43, vs 44) which would help with the 330242 (milestone 44) vs 33242 (milestone much less than 44) ambiguity. BUG=none Review URL: https://codereview.chromium.org/1211243015 Cr-Commit-Position: refs/heads/master@{#337097}
* Fix TestDefaultLibpath.testFallbackPath on windows.bradnelson2015-07-011-0/+4
| | | | | | | | | | | | | | | Work around backslashes on windows for this test. Regression introduced in: https://codereview.chromium.org/1219623006 BUG=None TEST=None TBR=sbc@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/1215843006 Cr-Commit-Position: refs/heads/master@{#336953}
* ppapi: VideoEncoder: prevent scheduling encoding multiple timeslionel.g.landwerlin2015-06-301-1/+20
| | | | | | | | | | | | | | | | The ScheduleNextEncode() can be called at multiple stages in the example depending on whether it needs to reconfigure the MediaVideoStreamTrack. This can lead the example to encode at twice 30fps. At this speed we can exhaust the 33ms lifespan of video buffers, leading to errors in the example plugins which can't retrieve new frames to respect the 30fps framerate. BUG=503153 TEST=run video_encoder example from NaCl SDK with VP8 codec and verify there are no error messages after 1 minute Review URL: https://codereview.chromium.org/1218513003 Cr-Commit-Position: refs/heads/master@{#336850}
* Move linux sysroots from chrome/installer/linux to build/linuxsbc2015-06-301-3/+2
| | | | | | | | | | | | | | | | | | | | | | The sysroot are generally useful (for example when cross compiling) and not limited to use in the installer or official releases. Another reason to move this is that it would allow other projects to more easily share chromium's build setup without depending on chrome/. Also, rename the install script to simply install-sysroot. This way the script can keep the same name and support multiple different debian releases without needing to duplicate the script (e.g. when we switch to jessie). BUG=504446 TEST=cross build chromium for arm and ia32 Review URL: https://codereview.chromium.org/1141003002 Cr-Commit-Position: refs/heads/master@{#336843}
* [NaCl SDK] handle custom configurations in create_nmfsbc2015-06-303-10/+44
| | | | | | | | | | | | This change allows custom configuration such as msan and tsan to be used while still allowing some libraries to come from the default library path. This behaviour is already part of the the build system but was missing from create_nmf. Review URL: https://codereview.chromium.org/1219623006 Cr-Commit-Position: refs/heads/master@{#336810}
* [NaCl SDK] gonacl: index.html points to correct robot.png/wrench.pngbinji2015-06-291-2/+2
| | | | | | | | | | | | | | The robot.png and wrench.png images were moved a while ago, but the index.html wasn't updated to use the new location. We never noticed, probably because we always looked at the page in Chrome. BUG=none R=sbc@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/1213123004 Cr-Commit-Position: refs/heads/master@{#336587}
* [NaCl SDK] Undefined min/max on Windows in video_encode examplebinji2015-06-251-3/+5
| | | | | | | | | BUG=none R=sbc@chromium.org Review URL: https://codereview.chromium.org/1209753003 Cr-Commit-Position: refs/heads/master@{#336280}
* [NaCl SDK] Fix recent mac SDK build break by suppressing a warningsbc2015-06-251-0/+9
| | | | | | | | BUG= https://code.google.com/p/chromium/issues/detail?id=504184 Review URL: https://codereview.chromium.org/1207953002 Cr-Commit-Position: refs/heads/master@{#336203}
* Fixing paths messed up in previous sel_ldr.py change.bradnelson2015-06-201-4/+4
| | | | | | | | | | | | This should correct the sel_ldr.py failures on naclports. BUG=None TBR=sbc@chromium.org TEST=local naclports. Review URL: https://codereview.chromium.org/1194173003 Cr-Commit-Position: refs/heads/master@{#335397}
* Add an option for additional library directories to sel_ldr.pybradnelson2015-06-181-10/+17
| | | | | | | | | | | | | | | | | | | | sel_ldr.py can run glibc dynamically linked executables, but does not currently support the case where the shared libaries originating from somewhere other than the toolchain are needed. Adding an option to allow additional library paths. Adding toolchain usr/lib directories to the default library paths. (Patch from gauravashish07@gmail.com) BUG=None TEST=trybots + local R=sbc@chromium.org,gauravashish07@gmail.com Review URL: https://codereview.chromium.org/1192693002 Cr-Commit-Position: refs/heads/master@{#335165}
* ppapi: VideoEncoder: improve accuracy of encoding ticklionel.g.landwerlin2015-06-181-2/+8
| | | | | | | | | | | | | | | | The current VideoEncoder example's scheduling algorithm for encoding frames at 30fps drifts as it schedules new callbacks and as a consequence records fewer frames than what the frame rate requires. This change improves the algorithm by storing the last time at which it encoded a frame and uses this information to predict when the next tick should happen. BUG=none TEST=record 30s of video using the video encoder example, check that the produced stream's length is identical (1 or 2 frames difference) Review URL: https://codereview.chromium.org/1187193006 Cr-Commit-Position: refs/heads/master@{#335147}
* [NaCl SDK] sel_ldr.py Add flag to enable exception handling interface.binji2015-06-151-0/+10
| | | | | | | | | BUG=none R=sbc@chromium.org Review URL: https://codereview.chromium.org/1180183005 Cr-Commit-Position: refs/heads/master@{#334400}
* [NaCl SDK] Add include of stdint.h to netdb.hsbc2015-06-091-0/+1
| | | | | | | | | | | | | | uint32_t is used in the declaration of getnetbyaddr but stdin.h was not directly included. This will be needed once this change the newlib headers lands: https://codereview.chromium.org/1163893003 BUG= https://code.google.com/p/nativeclient/issues/detail?id=4198 Review URL: https://codereview.chromium.org/1167113002 Cr-Commit-Position: refs/heads/master@{#333601}
* [NaCl SDK] Switch naclports checkout to use gclientsbc2015-06-091-12/+11
| | | | | | | | | Just checking out with git clone is not enough. This should fix the linux SDK builder. Review URL: https://codereview.chromium.org/1175613003 Cr-Commit-Position: refs/heads/master@{#333535}
* [NaCl SDK] Roll naclports revision used when building ports bundleSam Clegg2015-06-091-1/+1
| | | | | | | | | | | | | | The brings in all revision from e53078c3..65c71c1. The purpose of this roll is to remove libwebp from the naclports bundle since its currently not buildable with nacl-clang. TBR=bradnelson BUG= https://code.google.com/p/nativeclient/issues/detail?id=4203 Review URL: https://codereview.chromium.org/1170923002. Cr-Commit-Position: refs/heads/master@{#333415}
* [NaCl SDK] Use seperate build dir for msan/tsan buildssbc2015-06-024-38/+39
| | | | | | | | | | | | | | This ensures that everything gets rebuilt with correct cflags/ldflags. Add Release as well as msan_Release to the link line since not all libraries get rebuild in this mode (some core libraries such as libppapi still only exist in the Release director). Review URL: https://codereview.chromium.org/1163843006 Cr-Commit-Position: refs/heads/master@{#332453}
* [NaCl SDK] nacl_io: Fix data race in fake_var_manangersbc2015-06-023-8/+32
| | | | | | | | | | Thanks msan! CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_nacl_sdk;tryserver.chromium.mac:mac_nacl_sdk;tryserver.chromium.win:win_nacl_sdk Review URL: https://codereview.chromium.org/1160673002 Cr-Commit-Position: refs/heads/master@{#332417}
* [NaCl SDK] nacl_io: Nicer PPError logging.binji2015-05-298-24/+116
| | | | | | | | | | | Print the PPError string and code whenever a Pepper function fails. BUG=171993 R=sbc@chromium.org Review URL: https://codereview.chromium.org/1150223004 Cr-Commit-Position: refs/heads/master@{#332054}
* Remove unused in-process pepper APIsraymes2015-05-292-9/+0
| | | | | | | | | | | | | | | | Several APIs are now unused after turning on OOP PDF. This removes: Selection_Dev Widget_Dev Scrollbar_Dev Zoom_Dev These APIs only work in-process so we can be sure they aren't used by existing plugins (except possibly the NaCl plugin but they aren't used by that either). BUG=303491 Review URL: https://codereview.chromium.org/1161563002 Cr-Commit-Position: refs/heads/master@{#331904}
* Fix some JS style nits.dbeam2015-05-273-3/+3
| | | | | | | | | | | | | | | | | | | | | | Replace: Array.< Object.< With: Array< Object< See bug for rationale (. is no longer required, just extra fluff, looks more like C++, etc.) TBR=darin@chromium.org BUG=492476 NOPRESUBMIT=true Review URL: https://codereview.chromium.org/1150173003 Cr-Commit-Position: refs/heads/master@{#331603}
* Add 'explicit' qualifiers to single-arguments ctorsprimiano2015-05-271-1/+1
| | | | | | | | | | | Just noticed that some single-arg ctors in the codebase missed the explicit qualifier. BUG= TBR=armansito Review URL: https://codereview.chromium.org/1148943005 Cr-Commit-Position: refs/heads/master@{#331595}
* [NaCl SDK] Add ASAN and TSAN build configurations SDK build systemsbc2015-05-262-8/+32
| | | | | | | | | | | | | This enables users of the SDK build system to quickly enable ASAN/TSAN builds. This support in test_sdk.py had also bittrotted a little since we don't yet enable this on the bots. Also, remove redundant -fPIC flag. Review URL: https://codereview.chromium.org/1152333007 Cr-Commit-Position: refs/heads/master@{#331444}
* [NaCl SDK] Add option to not use sysroot in buildeduardo.lima2015-05-252-1/+5
| | | | | | | | | | | BUG=491175 R=sbc@chromium.org Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com> Review URL: https://codereview.chromium.org/1153793002 Cr-Commit-Position: refs/heads/master@{#331281}
* [Cleanup] Fix pronouns in comments.groby2015-05-221-6/+6
| | | | | | | | | | | Replacing "he/she" with "they". BUG=none R=jmedley@chromium.org Review URL: https://codereview.chromium.org/1146293002 Cr-Commit-Position: refs/heads/master@{#331188}
* Fix a lot of support links.dbeam2015-05-222-2/+2
| | | | | | | | | | | | | | | Things I did: 1) Changed all domains I could find to https://support.google.com 2) Changed all the bin/answer.py?answer=# to answer/# 3) Left any code-populated ?hl= for now (worried about CHECK() failures) TBR=cpu@chromium.org BUG=490858,490875,490887 Review URL: https://codereview.chromium.org/1144193005 Cr-Commit-Position: refs/heads/master@{#331064}
* [NaCl SDK] Add pepper_44 version of the NaCl SDKSam Clegg2015-05-201-10/+10
| | | | | | | | R=binji@chromium.org Review URL: https://codereview.chromium.org/1142713009 Cr-Commit-Position: refs/heads/master@{#330770}
* Switch default float-abi for ARM linux from softfp to hardsbc2015-05-173-5/+1
| | | | | | | | | | | | | | All the ARM linux builders already specify this, and armhf is the now the default for both Ubuntu and Debian. Followup cleanup cl for the bots: https://codereview.chromium.org/1141643004/ BUG=308256 Review URL: https://codereview.chromium.org/1140503004 Cr-Commit-Position: refs/heads/master@{#330316}
* nacl_io: Add glibc IRT redirect for rename syscallsbc2015-05-163-11/+5
| | | | | | | | | | | | This means we can remove the direct intercept, which is currently causing lua5.2 tests to fail on the naclports tree. CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_nacl_sdk;tryserver.chromium.mac:mac_nacl_sdk;tryserver.chromium.win:win_nacl_sdk Review URL: https://codereview.chromium.org/1127103006 Cr-Commit-Position: refs/heads/master@{#330279}
* nacl_io: Remove the direct syscall intercept for 'remove'sbc2015-05-143-23/+4
| | | | | | | | | | | | | | | | | This is no longer needed as the underlying syscalls unlink/rmdir and both intercepted at the IRT level. I believe this was overlooked when we fixed: https://code.google.com/p/nativeclient/issues/detail?id=3709 This should fix the recent lua5.2 failures on the naclports waterfall. CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_nacl_sdk;tryserver.chromium.mac:mac_nacl_sdk;tryserver.chromium.win:win_nacl_sdk BUG=487701 Review URL: https://codereview.chromium.org/1136953014 Cr-Commit-Position: refs/heads/master@{#329871}
* [NaCl SDK] Honor CFLAGS/CXXFLAGS environment variablessbc2015-05-074-63/+59
| | | | | | | | | | | | | We already honour LDFLAGS in the examples build system but for some reason not CFLAGS or CXXFLAGS. This change allows the user to specify CFLAGS without changing the Makefile itself. CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_nacl_sdk;tryserver.chromium.mac:mac_nacl_sdk;tryserver.chromium.win:win_nacl_sdk Review URL: https://codereview.chromium.org/1091223003 Cr-Commit-Position: refs/heads/master@{#328838}
* [gonacl.com] Update gonacl.com/reportissue redirect URLbinji2015-05-051-0/+2
| | | | | | | | | | | | For now this redirects to the Native Client issues link. In a future CL, I'll update it to a page that better describes how to file a good NaCl bug. BUG=none R=sbc@chromium.org Review URL: https://codereview.chromium.org/1126723002 Cr-Commit-Position: refs/heads/master@{#328376}
* [NaCl SDK] Build sel_ldr and ncval against debian/stable sysrootsbc2015-05-041-0/+13
| | | | | | | | | | | | | | This allows sel_ldr to be deployed and run on debian/stable. Currently we are building against the host system libraries which are currently ubuntu/precise. This results in binarys that depend on more recent versions of glibc than are available in debian/stable. CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_nacl_sdk;tryserver.chromium.mac:mac_nacl_sdk;tryserver.chromium.win:win_nacl_sdk Review URL: https://codereview.chromium.org/1061713005 Cr-Commit-Position: refs/heads/master@{#328219}
* [NaCl SDK] nacl_io: Fix use-after-free bug in html5fsbinji2015-04-242-4/+3
| | | | | | | | | | | | | | | nacl_io::Path::Part returns a temporary string. The code that hashes the path to create a phony ino calls this, and stashes a pointer to the memory. The real issue with nacl_io_demo is that the quota was too low. I've upped it to 5 megs now. BUG=478230 R=sbc@chromium.org Review URL: https://codereview.chromium.org/1062463004 Cr-Commit-Position: refs/heads/master@{#326850}
* NaCl/GYP: remove references to prep_toolchain.ncbray2015-04-211-1/+0
| | | | | | | | | | prep_toolchain is now a no-op. BUG=456902 Review URL: https://codereview.chromium.org/1097153002 Cr-Commit-Position: refs/heads/master@{#326044}
* [NaCl SDK] Remove experimental libjpeg and zlib libraries from SDK.binji2015-04-202-145/+0
| | | | | | | | | | | These have never been enabled, and are included by naclports. BUG=none R=sbc@chromium.org Review URL: https://codereview.chromium.org/1054743002 Cr-Commit-Position: refs/heads/master@{#325943}
* ppapi: VideoEncoder: fix reported value for GetSupportedProfiles()lionel.g.landwerlin2015-04-171-1/+1
| | | | | | | | | | | | GetSupportedProfiles() should return the number of supported profiles or a negative value in case of error. Prior to this change, we reported PP_OK instead of the number of profiles. BUG=455409 Review URL: https://codereview.chromium.org/1069653002 Cr-Commit-Position: refs/heads/master@{#325649}
* [NaCl SDK] Remove create_nmf dependency on NACL_SDK_ROOT env varsbc2015-04-162-35/+24
| | | | | | | | | | | | | | | | | | | | | create_nmf should determine the root of the SDK relative to its own location. The exception to this is when its run as part of the chrome build, when it is not yet installed. In this case we pass --no-default-libpath and --objdump to create_nmf to remove any use of the SDK root. This is the second attempt at landing this change. The first one was reverted: https://codereview.chromium.org/737653003 CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_nacl_sdk;tryserver.chromium.mac:mac_nacl_sdk BUG=none Review URL: https://codereview.chromium.org/1066823003 Cr-Commit-Position: refs/heads/master@{#325511}
* [NaCl SDK] Build and archive pnacl component multicrx as part of SDK buildsbc2015-04-143-37/+157
| | | | | | | | | | | | | | | On linux machines that run build_sdk.py with --archive we now build and archive the pnacl component as a zip file. The shell script that generates this is derived from one that has been used by jvoung to generate the component locally. CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_nacl_sdk;tryserver.chromium.mac:mac_nacl_sdk TEST=./build_tools/build_sdk.py --tar --archive Review URL: https://codereview.chromium.org/866723006 Cr-Commit-Position: refs/heads/master@{#324985}
* [NaCl SDK] Add ARM linux libraries for running sel_ldr under qemusbc2015-04-103-14/+65
| | | | | | | | | | | | | | Previously we were relying on the user having both qemu and and an ARM sysroot image. Since sel_ldr only requires a few system libraries to run we can simply ship them with the SDK. BUG=475992 CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_nacl_sdk;tryserver.chromium.mac:mac_nacl_sdk TEST=nacl_io_test$ make NACL_ARCH=arm TOOLCHAIN=newlib STANDALONE=1 run Review URL: https://codereview.chromium.org/936163002 Cr-Commit-Position: refs/heads/master@{#324698}
* [NaCl SDK] Never skip the build when doing a clean buildSam Clegg2015-04-091-0/+1
| | | | | | | | | | | | This fixes a crash in where running: build_sdk.py --skip-toolchain --clean R=binji@chromium.org, binji BUG=none Review URL: https://codereview.chromium.org/1074853002 Cr-Commit-Position: refs/heads/master@{#324476}
* [NaCl SDK] Temporarily disable host testing of pi_generatorsbc2015-04-091-0/+3
| | | | | | | | | | | | Running this example is consistently failing under host mac build and occasionally failing on linux as well. CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_nacl_sdk;tryserver.chromium.mac:mac_nacl_sdk BUG=475255 Review URL: https://codereview.chromium.org/1076573004 Cr-Commit-Position: refs/heads/master@{#324361}
* Add PNaCl release note about how to try out Subzero / which flag to set.jvoung2015-04-094-1/+25
| | | | | | | | BUG= https://code.google.com/p/nativeclient/issues/detail?id=4091 Review URL: https://codereview.chromium.org/1059423002 Cr-Commit-Position: refs/heads/master@{#324321}
* nacl sdk: add PPB_VideoEncoder examplelionel.g.landwerlin2015-04-076-0/+753
| | | | | | | | BUG=455409 Review URL: https://codereview.chromium.org/1037793003 Cr-Commit-Position: refs/heads/master@{#324026}
* [NaCl SDK] Add pepper_43 bundle, remove 35 and 36.binji2015-04-061-20/+10
| | | | | | | | | BUG=none R=bradnelson@chromium.org Review URL: https://codereview.chromium.org/1016193002 Cr-Commit-Position: refs/heads/master@{#323975}
* NaCl SDK: Update release notes for Pepper 43.bbudge2015-04-032-25/+36
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/1062573002 Cr-Commit-Position: refs/heads/master@{#323821}
* Add PNaCl libstdc++ deprecation notice to Chrome 43 release notes.dschuff2015-04-032-0/+8
| | | | | | | | | | | R=jfb@chromium.org,sbc@chromium.org BUG=None NOTRY=true (documentation change) Review URL: https://codereview.chromium.org/1059233003 Cr-Commit-Position: refs/heads/master@{#323808}
* [NaCL SDK] nacl_io: Add missing lock to fix crash bug in jspipesbc2015-04-031-0/+2
| | | | | | | | | | | | | A missing lock call was resulting in EventEmitter::RiaseEvents_Locked being called without the emitter lock being held. This resulted possible simultaneous access the listeners_ member which is a STL map. BUG=468686 Review URL: https://codereview.chromium.org/1059113002 Cr-Commit-Position: refs/heads/master@{#323788}
* Revert of [NaCl SDK] Don't overwrite components that already ship in the ↵sbc2015-04-032-5/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NaCl toolchain (patchset #2 id:20001 of https://codereview.chromium.org/1052563005/) Reason for revert: This caused a regression in naclports because the libnacl we ship in the x86-newlib toolchain is quite old and overriding it was hiding this issue. Original issue's description: > [NaCl SDK] Don't overwrite components that already ship in the NaCl toolchain > > We are currently redundantly building and copying serveral > libraries and headers that already ship in the NaCl toolchain > tarballs. This change removes the copying. Once this lands > we can reduce the redundant building by removing targets > from the nacl_core_sdk gyp target. > > The dynamic_annotations.h header was removed from ARM > and le32-nacl targets since it has no support for ARM or > bitcode (i.e. we should never have been shipping the > header for those toolchains). TBR=binji@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/1060563004 Cr-Commit-Position: refs/heads/master@{#323778}
* [NaCl SDK] Don't overwrite components that already ship in the NaCl toolchainsbc2015-04-022-140/+5
| | | | | | | | | | | | | | | | | We are currently redundantly building and copying serveral libraries and headers that already ship in the NaCl toolchain tarballs. This change removes the copying. Once this lands we can reduce the redundant building by removing targets from the nacl_core_sdk gyp target. The dynamic_annotations.h header was removed from ARM and le32-nacl targets since it has no support for ARM or bitcode (i.e. we should never have been shipping the header for those toolchains). Review URL: https://codereview.chromium.org/1052563005 Cr-Commit-Position: refs/heads/master@{#323500}
* [NaCl SDK] nacl_io: Add ossignal.h to kernel_proxy.hsbc2015-04-021-0/+1
| | | | | | | | | | This was removed in erroneously in https://codereview.chromium.org/1051973003 R=binji Review URL: https://codereview.chromium.org/1057743002 Cr-Commit-Position: refs/heads/master@{#323391}