Files
build_soong/android
Jiyong Park 25fc6a9cc9 Stubs variant is used when building for APEX
When a native module is built for an APEX and is depending on a native
library having stubs (i.e. stubs.versions property is set), the stubs
variant is used unless the dependent lib is directly included in the
same APEX with the depending module.

Example:

apex {
    name: "myapex",
    native_shared_libs: ["libX", "libY"],
}

cc_library {
    name: "libX",
    shared_libs: ["libY", "libZ"],
}

cc_library {
    name: "libY",
    stubs: { versions: ["1", "2"], },
}

cc_library {
    name: "libZ",
    stubs: { versions: ["1", "2"], },
}

In this case, libX is linking to the impl variant of libY (that provides
private APIs) while libY is linking to the version 2 stubs of libZ. This is
because libY is directly included in the same apex via
native_shared_libs property, but libZ isn't.

Bug: 112672359
Test: apex_test added
Change-Id: If9871b70dc74a06bd828dd4cd1aeebd2e68b837c
2018-12-04 17:46:22 +09:00
..
2018-07-24 22:52:57 +00:00
2018-11-21 10:15:07 +00:00
2018-07-22 21:18:45 -07:00
2017-08-31 13:48:52 -07:00
2016-11-22 15:41:08 -08:00
2016-11-22 15:41:08 -08:00
2018-04-18 18:56:33 +00:00
2018-07-22 21:18:45 -07:00
2018-07-22 21:18:45 -07:00
2017-11-07 13:36:44 -08:00
2018-09-13 18:27:50 +00:00
2018-10-20 21:33:41 -07:00
2018-04-18 18:56:33 +00:00
2018-02-22 16:48:35 -08:00
2017-11-30 00:42:49 +00:00
2018-11-29 10:08:14 +00:00