OLD | NEW |
1 {{+bindTo:partials.standard_nacl_article}} | 1 {{+bindTo:partials.standard_nacl_article}} |
2 | 2 |
3 <section id="c-tutorial-getting-started-part-2"> | 3 <section id="c-tutorial-getting-started-part-2"> |
4 <span id="tutorial2"></span><h1 id="c-tutorial-getting-started-part-2"><span id=
"tutorial2"></span>C++ Tutorial: Getting Started (Part 2)</h1> | 4 <span id="tutorial2"></span><h1 id="c-tutorial-getting-started-part-2"><span id=
"tutorial2"></span>C++ Tutorial: Getting Started (Part 2)</h1> |
5 <div class="contents local" id="contents" style="display: none"> | 5 <div class="contents local" id="contents" style="display: none"> |
6 <ul class="small-gap"> | 6 <ul class="small-gap"> |
7 <li><a class="reference internal" href="#overview" id="id1">Overview</a></li> | 7 <li><a class="reference internal" href="#overview" id="id1">Overview</a></li> |
8 <li><p class="first"><a class="reference internal" href="#using-the-native-clien
t-sdk-build-system" id="id2">Using the Native Client SDK build system</a></p> | 8 <li><p class="first"><a class="reference internal" href="#using-the-native-clien
t-sdk-build-system" id="id2">Using the Native Client SDK build system</a></p> |
9 <ul class="small-gap"> | 9 <ul class="small-gap"> |
10 <li><a class="reference internal" href="#simplifying-the-makefile" id="id3">Simp
lifying the Makefile</a></li> | 10 <li><a class="reference internal" href="#simplifying-the-makefile" id="id3">Simp
lifying the Makefile</a></li> |
(...skipping 19 matching lines...) Expand all Loading... |
30 </ul> | 30 </ul> |
31 | 31 |
32 </div><h2 id="overview">Overview</h2> | 32 </div><h2 id="overview">Overview</h2> |
33 <p>This tutorial shows how to convert the finished PNaCl web application from | 33 <p>This tutorial shows how to convert the finished PNaCl web application from |
34 <a class="reference internal" href="/native-client/devguide/tutorial/tutorial-pa
rt1.html"><em>Part 1</em></a> to use the Native Client SDK build system and | 34 <a class="reference internal" href="/native-client/devguide/tutorial/tutorial-pa
rt1.html"><em>Part 1</em></a> to use the Native Client SDK build system and |
35 common JavaScript files. It also demonstrates some techniques to make your web | 35 common JavaScript files. It also demonstrates some techniques to make your web |
36 application <a class="reference external" href="/apps/contentSecurityPolicy">Con
tent Security Policy (CSP)-compliant</a>, which is necessary for <a class="refer
ence external" href="/apps/about_apps">Chrome Apps</a>.</p> | 36 application <a class="reference external" href="/apps/contentSecurityPolicy">Con
tent Security Policy (CSP)-compliant</a>, which is necessary for <a class="refer
ence external" href="/apps/about_apps">Chrome Apps</a>.</p> |
37 <p>Using the Native Client SDK build system makes it easy to build with all of t
he | 37 <p>Using the Native Client SDK build system makes it easy to build with all of t
he |
38 SDK toolchains, and switch between the Debug and Release configurations. It | 38 SDK toolchains, and switch between the Debug and Release configurations. It |
39 also simplifies the makefiles for your project, as we’ll see in the next | 39 also simplifies the makefiles for your project, as we’ll see in the next |
40 section. Finally, it adds some useful commands for <a class="reference internal"
href="/native-client/sdk/examples.html#id1"><em>running</em></a> and <a class="
reference internal" href="/native-client/sdk/examples.html#debugging-the-sdk-exa
mples"><em>debugging</em></a> | 40 section. Finally, it adds some useful commands for <a class="reference internal"
href="/native-client/sdk/examples.html#running-the-sdk-examples"><em>running</e
m></a> and <a class="reference internal" href="/native-client/sdk/examples.html#
debugging-the-sdk-examples"><em>debugging</em></a> |
41 your application.</p> | 41 your application.</p> |
42 <p>The finished code for this example can be found in the | 42 <p>The finished code for this example can be found in the |
43 <code>pepper_$(VERSION)/getting_started/part2</code> directory in the Native Cli
ent SDK | 43 <code>pepper_$(VERSION)/getting_started/part2</code> directory in the Native Cli
ent SDK |
44 download.</p> | 44 download.</p> |
45 <h2 id="using-the-native-client-sdk-build-system">Using the Native Client SDK bu
ild system</h2> | 45 <h2 id="using-the-native-client-sdk-build-system">Using the Native Client SDK bu
ild system</h2> |
46 <p>This section describes how to use the SDK build system. To do so, we’ll
make | 46 <p>This section describes how to use the SDK build system. To do so, we’ll
make |
47 changes in the makefile. Because the makefile in part1 and part2 are so | 47 changes in the makefile. Because the makefile in part1 and part2 are so |
48 different, it is easier to start from scratch. Here is the contents of the new | 48 different, it is easier to start from scratch. Here is the contents of the new |
49 makefile. The following sections will describe it in more detail.</p> | 49 makefile. The following sections will describe it in more detail.</p> |
50 <h3 id="simplifying-the-makefile">Simplifying the Makefile</h3> | 50 <h3 id="simplifying-the-makefile">Simplifying the Makefile</h3> |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 </li> | 434 </li> |
435 <li><p class="first">Re-run the application by reloading <code>http://localhost:
5103/part2</code> in | 435 <li><p class="first">Re-run the application by reloading <code>http://localhost:
5103/part2</code> in |
436 Chrome.</p> | 436 Chrome.</p> |
437 <p>After Chrome loads the Native Client module, you should see the message sent | 437 <p>After Chrome loads the Native Client module, you should see the message sent |
438 from the module.</p> | 438 from the module.</p> |
439 </li> | 439 </li> |
440 </ol> | 440 </ol> |
441 </section> | 441 </section> |
442 | 442 |
443 {{/partials.standard_nacl_article}} | 443 {{/partials.standard_nacl_article}} |
OLD | NEW |