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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 $ make run TOOLCHAIN=pnacl CONFIG=Debug | 212 $ make run TOOLCHAIN=pnacl CONFIG=Debug |
213 | 213 |
214 .. _run_sdk_examples_as_packaged: | 214 .. _run_sdk_examples_as_packaged: |
215 | 215 |
216 Run the SDK examples as packaged apps | 216 Run the SDK examples as packaged apps |
217 ------------------------------------- | 217 ------------------------------------- |
218 | 218 |
219 Each example can also be launched as a packaged app. For more information about | 219 Each example can also be launched as a packaged app. For more information about |
220 using Native Client for packaged apps, see :ref:`Packaged appliction | 220 using Native Client for packaged apps, see :ref:`Packaged appliction |
221 <distributing_packaged>`. For general information about packaged apps, see the | 221 <distributing_packaged>`. For general information about packaged apps, see the |
222 `Chrome apps documentation | 222 `Chrome apps documentation </apps/about_apps>`_. |
223 <http://developer.chrome.com/apps/about_apps.html>`_. | |
224 | 223 |
225 Some Pepper features, such as TCP/UDP socket access, are only allowed in | 224 Some Pepper features, such as TCP/UDP socket access, are only allowed in |
226 packaged apps. The examples that use these features must be run as packaged | 225 packaged apps. The examples that use these features must be run as packaged |
227 apps, by using the ``make run_package`` command:: | 226 apps, by using the ``make run_package`` command:: |
228 | 227 |
229 $ make run_package | 228 $ make run_package |
230 | 229 |
231 You can use ``TOOLCHAIN`` and ``CONFIG`` parameters as above to run with a | 230 You can use ``TOOLCHAIN`` and ``CONFIG`` parameters as above to run with a |
232 different toolchain or configuration. | 231 different toolchain or configuration. |
233 | 232 |
(...skipping 25 matching lines...) Expand all Loading... |
259 | 258 |
260 At this point, you can use the standard GDB commands to debug your NaCl module. | 259 At this point, you can use the standard GDB commands to debug your NaCl module. |
261 The most common commands you will use to debug are ``continue``, ``step``, | 260 The most common commands you will use to debug are ``continue``, ``step``, |
262 ``next``, ``break`` and ``backtrace``. See :doc:`Debugging | 261 ``next``, ``break`` and ``backtrace``. See :doc:`Debugging |
263 <../devguide/devcycle/debugging>` for more information about debugging a Native
Client | 262 <../devguide/devcycle/debugging>` for more information about debugging a Native
Client |
264 application. | 263 application. |
265 | 264 |
266 | 265 |
267 .. |menu-icon| image:: /images/menu-icon.png | 266 .. |menu-icon| image:: /images/menu-icon.png |
268 .. |gear-icon| image:: /images/gear-icon.png | 267 .. |gear-icon| image:: /images/gear-icon.png |
OLD | NEW |