Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
michael@0 | 1 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 4 | |
michael@0 | 5 | INSTALL_TARGETS += GECKOVIEW_LIBRARY |
michael@0 | 6 | GECKOVIEW_LIBRARY_DEST = $(CURDIR) |
michael@0 | 7 | GECKOVIEW_LIBRARY_FILES := \ |
michael@0 | 8 | .classpath \ |
michael@0 | 9 | .project \ |
michael@0 | 10 | build.xml \ |
michael@0 | 11 | $(NULL) |
michael@0 | 12 | |
michael@0 | 13 | PP_TARGETS = properties manifest project |
michael@0 | 14 | |
michael@0 | 15 | properties = local.properties.in |
michael@0 | 16 | project = project.properties.in |
michael@0 | 17 | manifest = AndroidManifest.xml.in |
michael@0 | 18 | |
michael@0 | 19 | GARBAGE = $(GECKOVIEW_LIBRARY_FILES) local.properties project.properties AndroidManifest.xml |
michael@0 | 20 | |
michael@0 | 21 | GARBAGE_DIRS = \ |
michael@0 | 22 | bin \ |
michael@0 | 23 | libs \ |
michael@0 | 24 | src \ |
michael@0 | 25 | .deps \ |
michael@0 | 26 | gen \ |
michael@0 | 27 | res \ |
michael@0 | 28 | $(NULL) |
michael@0 | 29 | |
michael@0 | 30 | include $(topsrcdir)/config/rules.mk |
michael@0 | 31 | |
michael@0 | 32 | _ABS_DIST = $(abspath $(DIST)) |
michael@0 | 33 | |
michael@0 | 34 | package: local.properties project.properties AndroidManifest.xml FORCE |
michael@0 | 35 | # Make directory for the zips |
michael@0 | 36 | $(MKDIR) -p $(_ABS_DIST)/geckoview_library |
michael@0 | 37 | |
michael@0 | 38 | # Zip the assets into $(DIST)/geckoview_library/geckoview_assets.zip |
michael@0 | 39 | cd $(_ABS_DIST)/$(MOZ_APP_NAME) && \ |
michael@0 | 40 | $(ZIP) -q -r $(_ABS_DIST)/geckoview_library/geckoview_assets.zip assets |
michael@0 | 41 | |
michael@0 | 42 | # Make empty directories to fit an Android project structure |
michael@0 | 43 | $(MKDIR) -p bin gen libs/$(ANDROID_CPU_ARCH) src |
michael@0 | 44 | |
michael@0 | 45 | # Copy the JARs, except for the jar containing org.mozilla.gecko.R. |
michael@0 | 46 | # org.mozilla.gecko.R will be provided by the embedding application. |
michael@0 | 47 | cp $(DEPTH)/mobile/android/base/*.jar libs/ |
michael@0 | 48 | $(RM) libs/gecko-R.jar |
michael@0 | 49 | |
michael@0 | 50 | # Copy the SOs |
michael@0 | 51 | cp $(_ABS_DIST)/bin/libmozglue.so $(_ABS_DIST)/bin/lib/libplugin-container.so libs/$(ANDROID_CPU_ARCH)/ |
michael@0 | 52 | |
michael@0 | 53 | # Copy the resources |
michael@0 | 54 | $(RM) -rf res |
michael@0 | 55 | $(MKDIR) -p res |
michael@0 | 56 | cd res && \ |
michael@0 | 57 | $(UNZIP) -q -u -o $(_ABS_DIST)/bin/geckoview_resources.zip |
michael@0 | 58 | |
michael@0 | 59 | # Zip the directory |
michael@0 | 60 | cd $(DEPTH)/mobile/android && \ |
michael@0 | 61 | $(ZIP) -q -r $(_ABS_DIST)/geckoview_library/geckoview_library.zip geckoview_library -x geckoview_library/backend.mk geckoview_library/Makefile |