Skip to content

Commit

Permalink
Clarify wording of __ANDROID_API__ build documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed May 15, 2018
1 parent f934a0b commit df1ee11
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ Note in particular that if you are cross-compiling an x86 build on a 64-bit
version of Linux, then you need to have the proper gcc-multilibs and
g++-multilibs packages or equivalent installed.

On Android, you will need to define the `__ANDROID_API__` constant to at least
`21` on 64-bit and `18` on 32-bit.

If you generate a standalone NDK toolchain in order to compile your project,
the wrapper automatically passes flags to the actual compiler to define the
`__ANDROID_API__` macro. Otherwise, the macro `__ANDROID_API__` must be
defined with a value of at least 21 on 64-bit targets or 18 on 32-bit targets;
e.g. export `CFLAGS=-D__ANDROID_API__=21`.


Additional Features that are Useful for Development
Expand Down

0 comments on commit df1ee11

Please sign in to comment.