OLD | NEW |
1 .. _sdk-examples-2: | 1 .. _sdk-examples-2: |
2 | 2 |
3 .. TODO: After default toolchain is changed to pnacl, recreate the make examples
. | 3 .. TODO: After default toolchain is changed to pnacl, recreate the make examples
. |
4 | 4 |
5 Examples | 5 Examples |
6 ======== | 6 ======== |
7 | 7 |
8 Every Native Client SDK bundle comes with a folder of example applications. | 8 Every Native Client SDK bundle comes with a folder of example applications. |
9 Each example demonstrates one or two key Native Client programming concepts. | 9 Each example demonstrates one or two key Native Client programming concepts. |
10 After you've :doc:`downloaded the SDK <download>`, follow the instructions | 10 After you've :doc:`downloaded the SDK <download>`, follow the instructions |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 ------------------------------------- | 206 ------------------------------------- |
207 | 207 |
208 Each example can also be launched as a packaged application. A packaged | 208 Each example can also be launched as a packaged application. A packaged |
209 application is a special zip file (with a .crx extension) hosted in the Chrome | 209 application is a special zip file (with a .crx extension) hosted in the Chrome |
210 Web Store. This file contains all of the application parts: A Chrome Web Store | 210 Web Store. This file contains all of the application parts: A Chrome Web Store |
211 manifest file (``manifest.json``), an icon, and all of the regular Native Client | 211 manifest file (``manifest.json``), an icon, and all of the regular Native Client |
212 application files. Refer to `What are Chrome Apps </apps/about_apps>`_ for more | 212 application files. Refer to `What are Chrome Apps </apps/about_apps>`_ for more |
213 information about creating a packaged application. | 213 information about creating a packaged application. |
214 | 214 |
215 Some Pepper features, such as `TCP | 215 Some Pepper features, such as `TCP |
216 <pepper_stable/cpp/classpp_1_1_u_d_p_socket>`_ or `UDP | 216 <pepper_stable/cpp/classpp_1_1_t_c_p_socket>`_ or `UDP |
217 <pepper_stable/cpp/classpp_1_1_u_d_p_socket>`_ socket access, are only allowed | 217 <pepper_stable/cpp/classpp_1_1_u_d_p_socket>`_ socket access, are only allowed |
218 in `packaged applications </apps/about_apps>`_. The examples that use these | 218 in `packaged applications </apps/about_apps>`_. The examples that use these |
219 features must be run as `packaged applications </apps/about_apps>`_, by using | 219 features must be run as `packaged applications </apps/about_apps>`_, by using |
220 the following command:: | 220 the following command:: |
221 | 221 |
222 $ make run_package | 222 $ make run_package |
223 | 223 |
224 You can use ``TOOLCHAIN`` and ``CONFIG`` parameters as described above to run | 224 You can use ``TOOLCHAIN`` and ``CONFIG`` parameters as described above to run |
225 with a different toolchain or configuration. | 225 with a different toolchain or configuration. |
226 | 226 |
(...skipping 23 matching lines...) Expand all Loading... |
250 | 250 |
251 At this point, you can use the standard GDB commands to debug your NaCl module. | 251 At this point, you can use the standard GDB commands to debug your NaCl module. |
252 The most common commands you will use to debug are ``continue``, ``step``, | 252 The most common commands you will use to debug are ``continue``, ``step``, |
253 ``next``, ``break`` and ``backtrace``. See | 253 ``next``, ``break`` and ``backtrace``. See |
254 :doc:`Debugging <../devguide/devcycle/debugging>` for more information about | 254 :doc:`Debugging <../devguide/devcycle/debugging>` for more information about |
255 debugging a Native Client application. | 255 debugging a Native Client application. |
256 | 256 |
257 | 257 |
258 .. |menu-icon| image:: /images/menu-icon.png | 258 .. |menu-icon| image:: /images/menu-icon.png |
259 .. |gear-icon| image:: /images/gear-icon.png | 259 .. |gear-icon| image:: /images/gear-icon.png |
OLD | NEW |