Lines Matching +full:debian +full:- +full:android
1 Building Android binary
4 In this article, we briefly describe how to build Android binary using
5 `Android NDK <https://developer.android.com/ndk>`_ cross-compiler on
6 Debian Linux.
8 The easiest way to build android binary is use Dockerfile.android.
9 See Dockerfile.android for more details. If you cannot use
10 Dockerfile.android for whatever reason, continue to read the rest of
13 We offer ``android-config`` script to make the build easier. To make
17 .. code-block:: text
19 $ unzip android-ndk-$NDK_VERSION-linux.zip
20 $ cd android-ndk-$NDK_VERSION
23 The dependent libraries, such as OpenSSL, libev, and c-ares should be
29 Although zlib comes with Android NDK, it seems not to be a part of
33 Before running ``android-config``, ``NDK`` environment variable must
41 .. code-block:: sh
45 . $NGHTTP2/android-env
50 ./Configure no-shared --prefix=$PREFIX android-arm64
55 .. code-block:: sh
59 . $NGHTTP2/android-env
67 .. code-block:: sh
71 . $NGHTTP2/android-env
74 --host=$TARGET \
75 --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
76 --prefix=$PREFIX \
77 --disable-shared \
78 --enable-static \
79 CPPFLAGS=-I$PREFIX/include \
80 LDFLAGS=-L$PREFIX/lib
84 To configure c-ares, use the following script:
86 .. code-block:: sh
88 #!/bin/sh -e
90 . $NGHTTP2/android-env
93 --host=$TARGET \
94 --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
95 --prefix=$PREFIX \
96 --disable-shared
102 .. code-block:: sh
104 #!/bin/sh -e
106 . $NGHTTP2/android-env
111 --prefix=$PREFIX \
112 --libdir=$PREFIX/lib \
113 --includedir=$PREFIX/include \
114 --static
118 After prerequisite libraries are prepared, run ``android-config`` and
125 .. code-block:: text
127 $ $NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip src/nghttpx