OLD | NEW |
1 {{+bindTo:partials.standard_nacl_article}} | 1 {{+bindTo:partials.standard_nacl_article}} |
2 | 2 |
3 <section id="native-client-manifest-nmf-format"> | 3 <section id="native-client-manifest-nmf-format"> |
4 <h1 id="native-client-manifest-nmf-format">Native Client Manifest (nmf) Format</
h1> | 4 <h1 id="native-client-manifest-nmf-format">Native Client Manifest (nmf) Format</
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><a class="reference internal" href="#field-summary" id="id2">Field summary</
a></li> | 8 <li><a class="reference internal" href="#field-summary" id="id2">Field summary</
a></li> |
9 <li><p class="first"><a class="reference internal" href="#field-details" id="id3
">Field details</a></p> | 9 <li><p class="first"><a class="reference internal" href="#field-details" id="id3
">Field details</a></p> |
10 <ul class="small-gap"> | 10 <ul class="small-gap"> |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 "main.nexe": { | 122 "main.nexe": { |
123 "x86-32": { "url": "url_to_x86_32_nexe" }, | 123 "x86-32": { "url": "url_to_x86_32_nexe" }, |
124 "x86-64": { "url": "url_to_x86_64_nexe" } | 124 "x86-64": { "url": "url_to_x86_64_nexe" } |
125 }, | 125 }, |
126 // ... | 126 // ... |
127 } | 127 } |
128 } | 128 } |
129 </pre> | 129 </pre> |
130 </section></section><section id="files"> | 130 </section></section><section id="files"> |
131 <h3 id="files">files</h3> | 131 <h3 id="files">files</h3> |
132 <p>The <code>files</code> field specifies a dictionary of file resources to be | 132 <p>The <code>files</code> field specifies a dictionary of file resources to be u
sed by a |
133 used by a Native Client application. This is not supported and | 133 Native Client application. This is not supported and not needed by Portable |
134 not needed by Portable Native Client applications (use the PPAPI | 134 Native Client applications (use the PPAPI <a class="reference external" href="/n
ative-client/pepper_stable/cpp/classpp_1_1_u_r_l_loader">URL Loader interfaces</
a> to load resources |
135 <a class="reference external" href="https://developers.google.com/native-client/
peppercpp/classpp_1_1_u_r_l_loader">URL Loader interfaces</a> | 135 instead). However, the <code>files</code> manifest field is important for dynami
cally |
136 to load resources instead). However, the <code>files</code> manifest field | 136 linked executables, which must load files before PPAPI is initialized. The |
137 is important for dynamically linked executables, which must | 137 <code>files</code> dictionary should include the main dynamic program and its dy
namic |
138 load files before PPAPI is initialized. The <code>files</code> dictionary | 138 libraries. There should be one file entry that corresponds to each a dynamic |
139 should include the main dynamic program and its dynamic libraries. | 139 library. Each file entry is a dictionary of supported architectures and the |
140 There should be one file entry that corresponds to each a | 140 URLs where the appropriate Native Client shared object (<code>.so</code>) for th
at |
141 dynamic library. Each file entry is a dictionary of supported architectures | 141 architecture may be found.</p> |
142 and the URLs where the appropriate Native Client shared object | |
143 (<code>.so</code>) for that architecture may be found.</p> | |
144 <p>Since <code>program</code> is used to refer to the dynamic linker that comes | 142 <p>Since <code>program</code> is used to refer to the dynamic linker that comes |
145 with the NaCl port of glibc, the main program is specified in the | 143 with the NaCl port of glibc, the main program is specified in the |
146 <code>files</code> dictionary. The main program is specified under the | 144 <code>files</code> dictionary. The main program is specified under the |
147 <code>"main.nexe"</code> field of the <code>files</code> dictionary.</
p> | 145 <code>"main.nexe"</code> field of the <code>files</code> dictionary.</
p> |
148 <pre class="prettyprint"> | 146 <pre class="prettyprint"> |
149 { | 147 { |
150 "program": { | 148 "program": { |
151 "x86-64": {"url": "lib64/runnable-ld.so"}, | 149 "x86-64": {"url": "lib64/runnable-ld.so"}, |
152 "x86-32": {"url": "lib32/runnable-ld.so"} | 150 "x86-32": {"url": "lib32/runnable-ld.so"} |
153 }, | 151 }, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 inline with a data URI can help reduce the amount of network traffic | 238 inline with a data URI can help reduce the amount of network traffic |
241 required to load the Native Client application.</p> | 239 required to load the Native Client application.</p> |
242 </section><section id="url-resolution"> | 240 </section><section id="url-resolution"> |
243 <span id="nmf-url-resolution"></span><h3 id="url-resolution"><span id="nmf-url-r
esolution"></span>URL resolution</h3> | 241 <span id="nmf-url-resolution"></span><h3 id="url-resolution"><span id="nmf-url-r
esolution"></span>URL resolution</h3> |
244 <p>All URLs contained in a manifest are resolved relative to the URL of | 242 <p>All URLs contained in a manifest are resolved relative to the URL of |
245 the manifest. If the manifest was specified as a data URI, the URLs must | 243 the manifest. If the manifest was specified as a data URI, the URLs must |
246 all be absolute.</p> | 244 all be absolute.</p> |
247 </section></section></section> | 245 </section></section></section> |
248 | 246 |
249 {{/partials.standard_nacl_article}} | 247 {{/partials.standard_nacl_article}} |
OLD | NEW |