OSDN Git Service

Add variable ANDROID_NO_TEST_CHECK to not build all test modules
authorClaes Elgemark <claes.elgemark@sonymobile.com>
Thu, 11 Jun 2015 06:22:38 +0000 (08:22 +0200)
committerJohan Redestig <johan.redestig@sonymobile.com>
Tue, 23 Jun 2015 13:49:54 +0000 (15:49 +0200)
Introduce a way to speed up local builds. Don't build all test
modules if ANDROID_NO_TEST_CHECK is set to true.

On master branch this reduces what is built by more than
300 apps and 50 java libraries. Time for doing this on a
12 core machine running with -j13 is about 10 minutes.

Change-Id: I90feb108695ee60d0dbbf497644f767cc3748215

core/main.mk

index 3bb8c04..7f561ab 100644 (file)
@@ -1008,11 +1008,13 @@ target-native-tests : native-target-tests
 tests : host-tests target-tests
 
 # To catch more build breakage, check build tests modules in eng and userdebug builds.
+ifneq ($(ANDROID_NO_TEST_CHECK),true)
 ifneq ($(TARGET_BUILD_PDK),true)
 ifneq ($(filter eng userdebug,$(TARGET_BUILD_VARIANT)),)
 droidcore : target-tests host-tests
 endif
 endif
+endif
 
 .PHONY: lintall