Commit Graph

40521 Commits

Author SHA1 Message Date
Jiyong Park d4a3a137ed "current" is implicitly added to stubs.versions
So far, when a library `libfoo` has `stubs.versions: ["10", "11"]`, then
`shared_libs: ["libfoo"]` is linked to the version 11 of the stub.

This requires the author of `libfoo` to manually update the property
whenever a new version is introduced. Otherwise, clients are not able
to use the newly added APIs because the latest stub is for an old
version.

This change eliminates the need for manual updating. "current" version
is always implicitly added to `stubs.versions`. It is added even when
nothing is set on the property, if `stubs.symbol_file` is set. i.e.

```
cc_library {
    name: "libfoo",
    stubs: {
        symbol_file: "libfoo.map.txt",
	// no versions: [...] needed
    },
}

cc_library {
    name: "a_client",
    shared_libs: ["libfoo"],
    apex_available: ["myapex"],
    min_sdk_version: "29",
}

apex {
    name: "myapex",
    native_shared_libraries: ["a_client"],
    min_sdk_version: "29",
}
```

`a_client` links to the "current" stub of `libfoo` that has all symbols
shown in the map file.

Note that, above doesn't mean that the client has unlimited access to
APIs that are introduced even after the min_sdk_version of the client
(29 in this example). The use of such APIs still has to be guarded with
`__builtin_available` check.

Bug: N/A
Test: m
Change-Id: I70bb1600c18e74d36c6b24c3569d2149f02aaf96
2021-04-01 09:58:53 +09:00
Treehugger Robot 0c00222c5e Merge "Add default group support for logical_partition" am: ce08a57bb1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1657799

Change-Id: Iac93209083514c337fc09d75b6b8d148d4d85507
2021-04-01 00:49:01 +00:00
Treehugger Robot ce08a57bb1 Merge "Add default group support for logical_partition" 2021-04-01 00:15:19 +00:00
Paul Duffin a713a8b987 Merge "Remove unused java testing methods" am: 4aa7faf487 am: 3971c45155 am: 9b05c66ed6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1658077

Change-Id: I987d5981120069894f114a09fd29acf1830e0e02
2021-04-01 00:11:01 +00:00
Paul Duffin c0e22ebaef Merge "Convert testDexpreoptWithApexes to use test fixtures" am: bcaf0fcb55 am: 7eee85fcae am: 0d9785622c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1658076

Change-Id: If889ada1f5b1b572c04a4166c7c17332cf1f894c
2021-04-01 00:10:51 +00:00
Paul Duffin c31fe63706 Merge "Convert TestApexPermittedPackagesRules to use test fixtures" am: b00c7ed2e8 am: 6f3f57cbd8 am: 7904ca6ceb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1658075

Change-Id: Ic911814f474cf7ec8d249af4b251bd4a82f9a6f6
2021-04-01 00:10:42 +00:00
Jaewoong Jung 6d15d63556 Add min_sdk_version to java_import.
Fixes: 183695497
Test: apex_test.go
Change-Id: Ie255f74d40432f4bdd0092d618705a7d17235e58
2021-03-31 16:50:42 -07:00
Paul Duffin 9b05c66ed6 Merge "Remove unused java testing methods" am: 4aa7faf487 am: 3971c45155
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1658077

Change-Id: Ie437167d5e6a58fa4457729170e57f677ff0ccfc
2021-03-31 23:23:10 +00:00
Paul Duffin 0d9785622c Merge "Convert testDexpreoptWithApexes to use test fixtures" am: bcaf0fcb55 am: 7eee85fcae
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1658076

Change-Id: I22ea15a18f4bfdb89aed61a5bb87a91f91c4d2f3
2021-03-31 23:23:04 +00:00
Paul Duffin 7904ca6ceb Merge "Convert TestApexPermittedPackagesRules to use test fixtures" am: b00c7ed2e8 am: 6f3f57cbd8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1658075

Change-Id: I0fd47536798e00cc6bafad96ad522189aca2e953
2021-03-31 23:22:36 +00:00
Paul Duffin 3971c45155 Merge "Remove unused java testing methods" am: 4aa7faf487
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1658077

Change-Id: I55beb41a60f7c77110143987534bf5e0200cf03a
2021-03-31 22:47:02 +00:00
Paul Duffin 7eee85fcae Merge "Convert testDexpreoptWithApexes to use test fixtures" am: bcaf0fcb55
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1658076

Change-Id: I53a4b8bccc0069d1957e5b5637bcf6827e472a3d
2021-03-31 22:46:53 +00:00
Paul Duffin 6f3f57cbd8 Merge "Convert TestApexPermittedPackagesRules to use test fixtures" am: b00c7ed2e8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1658075

Change-Id: I8f695e8d3efd6c54592c5eca3e5de6c940f55af4
2021-03-31 22:46:00 +00:00
Ryan Prichard 4ccd490ae5 Revert^2 "Switch platform-NDK unwinder to LLVM libunwind.a prebuilt"
This reverts commit 74bdc28817.

