Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1091)

Issue 9234043: Support GLBIC example. (Closed)

Created:
8 years, 11 months ago by noelallen1
Modified:
8 years, 10 months ago
Reviewers:
Brad Chen
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Support GLBIC example in SDK 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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120117

Patch Set 1 #

Patch Set 2 : fix win/mac #

Patch Set 3 : misc #

Patch Set 4 : Workaround for libc++ & pthread_cancel #

Patch Set 5 : Fix dlopen make #

Patch Set 6 : re-enable the full build #

Total comments: 34

Patch Set 7 : '' #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+1042 lines, -37 lines) Patch
M native_client_sdk/src/build_tools/buildbot_run.py View 5 1 chunk +1 line, -1 line 0 comments Download
A native_client_sdk/src/examples/dlopen/Makefile View 1 2 3 4 5 6 1 chunk +209 lines, -0 lines 0 comments Download
A native_client_sdk/src/examples/dlopen/dlopen.cc View 1 2 3 4 5 6 1 chunk +169 lines, -0 lines 4 comments Download
A native_client_sdk/src/examples/dlopen/dlopen.html View 1 2 3 4 5 6 1 chunk +69 lines, -0 lines 0 comments Download
A native_client_sdk/src/examples/dlopen/eightball.h View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
A native_client_sdk/src/examples/dlopen/eightball.cc View 1 2 3 4 5 6 1 chunk +20 lines, -0 lines 2 comments Download
A native_client_sdk/src/examples/dlopen/make.bat View 1 1 chunk +1 line, -0 lines 0 comments Download
A native_client_sdk/src/examples/hello_world_glibc/Makefile View 1 2 3 4 5 6 1 chunk +200 lines, -0 lines 0 comments Download
A native_client_sdk/src/examples/hello_world_glibc/hello_world.cc View 1 1 chunk +135 lines, -0 lines 0 comments Download
A native_client_sdk/src/examples/hello_world_glibc/hello_world.html View 1 1 chunk +126 lines, -0 lines 0 comments Download
A native_client_sdk/src/examples/hello_world_glibc/helper_functions.h View 1 1 chunk +34 lines, -0 lines 0 comments Download
A native_client_sdk/src/examples/hello_world_glibc/helper_functions.cc View 1 1 chunk +22 lines, -0 lines 0 comments Download
A native_client_sdk/src/examples/hello_world_glibc/make.bat View 1 1 chunk +1 line, -0 lines 0 comments Download
M native_client_sdk/src/tools/create_nmf.py View 6 chunks +46 lines, -36 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Brad Chen
I'm sorry about being somewhat dogmatic about the style stuff, but I think it is ...
8 years, 11 months ago (2012-01-28 01:00:52 UTC) #1
noelallen1
The dlOpen example has pretty much been rewritten. https://chromiumcodereview.appspot.com/9234043/diff/11003/native_client_sdk/src/examples/dlopen/Makefile File native_client_sdk/src/examples/dlopen/Makefile (right): https://chromiumcodereview.appspot.com/9234043/diff/11003/native_client_sdk/src/examples/dlopen/Makefile#newcode1 native_client_sdk/src/examples/dlopen/Makefile:1: # ...
8 years, 10 months ago (2012-01-31 21:03:20 UTC) #2
Brad Chen
LGTM. Please deal with the nits below. This is much better than the last version. ...
8 years, 10 months ago (2012-01-31 22:29:54 UTC) #3
noelallen1
Thanks. http://codereview.chromium.org/9234043/diff/21001/native_client_sdk/src/examples/dlopen/dlopen.cc File native_client_sdk/src/examples/dlopen/dlopen.cc (right): http://codereview.chromium.org/9234043/diff/21001/native_client_sdk/src/examples/dlopen/dlopen.cc#newcode80 native_client_sdk/src/examples/dlopen/dlopen.cc:80: if(this->_dlhandle == NULL){ On 2012/01/31 22:29:54, Brad Chen ...
8 years, 10 months ago (2012-02-01 17:46:10 UTC) #4
Brad Chen
8 years, 10 months ago (2012-02-01 18:04:53 UTC) #5
Maybe ask Colt to check test this on the machines he works with.

Brad

On Wed, Feb 1, 2012 at 9:46 AM, <noelallen@chromium.org> wrote:

> Thanks.
>
>
>
> http://codereview.chromium.**org/9234043/diff/21001/native_**
>
client_sdk/src/examples/**dlopen/dlopen.cc<http://codereview.chromium.org/9234043/diff/21001/native_client_sdk/src/examples/dlopen/dlopen.cc>
> File native_client_sdk/src/**examples/dlopen/dlopen.cc (right):
>
> http://codereview.chromium.**org/9234043/diff/21001/native_**
>
client_sdk/src/examples/**dlopen/dlopen.cc#newcode80<http://codereview.chromium.org/9234043/diff/21001/native_client_sdk/src/examples/dlopen/dlopen.cc#newcode80>
> native_client_sdk/src/**examples/dlopen/dlopen.cc:80: if(this->_dlhandle
> == NULL){
> On 2012/01/31 22:29:54, Brad Chen wrote:
>
>> Google3 style prescribes a space after "if". Miss this one?
>>
>
> Done.
>
>
> http://codereview.chromium.**org/9234043/diff/21001/native_**
>
client_sdk/src/examples/**dlopen/dlopen.cc#newcode83<http://codereview.chromium.org/9234043/diff/21001/native_client_sdk/src/examples/dlopen/dlopen.cc#newcode83>
> native_client_sdk/src/**examples/dlopen/dlopen.cc:83: else {
> On 2012/01/31 22:29:54, Brad Chen wrote:
>
>> I don't particularly care for this formatting and I don't think it is
>>
> google3
>
>> either. You should use "} else {\n", that is, no newline before the
>>
> "else".
>
>> There are a few more of these below.
>>
>
> Done.
>
>
> http://codereview.chromium.**org/9234043/diff/21001/native_**
>
client_sdk/src/examples/**dlopen/eightball.cc<http://codereview.chromium.org/9234043/diff/21001/native_client_sdk/src/examples/dlopen/eightball.cc>
> File native_client_sdk/src/**examples/dlopen/eightball.cc (right):
>
> http://codereview.chromium.**org/9234043/diff/21001/native_**
>
client_sdk/src/examples/**dlopen/eightball.cc#newcode6<http://codereview.chromium.org/9234043/diff/21001/native_client_sdk/src/examples/dlopen/eightball.cc#newcode6>
> native_client_sdk/src/**examples/dlopen/eightball.cc:**6: const char
> *Magic8Ball(void) {
> Windows bots are passing, but we don't have all OS flavors represented.
> I'll keep an eye out.  However, I don't see how that's possible.  I can
> understand if newlib vs glibc fails since they are toolchains, but I
> would expect our GCC toolchain and sel_ldr/chrome built for Windows on
> machine N which is unknown, to work the same for any Windows platform X
> that down loads it.  Windows is not involved in either the link or load
> process.
>
>
> On 2012/01/31 22:29:54, Brad Chen wrote:
>
>> I'm so happy you dropped the __attribute__ stuff. That said, please be
>>
> sure we
>
>> aren't hitting the problem the old code was trying to fix. In
>>
> particular check
>
>> all flavors of Windows.
>>
>
>
http://codereview.chromium.**org/9234043/<http://codereview.chromium.org/9234...
>

Powered by Google App Engine
This is Rietveld 408576698