| OLD | NEW |
| 1 .. _sdk-examples-2: | 1 .. _sdk-examples-2: |
| 2 | 2 |
| 3 Running the SDK Examples | 3 Running the SDK Examples |
| 4 ======================== | 4 ======================== |
| 5 | 5 |
| 6 Every Native Client SDK bundle comes with a folder of example applications. | 6 Every Native Client SDK bundle comes with a folder of example applications. |
| 7 Each example demonstrates one or two key Native Client programming concepts. | 7 Each example demonstrates one or two key Native Client programming concepts. |
| 8 After you've :doc:`downloaded the SDK <download>`, follow the instructions | 8 After you've :doc:`downloaded the SDK <download>`, follow the instructions |
| 9 on this page to build and run the examples. | 9 on this page to build and run the examples. |
| 10 | 10 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 .nexe files, for ease of debugging. All Debug and Release directories contain | 152 .nexe files, for ease of debugging. All Debug and Release directories contain |
| 153 a manifest (.nmf) file that references the associated .nexe or .pexe files. | 153 a manifest (.nmf) file that references the associated .nexe or .pexe files. |
| 154 For information about Native Client manifest files, see the :doc:`Technical | 154 For information about Native Client manifest files, see the :doc:`Technical |
| 155 Overview <../overview>`. | 155 Overview <../overview>`. |
| 156 | 156 |
| 157 For details on how to use ``make``, see the `GNU 'make' Manual | 157 For details on how to use ``make``, see the `GNU 'make' Manual |
| 158 <http://www.gnu.org/software/make/manual/make.html>`_. For details on how to | 158 <http://www.gnu.org/software/make/manual/make.html>`_. For details on how to |
| 159 use the SDK toolchain itself, see :doc:`Building Native Client Modules | 159 use the SDK toolchain itself, see :doc:`Building Native Client Modules |
| 160 <../devguide/devcycle/building>`. | 160 <../devguide/devcycle/building>`. |
| 161 | 161 |
| 162 .. _run_sdk_examples: |
| 163 |
| 162 Run the SDK examples | 164 Run the SDK examples |
| 163 -------------------- | 165 -------------------- |
| 164 | 166 |
| 165 To run the SDK examples, you can use the ``make run`` command:: | 167 To run the SDK examples, you can use the ``make run`` command:: |
| 166 | 168 |
| 167 $ cd pepper_31/examples/api/core | 169 $ cd pepper_31/examples/api/core |
| 168 $ make run | 170 $ make run |
| 169 | 171 |
| 170 This will launch a local HTTP server which will serve the data for the | 172 This will launch a local HTTP server which will serve the data for the |
| 171 example. It then launches Chrome with the address of this server, usually | 173 example. It then launches Chrome with the address of this server, usually |
| (...skipping 23 matching lines...) Expand all Loading... |
| 195 $ export CHROME_PATH=<Path to chrome> | 197 $ export CHROME_PATH=<Path to chrome> |
| 196 | 198 |
| 197 .. **TODO(binji):** use default Chrome paths here, especially | 199 .. **TODO(binji):** use default Chrome paths here, especially |
| 198 .. important for Mac: | 200 .. important for Mac: |
| 199 | 201 |
| 200 You can run via a different toolchain or configuration by using the | 202 You can run via a different toolchain or configuration by using the |
| 201 ``TOOLCHAIN`` and ``CONFIG`` parameters to make:: | 203 ``TOOLCHAIN`` and ``CONFIG`` parameters to make:: |
| 202 | 204 |
| 203 $ make run TOOLCHAIN=pnacl CONFIG=Debug | 205 $ make run TOOLCHAIN=pnacl CONFIG=Debug |
| 204 | 206 |
| 207 .. _run_sdk_examples_as_packaged: |
| 205 | 208 |
| 206 Run the SDK examples as packaged apps | 209 Run the SDK examples as packaged apps |
| 207 ------------------------------------- | 210 ------------------------------------- |
| 208 | 211 |
| 209 Each example can also be launched as a packaged app. For more information about | 212 Each example can also be launched as a packaged app. For more information about |
| 210 using Native Client for packaged apps, see :ref:`Packaged appliction | 213 using Native Client for packaged apps, see :ref:`Packaged appliction |
| 211 <distributing_packaged>`. For general information about packaged apps, see the | 214 <distributing_packaged>`. For general information about packaged apps, see the |
| 212 `Chrome apps documentation | 215 `Chrome apps documentation |
| 213 <http://developer.chrome.com/apps/about_apps.html>`_. | 216 <http://developer.chrome.com/apps/about_apps.html>`_. |
| 214 | 217 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 252 |
| 250 At this point, you can use the standard GDB commands to debug your NaCl module. | 253 At this point, you can use the standard GDB commands to debug your NaCl module. |
| 251 The most common commands you will use to debug are ``continue``, ``step``, | 254 The most common commands you will use to debug are ``continue``, ``step``, |
| 252 ``next``, ``break`` and ``backtrace``. See :doc:`Debugging | 255 ``next``, ``break`` and ``backtrace``. See :doc:`Debugging |
| 253 <../devguide/devcycle/debugging>` for more information about debugging a Native
Client | 256 <../devguide/devcycle/debugging>` for more information about debugging a Native
Client |
| 254 application. | 257 application. |
| 255 | 258 |
| 256 | 259 |
| 257 .. |menu-icon| image:: /images/menu-icon.png | 260 .. |menu-icon| image:: /images/menu-icon.png |
| 258 .. |gear-icon| image:: /images/gear-icon.png | 261 .. |gear-icon| image:: /images/gear-icon.png |
| OLD | NEW |