Bug: http://b/153025717
Test: treehugger
Change-Id: I11410f213732c52755a3bd3d4d0769570354484e
2021-03-31 15:33:44 -07:00
Paul Duffin bb7f1ac794 Add a new platform_bootclasspath module type
Initially, this is just a placeholder but functionality will be added
in follow up changes.

Bug: 177892522
Test: m nothing
Change-Id: I890b0d5a117c51a19c9ac5df98c766761d3aa16c
2021-03-31 22:44:34 +01:00
Paul Duffin 4aa7faf487 Merge "Remove unused java testing methods" 2021-03-31 21:41:42 +00:00
Paul Duffin bcaf0fcb55 Merge "Convert testDexpreoptWithApexes to use test fixtures" 2021-03-31 21:41:00 +00:00
Paul Duffin b00c7ed2e8 Merge "Convert TestApexPermittedPackagesRules to use test fixtures" 2021-03-31 21:40:09 +00:00
Treehugger Robot 0d68234215 Merge "Do not build stats-log-api-gen-exports in mainline builds" am: fdfb9540f6 am: 1a7afb484c am: 895d2ff78a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1656192

Change-Id: Iaab89bd0c5e6aa133be025f26f261e032cf9d9f2
2021-03-31 21:18:33 +00:00
Liz Kammer fc8bc62d2a Merge "Handle product_variable asflag for cc_object." am: acacbc1166 am: 2cc845060d am: 263bdc570c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1652787

Change-Id: I6f9fd6727fd3eb0a5fdf3b0ccd324fed24a05be6
2021-03-31 21:17:47 +00:00
Liz Kammer 9af11134ff Merge "Don't use custom mixed build logic for cc_object" am: 7dfaa3a732 am: 227e8e9493 am: 8ac144c6e6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1615643

Change-Id: Iff33eedc973c18eb99ee0de60548c8272b525104
2021-03-31 21:17:42 +00:00
Treehugger Robot 895d2ff78a Merge "Do not build stats-log-api-gen-exports in mainline builds" am: fdfb9540f6 am: 1a7afb484c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1656192

Change-Id: I6d0dfea5e9c447d1d429388f68faee840ea0db2b
2021-03-31 20:32:03 +00:00
Liz Kammer 263bdc570c Merge "Handle product_variable asflag for cc_object." am: acacbc1166 am: 2cc845060d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1652787

Change-Id: Id44d10eed084732f693e00896d990b1ccf57d08a
2021-03-31 20:31:47 +00:00
Liz Kammer 8ac144c6e6 Merge "Don't use custom mixed build logic for cc_object" am: 7dfaa3a732 am: 227e8e9493
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1615643

Change-Id: I4e8d3c51e2cd11415529ba547fd8619f7637ed27
2021-03-31 20:31:43 +00:00
Colin Cross 8095c29597 Remove support for unsandboxed metalava
Everything is running in the sandbox, remove the unsandboxed support.

Bug: 153703940
Test: m checkbuild
Change-Id: I811b8a0ad37143518c120367dd20b2b6aa011570
2021-03-31 13:17:42 -07:00
Colin Cross d47f4ac828 Silence kotlinc JDK9 warnings
Silence the "Illegal reflective access" warning from kotlinc tracked
by https://youtrack.jetbrains.com/issue/KT-43704

Test: m SystemUI
Change-Id: I98eaf530c69cc4d3cefe09f5feab54c764352912
2021-03-31 13:17:42 -07:00
Colin Cross 607c0b795c Fix multiple copies of read-only files in sbox
Sbox preserves the permissions of input files when copying them into the
sandbox.  A read-only file copied into the sandbox multiple times causes
a permission denied error on the second write.  Building in Bazel results
in more read-only files, which triggers the issue on existing sbox rules
with duplicate input files.  Remove the destination file when copying if
it exists.

Bug: 184113103
Test: m USE_BAZEL=true
Change-Id: I7edf92d82b766100e3cbbd90d22428269d7d0167
2021-03-31 13:17:42 -07:00
Treehugger Robot 1a7afb484c Merge "Do not build stats-log-api-gen-exports in mainline builds" am: fdfb9540f6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1656192

Change-Id: Icc3d770747da437c9e98d92eb4ebe99591fc4136
2021-03-31 19:55:37 +00:00
Liz Kammer 2cc845060d Merge "Handle product_variable asflag for cc_object." am: acacbc1166
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1652787

Change-Id: If76000e28e7499243a87a5811852a62350dbe5a0
2021-03-31 19:51:48 +00:00
Liz Kammer 227e8e9493 Merge "Don't use custom mixed build logic for cc_object" am: 7dfaa3a732
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1615643

