| OLD | NEW |
| 1 ################################### | 1 ################################### |
| 2 Native Client Manifest (nmf) Format | 2 Native Client Manifest (nmf) Format |
| 3 ################################### | 3 ################################### |
| 4 | 4 |
| 5 .. contents:: | 5 .. contents:: |
| 6 :local: | 6 :local: |
| 7 :backlinks: none | 7 :backlinks: none |
| 8 :depth: 2 | 8 :depth: 2 |
| 9 | 9 |
| 10 Overview | 10 Overview |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 "x86-64": { "url": "url_to_x86_64_nexe" } | 126 "x86-64": { "url": "url_to_x86_64_nexe" } |
| 127 }, | 127 }, |
| 128 // ... | 128 // ... |
| 129 } | 129 } |
| 130 } | 130 } |
| 131 | 131 |
| 132 | 132 |
| 133 files | 133 files |
| 134 ----- | 134 ----- |
| 135 | 135 |
| 136 The ``files`` field specifies a dictionary of file resources to be | 136 The ``files`` field specifies a dictionary of file resources to be used by a |
| 137 used by a Native Client application. This is not supported and | 137 Native Client application. This is not supported and not needed by Portable |
| 138 not needed by Portable Native Client applications (use the PPAPI | 138 Native Client applications (use the PPAPI `URL Loader interfaces |
| 139 `URL Loader interfaces | 139 </native-client/pepper_stable/cpp/classpp_1_1_u_r_l_loader>`_ to load resources |
| 140 <https://developers.google.com/native-client/peppercpp/classpp_1_1_u_r_l_loader>
`_ | 140 instead). However, the ``files`` manifest field is important for dynamically |
| 141 to load resources instead). However, the ``files`` manifest field | 141 linked executables, which must load files before PPAPI is initialized. The |
| 142 is important for dynamically linked executables, which must | 142 ``files`` dictionary should include the main dynamic program and its dynamic |
| 143 load files before PPAPI is initialized. The ``files`` dictionary | 143 libraries. There should be one file entry that corresponds to each a dynamic |
| 144 should include the main dynamic program and its dynamic libraries. | 144 library. Each file entry is a dictionary of supported architectures and the |
| 145 There should be one file entry that corresponds to each a | 145 URLs where the appropriate Native Client shared object (``.so``) for that |
| 146 dynamic library. Each file entry is a dictionary of supported architectures | 146 architecture may be found. |
| 147 and the URLs where the appropriate Native Client shared object | |
| 148 (``.so``) for that architecture may be found. | |
| 149 | 147 |
| 150 Since ``program`` is used to refer to the dynamic linker that comes | 148 Since ``program`` is used to refer to the dynamic linker that comes |
| 151 with the NaCl port of glibc, the main program is specified in the | 149 with the NaCl port of glibc, the main program is specified in the |
| 152 ``files`` dictionary. The main program is specified under the | 150 ``files`` dictionary. The main program is specified under the |
| 153 ``"main.nexe"`` field of the ``files`` dictionary. | 151 ``"main.nexe"`` field of the ``files`` dictionary. |
| 154 | 152 |
| 155 | 153 |
| 156 .. naclcode:: | 154 .. naclcode:: |
| 157 | 155 |
| 158 { | 156 { |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 required to load the Native Client application. | 262 required to load the Native Client application. |
| 265 | 263 |
| 266 .. _nmf_url_resolution: | 264 .. _nmf_url_resolution: |
| 267 | 265 |
| 268 URL resolution | 266 URL resolution |
| 269 -------------- | 267 -------------- |
| 270 | 268 |
| 271 All URLs contained in a manifest are resolved relative to the URL of | 269 All URLs contained in a manifest are resolved relative to the URL of |
| 272 the manifest. If the manifest was specified as a data URI, the URLs must | 270 the manifest. If the manifest was specified as a data URI, the URLs must |
| 273 all be absolute. | 271 all be absolute. |
| OLD | NEW |