mobile/android/build.mk

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 4
michael@0 5 include $(topsrcdir)/toolkit/mozapps/installer/package-name.mk
michael@0 6
michael@0 7 installer:
michael@0 8 @$(MAKE) -C mobile/android/installer installer
michael@0 9
michael@0 10 package:
michael@0 11 @$(MAKE) -C mobile/android/installer
michael@0 12
michael@0 13 ifeq ($(OS_TARGET),Android)
michael@0 14 ifneq ($(MOZ_ANDROID_INSTALL_TARGET),)
michael@0 15 ANDROID_SERIAL = $(MOZ_ANDROID_INSTALL_TARGET)
michael@0 16 endif
michael@0 17 ifneq ($(ANDROID_SERIAL),)
michael@0 18 export ANDROID_SERIAL
michael@0 19 else
michael@0 20 # Determine if there's more than one device connected
michael@0 21 android_devices=$(filter device,$(shell $(ADB) devices))
michael@0 22 ifeq ($(android_devices),)
michael@0 23 install::
michael@0 24 @echo 'No devices are connected. Connect a device or start an emulator.'
michael@0 25 @exit 1
michael@0 26 else
michael@0 27 ifneq ($(android_devices),device)
michael@0 28 install::
michael@0 29 @echo 'Multiple devices are connected. Define ANDROID_SERIAL to specify the install target.'
michael@0 30 $(ADB) devices
michael@0 31 @exit 1
michael@0 32 endif
michael@0 33 endif
michael@0 34 endif
michael@0 35
michael@0 36 install::
michael@0 37 $(ADB) install -r $(DIST)/$(PKG_PATH)$(PKG_BASENAME).apk
michael@0 38 else
michael@0 39 @echo 'Mobile can't be installed directly.'
michael@0 40 @exit 1
michael@0 41 endif
michael@0 42
michael@0 43 deb: package
michael@0 44 @$(MAKE) -C mobile/android/installer deb
michael@0 45
michael@0 46 upload::
michael@0 47 @$(MAKE) -C mobile/android/installer upload
michael@0 48
michael@0 49 ifdef ENABLE_TESTS
michael@0 50 # Implemented in testing/testsuite-targets.mk
michael@0 51
michael@0 52 mochitest-browser-chrome:
michael@0 53 $(RUN_MOCHITEST) --browser-chrome
michael@0 54 $(CHECK_TEST_ERROR)
michael@0 55
michael@0 56 mochitest:: mochitest-browser-chrome
michael@0 57
michael@0 58 .PHONY: mochitest-browser-chrome
michael@0 59 endif
michael@0 60
michael@0 61 ifeq ($(OS_TARGET),Linux)
michael@0 62 deb: installer
michael@0 63 endif

mercurial