diff options
author | Joe Onorato <joeo@google.com> | 2011-10-30 21:37:35 -0700 |
---|---|---|
committer | Joe Onorato <joeo@google.com> | 2012-10-20 17:25:55 -0700 |
commit | 8858d2a731f432786b7548b5f63ac93be81eb986 (patch) | |
tree | 9fd9778968bade6becf5a0a1673d68264bc08f01 /core/definitions.mk | |
parent | 0f23979f29db6b46978b78da4db90df862ffb925 (diff) | |
download | build-8858d2a731f432786b7548b5f63ac93be81eb986.zip build-8858d2a731f432786b7548b5f63ac93be81eb986.tar.gz build-8858d2a731f432786b7548b5f63ac93be81eb986.tar.bz2 |
Add a tool to let you enforce layering between packages in a java module.
And build system support for it too.
Change-Id: I4dd5ed0b9edab6e8884b0d00cfeeae5fa38d967a
Diffstat (limited to 'core/definitions.mk')
-rw-r--r-- | core/definitions.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/definitions.mk b/core/definitions.mk index 06db960..986837b 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -1475,6 +1475,8 @@ $(hide) if [ -s $(PRIVATE_CLASS_INTERMEDIATES_DIR)/java-source-list-uniq ] ; the \@$(PRIVATE_CLASS_INTERMEDIATES_DIR)/java-source-list-uniq \ || ( rm -rf $(PRIVATE_CLASS_INTERMEDIATES_DIR) ; exit 41 ) \ fi +$(if $(PRIVATE_JAVA_LAYERS_FILE), $(hide) build/tools/java-layers.py \ + $(PRIVATE_JAVA_LAYERS_FILE) \@$(PRIVATE_CLASS_INTERMEDIATES_DIR)/java-source-list-uniq,) $(hide) rm -f $(PRIVATE_CLASS_INTERMEDIATES_DIR)/java-source-list $(hide) rm -f $(PRIVATE_CLASS_INTERMEDIATES_DIR)/java-source-list-uniq $(if $(PRIVATE_JAR_EXCLUDE_FILES), $(hide) find $(PRIVATE_CLASS_INTERMEDIATES_DIR) \ |