1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/build/mobile/robocop/Makefile.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,101 @@ 1.4 +# This Source Code Form is subject to the terms of the Mozilla Public 1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.7 + 1.8 +mobile-tests := mobile/android/base/tests 1.9 +TESTPATH := $(topsrcdir)/$(mobile-tests) 1.10 +dir-tests := $(DEPTH)/$(mobile-tests) 1.11 + 1.12 +ANDROID_APK_NAME := robocop-debug 1.13 + 1.14 +ANDROID_EXTRA_JARS += \ 1.15 + $(srcdir)/robotium-solo-4.3.1.jar \ 1.16 + $(NULL) 1.17 + 1.18 +ANDROID_ASSETS_DIR := $(TESTPATH)/assets 1.19 + 1.20 +_JAVA_HARNESS := \ 1.21 + Actions.java \ 1.22 + Assert.java \ 1.23 + Driver.java \ 1.24 + Element.java \ 1.25 + FennecInstrumentationTestRunner.java \ 1.26 + FennecNativeActions.java \ 1.27 + FennecMochitestAssert.java \ 1.28 + FennecTalosAssert.java \ 1.29 + FennecNativeDriver.java \ 1.30 + FennecNativeElement.java \ 1.31 + RoboCopException.java \ 1.32 + RobocopShare1.java \ 1.33 + RobocopShare2.java \ 1.34 + RobocopUtils.java \ 1.35 + PaintedSurface.java \ 1.36 + $(NULL) 1.37 + 1.38 +java-harness := $(addprefix $(srcdir)/,$(_JAVA_HARNESS)) 1.39 +java-tests := \ 1.40 + $(wildcard $(TESTPATH)/*.java) \ 1.41 + $(wildcard $(TESTPATH)/components/*.java) \ 1.42 + $(wildcard $(TESTPATH)/helpers/*.java) 1.43 + 1.44 +# pre-process TestConstants.java.in 1.45 +PP_TARGETS += testconstants 1.46 +testconstants-dep := $(dir-tests)/TestConstants.java 1.47 +testconstants := $(TESTPATH)/TestConstants.java.in 1.48 +testconstants_PATH := $(dir-tests) 1.49 + 1.50 +PP_TARGETS += manifest 1.51 +manifest := $(srcdir)/AndroidManifest.xml.in 1.52 +manifest_TARGET := AndroidManifest.xml 1.53 +ANDROID_MANIFEST_FILE := $(CURDIR)/AndroidManifest.xml 1.54 + 1.55 +# Install robocop configs and helper 1.56 +INSTALL_TARGETS += robocop 1.57 +robocop_TARGET := libs 1.58 +robocop_DEST := $(CURDIR) 1.59 +robocop_FILES := \ 1.60 + $(TESTPATH)/robocop.ini \ 1.61 + $(TESTPATH)/robocop_autophone.ini \ 1.62 + $(NULL) 1.63 +robocop-deps := $(notdir $(robocop_FILES)) 1.64 + 1.65 +ROBOCOP_FILES := \ 1.66 + $(wildcard $(TESTPATH)/*.html) \ 1.67 + $(wildcard $(TESTPATH)/*.jpg) \ 1.68 + $(wildcard $(TESTPATH)/*.sjs) \ 1.69 + $(wildcard $(TESTPATH)/test*.js) \ 1.70 + $(wildcard $(TESTPATH)/robocop*.js) \ 1.71 + $(wildcard $(TESTPATH)/*.xml) \ 1.72 + $(wildcard $(TESTPATH)/*.swf) \ 1.73 + $(NULL) 1.74 + 1.75 +ROBOCOP_DEST = $(DEPTH)/_tests/testing/mochitest/tests/robocop/ 1.76 +INSTALL_TARGETS += ROBOCOP 1.77 + 1.78 +GARBAGE += \ 1.79 + AndroidManifest.xml \ 1.80 + $(robocop-deps) \ 1.81 + $(testconstants-dep) \ 1.82 + $(NULL) 1.83 + 1.84 +JAVAFILES += \ 1.85 + $(java-harness) \ 1.86 + $(java-tests) \ 1.87 + $(robocop-deps) \ 1.88 + $(testconstants-dep) \ 1.89 + $(NULL) 1.90 + 1.91 +include $(topsrcdir)/config/rules.mk 1.92 + 1.93 +tools:: $(ANDROID_APK_NAME).apk 1.94 + 1.95 +GENERATED_DIRS += $(dir-tests) 1.96 + 1.97 +# The test APK needs to know the contents of the target APK while not 1.98 +# being linked against them. This is a best effort to avoid getting 1.99 +# out of sync with base's build config. 1.100 +JARS_DIR := $(DEPTH)/mobile/android/base 1.101 +JAVA_BOOTCLASSPATH := $(JAVA_BOOTCLASSPATH):$(subst $(NULL) ,:,$(wildcard $(JARS_DIR)/*.jar)) 1.102 +# We also want to re-compile classes.dex when the associated base 1.103 +# content changes. 1.104 +classes.dex: $(wildcard $(JARS_DIR)/*.jar)