1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mobile/android/geckoview_library/Makefile.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,61 @@ 1.4 +# This Source Code Form is subject to the terms of the Mozilla Public 1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.7 + 1.8 +INSTALL_TARGETS += GECKOVIEW_LIBRARY 1.9 +GECKOVIEW_LIBRARY_DEST = $(CURDIR) 1.10 +GECKOVIEW_LIBRARY_FILES := \ 1.11 + .classpath \ 1.12 + .project \ 1.13 + build.xml \ 1.14 + $(NULL) 1.15 + 1.16 +PP_TARGETS = properties manifest project 1.17 + 1.18 +properties = local.properties.in 1.19 +project = project.properties.in 1.20 +manifest = AndroidManifest.xml.in 1.21 + 1.22 +GARBAGE = $(GECKOVIEW_LIBRARY_FILES) local.properties project.properties AndroidManifest.xml 1.23 + 1.24 +GARBAGE_DIRS = \ 1.25 + bin \ 1.26 + libs \ 1.27 + src \ 1.28 + .deps \ 1.29 + gen \ 1.30 + res \ 1.31 + $(NULL) 1.32 + 1.33 +include $(topsrcdir)/config/rules.mk 1.34 + 1.35 +_ABS_DIST = $(abspath $(DIST)) 1.36 + 1.37 +package: local.properties project.properties AndroidManifest.xml FORCE 1.38 + # Make directory for the zips 1.39 + $(MKDIR) -p $(_ABS_DIST)/geckoview_library 1.40 + 1.41 + # Zip the assets into $(DIST)/geckoview_library/geckoview_assets.zip 1.42 + cd $(_ABS_DIST)/$(MOZ_APP_NAME) && \ 1.43 + $(ZIP) -q -r $(_ABS_DIST)/geckoview_library/geckoview_assets.zip assets 1.44 + 1.45 + # Make empty directories to fit an Android project structure 1.46 + $(MKDIR) -p bin gen libs/$(ANDROID_CPU_ARCH) src 1.47 + 1.48 + # Copy the JARs, except for the jar containing org.mozilla.gecko.R. 1.49 + # org.mozilla.gecko.R will be provided by the embedding application. 1.50 + cp $(DEPTH)/mobile/android/base/*.jar libs/ 1.51 + $(RM) libs/gecko-R.jar 1.52 + 1.53 + # Copy the SOs 1.54 + cp $(_ABS_DIST)/bin/libmozglue.so $(_ABS_DIST)/bin/lib/libplugin-container.so libs/$(ANDROID_CPU_ARCH)/ 1.55 + 1.56 + # Copy the resources 1.57 + $(RM) -rf res 1.58 + $(MKDIR) -p res 1.59 + cd res && \ 1.60 + $(UNZIP) -q -u -o $(_ABS_DIST)/bin/geckoview_resources.zip 1.61 + 1.62 + # Zip the directory 1.63 + cd $(DEPTH)/mobile/android && \ 1.64 + $(ZIP) -q -r $(_ABS_DIST)/geckoview_library/geckoview_library.zip geckoview_library -x geckoview_library/backend.mk geckoview_library/Makefile