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 := browser-junit3-debug michael@0: michael@0: ANDROID_EXTRA_JARS += \ michael@0: browser-junit3.jar \ michael@0: $(NULL) michael@0: michael@0: PP_TARGETS += manifest michael@0: manifest := AndroidManifest.xml.in michael@0: manifest_FLAGS += \ michael@0: -DANDROID_BROWSER_TARGET_PACKAGE_NAME='$(ANDROID_PACKAGE_NAME)' \ michael@0: -DANDROID_BROWSER_APP_DISPLAYNAME='$(MOZ_APP_DISPLAYNAME) Browser Tests' \ michael@0: -DMOZ_ANDROID_SHARED_ID='$(ANDROID_PACKAGE_NAME).sharedID' \ michael@0: $(NULL) michael@0: ANDROID_MANIFEST_FILE := $(CURDIR)/AndroidManifest.xml michael@0: michael@0: include $(topsrcdir)/config/rules.mk michael@0: michael@0: tools:: $(ANDROID_APK_NAME).apk 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)