• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:workdir

4 # $ sudo docker build -t nghttp2-android - < Dockerfile.android
11 # $ sudo docker run -v /path/to/dest:/out nghttp2-android cp /root/build/nghttp2/src/nghttpx /out
14 # Only use standalone-toolchain for reduce size
23 WORKDIR /root
24 RUN apt-get update && \
25 apt-get install -y unzip make binutils autoconf \
26 automake autotools-dev libtool pkg-config git \
27 curl dpkg-dev libxml2-dev genisoimage libc6-i386 \
29 rm -rf /var/cache/apk/*
32 RUN curl -L -O https://dl.google.com/android/repository/android-ndk-$NDK_VERSION-linux-x86_64.zip &…
33 unzip -q android-ndk-$NDK_VERSION-linux-x86_64.zip && \
34 rm android-ndk-$NDK_VERSION-linux-x86_64.zip && \
35 mkdir -p $ANDROID_HOME/toolchain && \
36 $ANDROID_HOME/android-ndk-$NDK_VERSION/build/tools/make-standalone-toolchain.sh \
37 --install-dir=$ANDROID_HOME/toolchain \
38 --toolchain=arm-linux-androideabi-4.9 \
39 --force && \
40 rm -r android-ndk-$NDK_VERSION
52 WORKDIR /root/build
53 RUN git clone https://github.com/tatsuhiro-t/spdylay -b $SPDYLAY_VERSION --depth 1
54 WORKDIR /root/build/spdylay
55 RUN autoreconf -i && \
57 --disable-shared \
58 --host=arm-linux-androideabi \
59 --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
60 --prefix=$PREFIX \
61 --without-libxml2 \
62 --disable-src \
63 --disable-examples \
64 CPPFLAGS="-I$PREFIX/include" \
66 LDFLAGS="-L$PREFIX/lib" && \
69 WORKDIR /root/build
70 RUN curl -L -O https://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz && \
71 tar xf openssl-$OPENSSL_VERSION.tar.gz && \
72 rm openssl-$OPENSSL_VERSION.tar.gz
74 WORKDIR /root/build/openssl-$OPENSSL_VERSION
75 RUN export CROSS_COMPILE=$TOOLCHAIN/bin/arm-linux-androideabi- && \
76 ./Configure --prefix=$PREFIX android && \
79 WORKDIR /root/build
80 RUN curl -L -O http://dist.schmorp.de/libev/Attic/libev-$LIBEV_VERSION.tar.gz && \
81 …curl -L -O https://gist.github.com/tatsuhiro-t/48c45f08950f587180ed/raw/80a8f003b5d1091eae497c5995…
82 tar xf libev-$LIBEV_VERSION.tar.gz && \
83 rm libev-$LIBEV_VERSION.tar.gz
85 WORKDIR /root/build/libev-$LIBEV_VERSION
86 RUN patch -p1 < ../libev-4.19-android.patch && \
88 --host=arm-linux-androideabi \
89 --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
90 --prefix=$PREFIX \
91 --disable-shared \
92 --enable-static \
93 CPPFLAGS=-I$PREFIX/include \
94 LDFLAGS=-L$PREFIX/lib && \
97 WORKDIR /root/build
98 RUN curl -L -O https://downloads.sourceforge.net/project/libpng/zlib/$ZLIB_VERSION/zlib-$ZLIB_VERSI…
99 tar xf zlib-$ZLIB_VERSION.tar.gz && \
100 rm zlib-$ZLIB_VERSION.tar.gz
102 WORKDIR /root/build/zlib-$ZLIB_VERSION
103 RUN HOST=arm-linux-androideabi \
104 CC=$HOST-gcc \
105 AR=$HOST-ar \
106 LD=$HOST-ld \
107 RANLIB=$HOST-ranlib \
108 STRIP=$HOST-strip \
110 --prefix=$PREFIX \
111 --libdir=$PREFIX/lib \
112 --includedir=$PREFIX/include \
113 --static && \
117 WORKDIR /root/build
118 RUN curl -L -O https://c-ares.haxx.se/download/c-ares-$CARES_VERSION.tar.gz && \
119 tar xf c-ares-$CARES_VERSION.tar.gz && \
120 rm c-ares-$CARES_VERSION.tar.gz
122 WORKDIR /root/build/c-ares-$CARES_VERSION
124 --host=arm-linux-androideabi \
125 --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
126 --prefix=$PREFIX \
127 --disable-shared && \
130 WORKDIR /root/build
131 RUN git clone https://github.com/nghttp2/nghttp2 -b $NGHTTP2_VERSION --depth 1
132 WORKDIR /root/build/nghttp2
133 RUN autoreconf -i && \
135 --enable-app \
136 --disable-shared \
137 --host=arm-linux-androideabi \
138 --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
139 --with-xml-prefix="$PREFIX" \
140 --without-libxml2 \
141 --disable-python-bindings \
142 --disable-examples \
143 --disable-threads \
144 CC="$TOOLCHAIN"/bin/arm-linux-androideabi-clang \
145 CXX="$TOOLCHAIN"/bin/arm-linux-androideabi-clang++ \
146 CPPFLAGS="-fPIE -I$PREFIX/include" \
148 LDFLAGS="-fPIE -pie -L$PREFIX/lib" && \
150 arm-linux-androideabi-strip src/nghttpx src/nghttpd src/nghttp