Support AutoValue annotation processors via exported_deps

Change-Id: I9ca9cde74c9f080c64f32810545576bb486dfaaf
This commit is contained in:
Dave Borowitz 2015-03-24 19:15:36 -07:00
parent 19547b5ac6
commit 3484248c0c

View File

@ -63,7 +63,8 @@ def _set_auto_value(kwargs):
kwargs[apdk] = []
apds = kwargs.get(apdk, [])
if AUTO_VALUE_DEP in kwargs.get('deps', []):
all_deps = kwargs.get('deps', []) + kwargs.get('exported_deps', [])
if AUTO_VALUE_DEP in all_deps:
aps.extend(AUTO_VALUE_PROCESSORS)
apds.extend(AUTO_VALUE_PROCESSOR_DEPS)