platform_build_soong/android
Jiyong Park ca700f704f Allow platform modules to link to vendor public libraries
Normally, when building with VNDK, platform modules are not allowed to
link against vendor libraries, because the ABI of the vendor libraries
are not guaranteed to be stable and may differ across multiple vendor
images.

However, the vendor public libraries are the exceptions. Vendor public
libraries are vendor libraries that are exposed to 3rd party apps and
listed in /vendor/etc/public.libraries.txt. Since they are intended to
be exposed to public, their ABI stability is guaranteed (by definition,
though it is up to the vendor to actually guarantee it).

This change provides a way to make a vendor lib as public by defining a
module of type 'vendor_public_library' with a map file that enumerates
public symbols that are publicized:

cc_library {
   name: "libvendor",
   proprietary: true,
   ...
}

vendor_public_library {
   name: "libvendor",
   symbol_file: "libvendor.map.txt",
}

This defines a stub library module named libvendor.vendorpublic from the
map file. `shared_libs: ["libvendor"]` is redirected to the stub library
when it is from the outside of the vendor partition.

Bug: 74275385
Test: m -j
Test: cc_test.go passes
Merged-In: I5bed94d7c4282b777632ab2f0fb63c203ee313ba
Change-Id: I5bed94d7c4282b777632ab2f0fb63c203ee313ba
(cherry picked from commit 374510bcb6)
2018-03-30 12:59:06 +09:00
..
androidmk.go Use product instead of oem for Product specific module 2018-01-25 07:50:35 +09:00
api_levels.go Make *Context.Config return a Config instead of a interface{} 2017-11-30 00:44:11 +00:00
arch.go Make arm_on_x86 symmetric 2018-03-27 20:06:00 +02:00
config.go Consider binder bitness while looking for abi references. 2018-03-12 16:56:03 -07:00
config_test.go Prohibit accidental renames of product config json fields 2017-11-20 16:28:53 -08:00
defaults.go Convert Visit*Deps from blueprint.Module to android.Module 2017-10-24 13:01:03 -07:00
defs.go Make binaries executable 2017-08-31 13:48:52 -07:00
env.go Make *Context.Config return a Config instead of a interface{} 2017-11-30 00:44:11 +00:00
expand.go genrule: expand $$ to $$ 2016-11-22 15:41:08 -08:00
expand_test.go genrule: expand $$ to $$ 2016-11-22 15:41:08 -08:00
hooks.go Replace ModuleContext.AConfig() with Config() 2017-11-30 00:44:18 +00:00
makevars.go Allow platform modules to link to vendor public libraries 2018-03-30 12:59:06 +09:00
module.go Allow platform modules to link to vendor public libraries 2018-03-30 12:59:06 +09:00
mutator.go Move namespace mutator earlier to support defaults 2018-01-26 20:21:18 -08:00
namespace.go Make ninja file deterministic even with dup module names 2017-12-04 17:44:32 -08:00
namespace_test.go Extract failIfErrored() to android/testing.go 2018-03-16 17:45:42 +08:00
neverallow.go Allow VNDK extensions under vendor or device 2018-03-16 17:45:42 +08:00
neverallow_test.go Allow VNDK extensions under vendor or device 2018-03-16 17:45:42 +08:00
onceper.go Add OncePer.Get() 2017-11-07 13:36:44 -08:00
package_ctx.go Remove unused intermediates parameter from ExistentPathForSource 2018-02-22 14:43:36 -08:00
paths.go Consider binder bitness while looking for abi references. 2018-03-12 16:56:03 -07:00
paths_test.go Propagate errors out of validatePath 2018-02-22 14:43:36 -08:00
prebuilt.go Add VisitDirectDepsWithTag 2018-01-02 18:23:43 -08:00
prebuilt_test.go Extract failIfErrored() to android/testing.go 2018-03-16 17:45:42 +08:00
proto.go Add proto.canonical_path_from_root 2018-02-22 16:48:35 -08:00
register.go Convert a missed Singleton 2017-11-30 00:42:49 +00:00
singleton.go Make SingletonContext.Rule take a blueprint.RuleParams 2017-12-12 11:12:32 -08:00
testing.go Add unit tests for android/neverallow.go 2018-03-16 17:45:42 +08:00
util.go RemoveFromList() should remove all matches 2018-03-16 17:45:34 +08:00
util_test.go RemoveFromList() should remove all matches 2018-03-16 17:45:34 +08:00
variable.go Add product_variables.Use_lmkd_stats_log. 2018-03-23 19:47:10 +00:00
variable_test.go Support %s in product variable properties 2017-05-05 18:22:30 -07:00
writedocs.go Allow Soong to generate its own build documentation 2017-12-12 11:12:32 -08:00