michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: ANDROID_APK_NAME := background-junit3-debug michael@0: michael@0: PP_TARGETS += manifest michael@0: manifest := $(srcdir)/AndroidManifest.xml.in michael@0: manifest_TARGET := AndroidManifest.xml michael@0: manifest_FLAGS += \ michael@0: -DANDROID_BACKGROUND_TARGET_PACKAGE_NAME='$(ANDROID_PACKAGE_NAME)' \ michael@0: -DANDROID_BACKGROUND_APP_DISPLAYNAME='$(MOZ_APP_DISPLAYNAME) Background Tests' \ michael@0: -DMOZ_ANDROID_SHARED_ID='$(ANDROID_PACKAGE_NAME).sharedID' \ michael@0: -DMOZ_ANDROID_SHARED_ACCOUNT_TYPE='$(ANDROID_PACKAGE_NAME)_sync' \ michael@0: $(NULL) michael@0: ANDROID_MANIFEST_FILE := $(CURDIR)/AndroidManifest.xml michael@0: michael@0: GARBAGE += AndroidManifest.xml michael@0: michael@0: include $(srcdir)/android-services-files.mk michael@0: michael@0: # BACKGROUND_TESTS_{JAVA,RES}_FILES are defined in android-services-files.mk. michael@0: JAVAFILES := $(BACKGROUND_TESTS_JAVA_FILES) michael@0: michael@0: # The test APK needs to know the contents of the target APK while not michael@0: # being linked against them. This is a best effort to avoid getting michael@0: # out of sync with base's build config. michael@0: JARS_DIR := $(DEPTH)/mobile/android/base michael@0: JAVA_BOOTCLASSPATH := $(JAVA_BOOTCLASSPATH):$(subst $(NULL) ,:,$(wildcard $(JARS_DIR)/*.jar)) michael@0: # We also want to re-compile classes.dex when the associated base michael@0: # content changes. michael@0: classes.dex: $(wildcard $(JARS_DIR)/*.jar) michael@0: michael@0: tools:: $(ANDROID_APK_NAME).apk michael@0: michael@0: include $(topsrcdir)/config/rules.mk