We add a compat config build rule to extract the merged config, and
then update the droiddoc build rule to consume that.
Test: m -j offline-sdk-docs
Bug: 144927670
Change-Id: Ib1e85f97895c89227882e665572bda9bfc2a8cba
Exempt-From-Owner-Approval: ag/10097965 approved internally, Colin requested to patch to aosp
am skip reason: Change-Id I97bcee9bf8ffc0dc71453abbdb613ed56ea2cdb4 with SHA-1 ee9a98d88e is in history
Change-Id: Ia43cc357b443a2f8ea376d3a357031561273e83e
am skip reason: Change-Id I97bcee9bf8ffc0dc71453abbdb613ed56ea2cdb4 with SHA-1 ee9a98d88e is in history
Change-Id: Ia5d33ac1024e73611e074059626eb582245bef07
am skip reason: Change-Id If58081a12b2b9bc40cfcbf64c99beafe198d07af with SHA-1 100bbdc8f3 is in history
Change-Id: Ia737936440769d2051014ea72dc2bb076c69394f
am skip reason: Change-Id I7e7d8201956a150febbda5bb1794f8ece016db8b with SHA-1 82fe59b656 is in history
Change-Id: Icb59e5bf0f45a1731615d0ff1cc8ec7dc7903256
am skip reason: Change-Id I955212a20ea19c854ebc88635252a1d174ea8f7f with SHA-1 c743414d42 is in history
Change-Id: Ifd1b31f8b46b071dab51ba96070475d456569b4e
am skip reason: Change-Id If58081a12b2b9bc40cfcbf64c99beafe198d07af with SHA-1 100bbdc8f3 is in history
Change-Id: I344d1904dcec0ece2eba7155979cb550c0406475
am skip reason: Change-Id I7e7d8201956a150febbda5bb1794f8ece016db8b with SHA-1 82fe59b656 is in history
Change-Id: I80276633aab5703819f604885242b434eddbe6aa
am skip reason: Change-Id I955212a20ea19c854ebc88635252a1d174ea8f7f with SHA-1 c743414d42 is in history
Change-Id: I0fb8f969747caf903c47859ebf94e0e225fbe7d7
The wrapper to getenv() appends the effective userid (euid) of the
current process to GCOV_PREFIX. This avoids conflicts and permissions
issues when multiple processes try to create/access the same directories
and files under /data/misc/trace.
Bug: 148178774
Test: Verify that coverage files are written to
/data/misc/trace/<euid>/proc/... instead of /data/misc/trace/proc/...
Change-Id: If58081a12b2b9bc40cfcbf64c99beafe198d07af
Merged-In: If58081a12b2b9bc40cfcbf64c99beafe198d07af
(cherry picked from commit 100bbdc8f3)
Bug: http://b/134177005
Bug: http://b/116873221
Previously, the libprofile-extras dependency was added as a
LateStaticLib and the constructor in this library was included during
linking with the '-uinit_profile_extras' linker flag. This was done
because at the deps() stage, the exact binaries that need coverage are
not known (in fact the coverage-enabled variants are not created yet).
This meant that for a link command, if one of the shared libraries
already exported the constructor, the output of the link command did not
load/link libprofile-extras.
For other reasons, we now want to add more symbols to this library that
need to be linked into all libraries and executables. To accomplish
that, refactor the dependency handling so libprofile-extras can be added
as a 'WholeStaticLib'.
This is done by creating a new dependency type (with a coverageDepTag
dependency tag) to add libprofile-extras as a dependency for all modules
that can potentially link with coverage. During the flags() call, this
dependency is moved as a WholeStaticLib dependency iff coverage is
enabled in this link step.
There are a few NFC changes as well:
- deps() takes a DepsContext parameter.
- flags() has an extra PathDeps parameter and return value.
- add useSdk() helper to cc.Module.
Test: Build with coverage and check that we can generate coverage using
SIGUSR1 and the debug.coverage.flush sysprop.
Change-Id: I7e7d8201956a150febbda5bb1794f8ece016db8b
Merged-In: I7e7d8201956a150febbda5bb1794f8ece016db8b
(cherry picked from commit 82fe59b656)
Previously, the java_sdk_library_import only exposed the public stubs.
This change adds support for exposing system and test stubs too by adding
separate structures for public, system and test scopes. The existing
properties are kept for legacy reasons (and because libs can be common
across the differents scopes).
It extracts some code that is common to both sdk library and sdk
library import.
The legacy support will be removed in a future change once all existing
usages have been switched over.
Bug: 148080325
Test: m droid
TARGET_BUILD_APPS=Camera2 m
Change-Id: I0b26cc8af9ee044437ff3b80c1eca611816b9386
The legacy usages have all been updated so the legacy properties
can be safely removed. The Libs property is kept so it can be used to
specify properties common to all scopes.
Bug: 148080325
Test: m droid
TARGET_BUILD_APPS=Camera2 m
Change-Id: I252ebbedbb463db3c7346e86d86b5880eea76fe9