Change-Id: I517f16a5ce4b141fa26b50d7533ee0ba8ef6fa19
2021-03-31 19:51:30 +00:00
Treehugger Robot fdfb9540f6 Merge "Do not build stats-log-api-gen-exports in mainline builds" 2021-03-31 18:48:18 +00:00
Liz Kammer acacbc1166 Merge "Handle product_variable asflag for cc_object." 2021-03-31 18:43:55 +00:00
Liz Kammer 7dfaa3a732 Merge "Don't use custom mixed build logic for cc_object" 2021-03-31 18:43:55 +00:00
Paul Duffin 6595f7b47a Merge "Remove varargs from Fixture(t *testing.T)" am: 301099e451 am: cffb5bf2c4 am: dc6f50ba96
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1660017

Change-Id: I9d9da20178e47b10ef573487d401c5e34ea6111a
2021-03-31 18:34:14 +00:00
Paul Duffin 450157f5d6 Merge "Remove varargs from RunTest(t *testing.T)" am: 5086512524 am: f199bedb2d am: c29b3dd043
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1658078

Change-Id: Id84553d18b818cc8f3fba596a5c230551416d73e
2021-03-31 18:34:07 +00:00
Christopher Parsons cac1ba6ec3 Merge "Register bp2build module types even outside generation" am: c68bc37e51 am: 776f9ef8cb am: 2365195fa0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1657219

Change-Id: I4c46426809b158251bc76dc52b9f96a06c63adfb
2021-03-31 18:34:00 +00:00
Treehugger Robot a6f57558af Merge "Add license for bloaty subdirectory." am: 838449d993 am: c2afccd7a2 am: 9b757cd4fe
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1655029

Change-Id: Iaaad9625d7e8da27cd3d95c10ec4263a5242c279
2021-03-31 18:32:50 +00:00
Paul Duffin dc6f50ba96 Merge "Remove varargs from Fixture(t *testing.T)" am: 301099e451 am: cffb5bf2c4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1660017

Change-Id: I6fd47a0e21b990b279b61225d94ff93ba58bfa08
2021-03-31 18:27:49 +00:00
Paul Duffin c29b3dd043 Merge "Remove varargs from RunTest(t *testing.T)" am: 5086512524 am: f199bedb2d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1658078

Change-Id: Ie5e8aae83feeb2e07bb5906de82536bd50171ce3
2021-03-31 18:27:29 +00:00
Paul Duffin cffb5bf2c4 Merge "Remove varargs from Fixture(t *testing.T)" am: 301099e451
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1660017

Change-Id: I907a9533e80eafb33c6f0389cac12c4fb3d9f006
2021-03-31 17:56:11 +00:00
Paul Duffin f199bedb2d Merge "Remove varargs from RunTest(t *testing.T)" am: 5086512524
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1658078

Change-Id: Ib8249d0e33acbc0f6da88d90e3758b810debedc0
2021-03-31 17:55:24 +00:00
Christopher Parsons 2365195fa0 Merge "Register bp2build module types even outside generation" am: c68bc37e51 am: 776f9ef8cb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1657219

Change-Id: Ib21052dc10472a31bb888b366bb9ccc11a3cf17d
2021-03-31 17:32:30 +00:00
Treehugger Robot 9b757cd4fe Merge "Add license for bloaty subdirectory." am: 838449d993 am: c2afccd7a2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1655029

Change-Id: I3a376bc1f15f6b82b4d2fc4144c7a870bc3d8985
2021-03-31 17:32:22 +00:00
Paul Duffin 301099e451 Merge "Remove varargs from Fixture(t *testing.T)" 2021-03-31 17:18:58 +00:00
Paul Duffin 5086512524 Merge "Remove varargs from RunTest(t *testing.T)" 2021-03-31 17:18:14 +00:00
Christopher Parsons 776f9ef8cb Merge "Register bp2build module types even outside generation" am: c68bc37e51
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1657219

Change-Id: I6804bd38c95e121746995a18a59f5473338ce2cf
2021-03-31 16:56:19 +00:00
Treehugger Robot c2afccd7a2 Merge "Add license for bloaty subdirectory." am: 838449d993
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1655029

Change-Id: I5ad9baf2e55554ecfecbd4e550f5200e1fb39c9b
2021-03-31 16:52:29 +00:00
Christopher Parsons c68bc37e51 Merge "Register bp2build module types even outside generation" 2021-03-31 16:32:37 +00:00
Paul Duffin 2303174d95 Merge changes Ia3e93b8a,I964af3cb am: 4f6d15465b am: 18674bc4a8 am: 4d7fd01c00
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1655215

Change-Id: Ic22d20d0e3618ccacea62beb01a91117f5a56bc8
2021-03-31 16:28:16 +00:00
Paul Duffin 4eca3c04fc Merge "Extract prepareForCcTest" am: d11d199ba6 am: 3b56761441 am: 0dcfdfd118
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1655213

Change-Id: I7f0bc0e5600ff5dbe95319fa1c2f74c592398c66
2021-03-31 16:27:16 +00:00