| 
									
										
										
										
											2018-12-22 09:19:09 -08:00
										 |  |  | From ubuntu:18.04 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | RUN apt-get update  && \ | 
					
						
							|  |  |  |     apt-get upgrade -y && \ | 
					
						
							|  |  |  |     apt-get install -y \ | 
					
						
							|  |  |  |     autoconf \ | 
					
						
							|  |  |  |     automake \ | 
					
						
							|  |  |  |     git \ | 
					
						
							|  |  |  |     libtool-bin \ | 
					
						
							|  |  |  |     make \ | 
					
						
							|  |  |  |     wget \ | 
					
						
							|  |  |  |     unzip \ | 
					
						
							|  |  |  |     python \ | 
					
						
							|  |  |  |     bzip2 \ | 
					
						
							|  |  |  |     pkg-config \ | 
					
						
							|  |  |  |     libx11-xcb1 \ | 
					
						
							|  |  |  |     libgl1-mesa-glx \ | 
					
						
							|  |  |  |     libglib2.0-0 \ | 
					
						
							| 
									
										
										
										
											2020-04-23 08:23:19 -07:00
										 |  |  |     openjdk-8-jdk \ | 
					
						
							|  |  |  |     curl \ | 
					
						
							|  |  |  |     p7zip-full | 
					
						
							| 
									
										
										
										
											2018-12-22 09:19:09 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-24 09:14:28 -08:00
										 |  |  | # create our working directory and place the local copies of the Qt | 
					
						
							|  |  |  | # install, NDK and SDK there, plus the three files from the Subsurface | 
					
						
							|  |  |  | # sources that we need to get the prep routines to run | 
					
						
							| 
									
										
										
										
											2018-12-22 09:19:09 -08:00
										 |  |  | RUN mkdir -p /android | 
					
						
							| 
									
										
										
										
											2018-12-23 15:22:02 -08:00
										 |  |  | ADD android-ndk-r*-linux-x86_64.zip /android/ | 
					
						
							| 
									
										
										
										
											2018-12-24 09:14:28 -08:00
										 |  |  | ADD sdk-tools-linux-*.zip /android/ | 
					
						
							| 
									
										
										
										
											2020-04-23 08:23:19 -07:00
										 |  |  | ADD install-qt.sh android-build-wrapper.sh variables.sh /android/ | 
					
						
							| 
									
										
										
										
											2018-12-22 09:19:09 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-29 16:21:58 -08:00
										 |  |  | # install current cmake | 
					
						
							|  |  |  | ADD cmake-3.13.2.tar.gz /android/ | 
					
						
							|  |  |  | RUN cd /android/cmake-3.13.2 && \ | 
					
						
							|  |  |  |     bash ./bootstrap && \ | 
					
						
							|  |  |  |     make -j6 && make install | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-24 09:14:28 -08:00
										 |  |  | # run the build wrapper in prep mode | 
					
						
							|  |  |  | RUN cd /android && bash -x /android/android-build-wrapper.sh -prep-only | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # clean up the files that we don't need to keep the container smaller | 
					
						
							|  |  |  | RUN cd /android && \ | 
					
						
							| 
									
										
										
										
											2020-04-23 08:23:19 -07:00
										 |  |  |     apt-get remove -y gcc g++-7 libstdc++-7-dev && \ | 
					
						
							|  |  |  |     rm -rf \ | 
					
						
							|  |  |  | 	   Qt/5*/android_arm*/lib/*x86* \ | 
					
						
							|  |  |  | 	   Qt/5*/android_arm*/doc \ | 
					
						
							|  |  |  | 	   Qt/5*/android_arm*/include/QtHelp \ | 
					
						
							|  |  |  | 	   Qt/5*/android_arm*/include/QtFbSupport \ | 
					
						
							|  |  |  | 	   Qt/5*/android_arm*/include/QtFontDatabaseSupport \ | 
					
						
							|  |  |  | 	   Qt/5*/android_arm*/include/QtNfc \ | 
					
						
							|  |  |  | 	   Qt/5*/android_arm*/include/QtPrintSupport \ | 
					
						
							|  |  |  | 	   Qt/5*/android_arm*/include/QtTest \ | 
					
						
							|  |  |  | 	   Qt/5*/android_arm*/include/QtXml \ | 
					
						
							|  |  |  | 	   Qt/5*/android_arm*/plugins/geoservices/libqtgeoservices_mapboxgl.so \ | 
					
						
							|  |  |  | 	   sdk-tools-linux-*.zip \ | 
					
						
							| 
									
										
										
										
											2018-12-24 09:14:28 -08:00
										 |  |  | 	   android-ndk-r*-linux-x86_64.zip \ | 
					
						
							| 
									
										
										
										
											2020-04-23 08:23:19 -07:00
										 |  |  | 	   $( find android-ndk*/platforms -name arch-mips -o -name arch-x86 ) \ | 
					
						
							|  |  |  | 	   android-ndk-r[0-9a-z]*/toolchains/x86-* android-ndk*/toolchains/llvm/prebuilt/x86-* \ | 
					
						
							|  |  |  | 	   android-ndk-r[0-9a-z]*/platforms/android-[12][2345678] \ | 
					
						
							|  |  |  | 	   android-ndk-r[0-9a-z]*/platforms/android-21/arch-x86_64 \ | 
					
						
							|  |  |  | 	   android-ndk-r[0-9a-z]*/prebuilt/linux-x86_64 \ | 
					
						
							|  |  |  | 	   android-ndk-r[0-9a-z]*/simpleperf \ | 
					
						
							|  |  |  | 	   android-ndk-r[0-9a-z]*/sources/cxx-stl/llvm-libc++/libs/x* \ | 
					
						
							|  |  |  | 	   android-ndk-r[0-9a-z]*/sources/cxx-stl/llvm-libc++/libs/*/*static* \ | 
					
						
							|  |  |  | 	   android-ndk-r[0-9a-z]*/sources/cxx-stl/llvm-libc++/test \ | 
					
						
							|  |  |  | 	   android-ndk-r[0-9a-z]*/sources/cxx-stl/llvm-libc++/utils \ | 
					
						
							|  |  |  | 	   android-ndk-r[0-9a-z]*/sources/cxx-stl/llvmlibc++abi \ | 
					
						
							|  |  |  | 	   android-ndk-r[0-9a-z]*/sources/cxx-stl/system \ | 
					
						
							|  |  |  | 	   android-ndk-r[0-9a-z]*/sources/third_party \ | 
					
						
							|  |  |  | 	   android-ndk-r[0-9a-z]*/sysroot/usr/lib \ | 
					
						
							|  |  |  | 	   android-sdk-linux/build-tools/28.0.3/renderscript \ | 
					
						
							|  |  |  | 	   android-sdk-linux/platform-tools/systrace \ | 
					
						
							|  |  |  | 	   android-sdk-linux/tools/lib \ | 
					
						
							|  |  |  | 	   android-sdk-linux/tools/proguard \ | 
					
						
							|  |  |  | 	   android-sdk-linux/tools/support \ | 
					
						
							| 
									
										
										
										
											2018-12-24 09:14:28 -08:00
										 |  |  |            android-sdk-linux/emulator \ | 
					
						
							| 
									
										
										
										
											2020-04-23 08:23:19 -07:00
										 |  |  | 	   /usr/lib/gcc \ | 
					
						
							| 
									
										
										
										
											2018-12-29 16:21:58 -08:00
										 |  |  |            cmake-3.13* && \ | 
					
						
							| 
									
										
										
										
											2018-12-22 09:19:09 -08:00
										 |  |  |     ls -l && \ | 
					
						
							|  |  |  |     du -sh * | 
					
						
							| 
									
										
										
										
											2018-12-24 09:14:28 -08:00
										 |  |  | RUN apt-get clean | 
					
						
							| 
									
										
										
										
											2019-07-16 16:59:48 -07:00
										 |  |  | RUN cd /android/android-ndk-r18b/toolchains && ln -s x86_64-4.9 x86-64-4.9 | 
					
						
							| 
									
										
										
										
											2019-07-17 08:59:50 +02:00
										 |  |  | RUN touch /android/finished-"`date`" |