title: Android - item in LOCAL_STATIC_LIBRARIES not being built
body: <p>I'm having trouble getting the dependency module to build while building a static library in AOSP. Call this library A, it has a dependency on another static lib B.</p>
  
  <p>A's <code>Android.mk</code> looks like this:</p>
  
  <pre><code>LOCAL_PATH:= $(call my-dir)
  
  include $(CLEAR_VARS)
  LOCAL_MODULE := A
  LOCAL_SRC_FILES := &lt;files...&gt;
  
  LOCAL_STATIC_LIBRARIES := B
  
  include $(BUILD_STATIC_LIBRARY)
  </code></pre>
  
  <p>Individually B builds fine (<code>mma</code>).</p>
  
  <p>Problem is when I build A, B is not being built. Instead I see this at output:</p>
  
  <pre><code>Export includes file: &lt;...&gt;/B/Android.mk -- out/&lt;...&gt;/STATIC_LIBRARIES/B_intermediates/export_includes
  </code></pre>
  
  <p>Can someone explain what does this line mean and, why is it not trying use B's <code>Android.mk</code> to properly build B?</p>
  
  <p>I understand it's not ideal to package a static lib inside another, but here I'm more courious about why is it the build system not running through B's makefile, when it's clearly a dependency?</p>
  
  <p>Thank you!</p>