mobile/android/geckoview_library/Makefile.in
author Jan-Ivar Bruaroey <jib@mozilla.com>
Wed, 15 Jan 2014 09:12:50 -0500
changeset 163695 6fa6159af7e50e0a34193af476fb820f97d934e7
parent 157881 f4b143a9c6241644470aab2a35e8e8045d0b59ff
child 166972 7cb8cbe2343fbabff2423fa8cebe2bc469ae0334
permissions -rw-r--r--
Bug 947665 - SSRC stat. r=abr

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

INSTALL_TARGETS += GECKOVIEW_LIBRARY
GECKOVIEW_LIBRARY_DEST = $(CURDIR)
GECKOVIEW_LIBRARY_FILES := \
  .classpath \
  .project \
  AndroidManifest.xml \
  project.properties \
  build.xml \
  $(NULL)


PP_TARGETS = properties

properties = local.properties.in
properties_PATH = .
properties_deps := $(patsubst %.in,%,$(properties))

GARBAGE = $(GECKOVIEW_LIBRARY_FILES) $(properties_deps)

GARBAGE_DIRS = \
  bin \
  libs \
  src \
  .deps \
  gen  \
  res \
  $(NULL)

include $(topsrcdir)/config/rules.mk

package: $(properties_deps)
	# Make directory for the zips
	$(MKDIR) -p $(DIST)/geckoview_library

	# Zip the assets
	cd $(DIST)/fennec; \
	$(ZIP) -r ../geckoview_library/geckoview_assets.zip assets

	# Make empty directories to fit an Android project structure
	$(MKDIR) -p bin gen libs/$(ABI_DIR) src

	# Copy the JARs
	cp ../base/*.jar libs/

	# Copy the SOs
	cp $(DIST)/bin/libmozglue.so $(DIST)/bin/lib/libplugin-container.so libs/$(ABI_DIR)/

	# Copy the resources
	cp -R ../base/res .

	# Zip the directory
	cd ..; \
	$(ZIP) -r ../../dist/geckoview_library/geckoview_library.zip geckoview_library --exclude geckoview_library/backend.mk geckoview_library/Makefile