diff options
author | Dan Willemsen <dwillemsen@google.com> | 2015-09-22 16:54:12 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2015-10-13 16:14:12 -0700 |
commit | 76a89d3a0a39ffa2c9172728165da42c3b3379be (patch) | |
tree | 237e48e1f84e6d753582bfaf4210b2c9ab19c9b7 /core/definitions.mk | |
parent | ab4d8594591b715934d7a1106d5284e9721070ba (diff) | |
download | build-76a89d3a0a39ffa2c9172728165da42c3b3379be.zip build-76a89d3a0a39ffa2c9172728165da42c3b3379be.tar.gz build-76a89d3a0a39ffa2c9172728165da42c3b3379be.tar.bz2 |
Sort all files found via $(shell find)
Don't rely on filesystem ordering to make these the same for all builds.
Bug: 24204119
Change-Id: I7313062157764091acecf45f4b57405c28858546
Diffstat (limited to 'core/definitions.mk')
-rw-r--r-- | core/definitions.mk | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/core/definitions.mk b/core/definitions.mk index fad468e..bc284ae 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -181,10 +181,10 @@ endef ########################################################### define all-java-files-under -$(patsubst ./%,%, \ +$(sort $(patsubst ./%,%, \ $(shell cd $(LOCAL_PATH) ; \ find -L $(1) -name "*.java" -and -not -name ".*") \ - ) + )) endef ########################################################### @@ -203,10 +203,10 @@ endef ########################################################### define all-c-files-under -$(patsubst ./%,%, \ +$(sort $(patsubst ./%,%, \ $(shell cd $(LOCAL_PATH) ; \ find -L $(1) -name "*.c" -and -not -name ".*") \ - ) + )) endef ########################################################### @@ -225,10 +225,10 @@ endef ########################################################### define all-Iaidl-files-under -$(patsubst ./%,%, \ +$(sort $(patsubst ./%,%, \ $(shell cd $(LOCAL_PATH) ; \ find -L $(1) -name "I*.aidl" -and -not -name ".*") \ - ) + )) endef ########################################################### @@ -246,10 +246,10 @@ endef ########################################################### define all-logtags-files-under -$(patsubst ./%,%, \ +$(sort $(patsubst ./%,%, \ $(shell cd $(LOCAL_PATH) ; \ find -L $(1) -name "*.logtags" -and -not -name ".*") \ - ) + )) endef ########################################################### @@ -259,10 +259,10 @@ endef ########################################################### define all-proto-files-under -$(patsubst ./%,%, \ +$(sort $(patsubst ./%,%, \ $(shell cd $(LOCAL_PATH) ; \ find -L $(1) -name "*.proto" -and -not -name ".*") \ - ) + )) endef ########################################################### @@ -272,10 +272,10 @@ endef ########################################################### define all-renderscript-files-under -$(patsubst ./%,%, \ +$(sort $(patsubst ./%,%, \ $(shell cd $(LOCAL_PATH) ; \ find -L $(1) \( -name "*.rs" -or -name "*.fs" \) -and -not -name ".*") \ - ) + )) endef ########################################################### @@ -285,10 +285,10 @@ endef ########################################################### define all-S-files-under -$(patsubst ./%,%, \ +$(sort $(patsubst ./%,%, \ $(shell cd $(LOCAL_PATH) ; \ find -L $(1) -name "*.S" -and -not -name ".*") \ - ) + )) endef ########################################################### @@ -298,10 +298,10 @@ endef ########################################################### define all-html-files-under -$(patsubst ./%,%, \ +$(sort $(patsubst ./%,%, \ $(shell cd $(LOCAL_PATH) ; \ find -L $(1) -name "*.html" -and -not -name ".*") \ - ) + )) endef ########################################################### @@ -319,7 +319,7 @@ endef ########################################################### define find-subdir-files -$(patsubst ./%,%,$(shell cd $(LOCAL_PATH) ; find -L $(1))) +$(sort $(patsubst ./%,%,$(shell cd $(LOCAL_PATH) ; find -L $(1)))) endef ########################################################### @@ -331,8 +331,8 @@ endef ########################################################### define find-subdir-subdir-files -$(filter-out $(patsubst %,$(1)/%,$(3)),$(patsubst ./%,%,$(shell cd \ - $(LOCAL_PATH) ; find -L $(1) -maxdepth 1 -name $(2)))) +$(sort $(filter-out $(patsubst %,$(1)/%,$(3)),$(patsubst ./%,%,$(shell cd \ + $(LOCAL_PATH) ; find -L $(1) -maxdepth 1 -name $(2))))) endef ########################################################### @@ -341,10 +341,10 @@ endef ########################################################### define find-subdir-assets -$(if $(1),$(patsubst ./%,%, \ +$(sort $(if $(1),$(patsubst ./%,%, \ $(shell if [ -d $(1) ] ; then cd $(1) ; find ./ -not -name '.*' -and -type f -and -not -type l ; fi)), \ $(warning Empty argument supplied to find-subdir-assets) \ -) +)) endef ########################################################### @@ -369,10 +369,10 @@ endef ########################################################### define find-files-in-subdirs -$(patsubst ./%,%, \ +$(sort $(patsubst ./%,%, \ $(shell cd $(1) ; \ find -L $(3) -name $(2) -and -not -name ".*") \ - ) + )) endef ########################################################### |