Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10a36020 authored by Robert Ly's avatar Robert Ly
Browse files

cherrypick from hc-mr1 Change-Id: Ib0d980c95d821ba24e342f230b4a47fd786ba66a

Change-Id: I4cb22b628978c86b5c07ff80b2fe8547e25015a1
parent d3fa7bd1
Loading
Loading
Loading
Loading
+61 −9
Original line number Diff line number Diff line
ndk=true

ndk.win_download=android-ndk-r5c-windows.zip
ndk.win_bytes=61627716
ndk.win_checksum=2c7423842fa0f46871eab118495d4b45
ndk.win_download=android-ndk-r6-windows.zip
ndk.win_bytes=67642809
ndk.win_checksum=9c7d5ccc02151a3e5e950c70dc05ac6d

ndk.mac_download=android-ndk-r5c-darwin-x86.tar.bz2
ndk.mac_bytes=50714712
ndk.mac_checksum=183bfbbd85cf8e4c0bd7531e8803e75d
ndk.mac_download=android-ndk-r6-darwin-x86.tar.bz2
ndk.mac_bytes=52682746
ndk.mac_checksum=a154905e49a6246abd823b75b6eda738

ndk.linux_download=android-ndk-r5c-linux-x86.tar.bz2
ndk.linux_bytes=44539890
ndk.linux_checksum=7659dfdc97026ed1d913e224d0531f61
ndk.linux_download=android-ndk-r6-linux-x86.tar.bz2
ndk.linux_bytes=46425290
ndk.linux_checksum=ff0a43085fe206696d5cdcef3f4f4637

page.title=Android NDK
@jd:body
@@ -62,6 +62,58 @@ padding: .25em 1em;
<div class="toggleable open">
  <a href="#" onclick="return toggleDiv(this)"><img src=
  "{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px" width="9px">
  Android NDK, Revision 6</a> <em>(July 2011)</em>

   <div class="toggleme">
      <p>This release of the NDK includes support for the x86 ABI and other minor changes.
      For detailed information describing the changes in this release, read the
      <code>CHANGES.HTML</code> document included in the NDK package.
      </p>
      <dl>
        <dt>General notes:</dt>
        <dd>
          <ul>
            <li>Adds support for the x86 ABI, which allows you to generate machine code
            that runs on compatible x86-based Android devices. Major features for x86
            include x86-specific toolchains, system headers, libraries and
            debugging support. For all of the details regarding x86 support,
            see <code>docs/CPU-X86.html</code> in the NDK package.

              <p>By default, code is generated for ARM-based devices, but you can add x86 to your
              <code>APP_ABI</code> definition in your <code>Application.mk</code> file to build
              for x86 platforms. For example, the following line instructs <code>ndk-build</code>
              to build your code for three distinct ABIs:</p>

              <pre>APP_ABI := armeabi armeabi-v7a x86</pre>

              <p>Unless you rely on ARM-based assembly sources, you shouldn't need to touch
              your <code>Android.mk</code> files to build x86 machine code.</p>

            </li>

            <li>You can build a standalone x86 toolchain using the <code>--toolchain=x86-4.4.3</code>
            option when calling <code>make-standalone-toolchain.sh</code>. See
            <code>docs/STANDALONE-TOOLCHAIN.html</code> for more details.
            </li>
            <li>The new <code>ndk-stack</code> tool lets you translate stack traces in
            <code>logcat</code> that are generated by native code. The tool translates
            instruction addresses into a readable format that contains things such
            as the function, source file, and line number corresponding to each stack frame.
            For more information and a usage example, see <code>docs/NDK-STACK.html</code>.
            </li>
          </ul>
        </dd>
        <dt>Other changes:</dt>
        <dd><code>arm-eabi-4.4.0</code>, which had been deprecated since NDK r5, has been
        removed from the NDK distribution.</dd>

      </dl>
    </div>
  </div>

<div class="toggleable closed">
  <a href="#" onclick="return toggleDiv(this)"><img src=
  "{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px">
  Android NDK, Revision 5c</a> <em>(June 2011)</em>

  <div class="toggleme">
+0 −4
Original line number Diff line number Diff line
@@ -53,11 +53,7 @@ page.title=What is the NDK?

    <li>ARMv7-A (including Thumb-2 and VFPv3-D16 instructions, with optional support for
    NEON/VFPv3-D32 instructions)</li>
  </ul>

  <p>Future releases of the NDK will also support:</p>

  <ul>
    <li>x86 instructions (see CPU-ARCH-ABIS.HTML for more information)</li>
  </ul>

+1 −1
Original line number Diff line number Diff line
@@ -175,7 +175,7 @@ class="new">new!</span></li>
      <span style="display:none" class="zh-TW"></span>
    </h2>
    <ul>
      <li><a href="<?cs var:toroot ?>sdk/ndk/index.html">Android NDK, r5c <span
      <li><a href="<?cs var:toroot ?>sdk/ndk/index.html">Android NDK, r6 <span
       class="new">new!</span></a>
        </li>
      <li><a href="<?cs var:toroot ?>sdk/ndk/overview.html">What is the NDK?</a></li>