platform_build_soong/android
Colin Cross 89562dc308 Enable toc optimization for host builds
The toc optimization had been disabled for host builds to ensure that
the timestamp of the final binary changed whenever its implementation
changed, in order to support rerunning host tools that were modified
during incremental builds.  However, only the final install rule must be
re-run to update the timestamp, and not the link rule.

Update the shared library install dependencies to use normal
dependencies instead of order-only dependencies for host modules, and
then enable the the toc optimization for host modules.  If the
implementation of a library changes it will be reinstalled, and
libraries or binaries that depend on it will also be reinstalled.

Also move toc generation to happen on the packed, stripped library,
which is what will be used for linking, to ensure that it is available
at link time when depending only on the toc file.

Bug: 26015464
Test: m -j; touch system/tools/hidl/Annotation.cpp; m -j, verify
      out/soong/host/linux-x86/bin/hidl-gen is updated
Change-Id: I8953261d2209376f3dccbf0b1a93f7af4e45c4d0
2016-10-04 10:12:04 -07:00
..
androidmk.go Extend multilib 2016-09-06 13:26:37 -07:00
arch.go Fix windows builds 2016-09-13 15:15:51 -07:00
config.go Remove HostPrefer32BitExecutables 2016-09-02 14:06:30 -07:00
defaults.go Convert defaults to a top down mutator 2016-08-09 13:54:03 -07:00
defs.go Enable goma in soong 2016-08-31 09:48:08 -07:00
env.go Rename common to android 2016-05-18 15:37:25 -07:00
glob.go Enable goma in soong 2016-08-31 09:48:08 -07:00
hooks.go Replace PropertyCustomizer with hooks 2016-09-13 17:37:32 -07:00
makevars.go Check more Make variables 2016-05-20 00:19:14 -07:00
module.go Enable toc optimization for host builds 2016-10-04 10:12:04 -07:00
mutator.go Make defaults TopDownMutator parallel 2016-08-11 17:15:07 -07:00
onceper.go Add DeviceConfig and OncePer objects 2016-08-17 16:39:06 -07:00
package_ctx.go Enable goma in soong 2016-08-31 09:48:08 -07:00
paths.go Simplify arch target handling 2016-06-02 19:09:32 -07:00
paths_test.go Rename common to android 2016-05-18 15:37:25 -07:00
util.go Dynamically generate arch struct 2016-09-08 13:50:36 -07:00
variable.go Add debuggable product variable with cflags 2016-09-22 15:22:15 -07:00