mobile/android/geckoview_library/Makefile.in

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

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

mercurial