Commit Graph

49725 Commits

Author SHA1 Message Date
Aurimas Liutikas
e92bc9fcbd Merge "Fix the way manifest fixer detects optional <uses-library> entries." am: 15c82a10de am: 4926ea3b85 am: 75b5b21ad2 am: 237d9d0ba2 am: 27a5a91bfe
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1794528

Change-Id: I204e6ed4fabf468ae74a59ec0db19726c4284415
2021-08-13 22:46:31 +00:00
Aurimas Liutikas
27a5a91bfe Merge "Fix the way manifest fixer detects optional <uses-library> entries." am: 15c82a10de am: 4926ea3b85 am: 75b5b21ad2 am: 237d9d0ba2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1794528

Change-Id: I48603accd085f82b1b15d84657ad2ea4591a8df2
2021-08-13 22:38:27 +00:00
Aurimas Liutikas
237d9d0ba2 Merge "Fix the way manifest fixer detects optional <uses-library> entries." am: 15c82a10de am: 4926ea3b85 am: 75b5b21ad2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1794528

Change-Id: I0d2bf0b3a565dd180caf6764964855d452aabed4
2021-08-13 22:08:54 +00:00
Ivan Lozano
1e946375b2 Merge "rust: Allow modules to use only generated sources" am: 0ad64f50fd am: 951f8669c5 am: 41b2c884cc am: f0c5abed26 am: 6d1108916d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1792593

Change-Id: I9ff7d5d6a43277ae2f2c16f97b94b9ba870fc459
2021-08-13 21:51:10 +00:00
Aurimas Liutikas
75b5b21ad2 Merge "Fix the way manifest fixer detects optional <uses-library> entries." am: 15c82a10de am: 4926ea3b85
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1794528

Change-Id: I34c6ec166ad18df7e215efe1130b0319db3723eb
2021-08-13 21:50:36 +00:00
Ivan Lozano
bcdee59750 rust: Link libunwind into Rust static executables. am: 8711c5cf8c am: 7381e6a503 am: 57cf0aad61 am: 21daae1e2b am: b91890ad17
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1795768

Change-Id: I708c550659bfaf28b12f88d7ce50b67caea057ed
2021-08-13 21:49:45 +00:00
Ivan Lozano
6d1108916d Merge "rust: Allow modules to use only generated sources" am: 0ad64f50fd am: 951f8669c5 am: 41b2c884cc am: f0c5abed26
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1792593

Change-Id: I414b0fff6e1beb7c75f4462c9fb00d7c3f3d3637
2021-08-13 21:29:26 +00:00
Aurimas Liutikas
4926ea3b85 Merge "Fix the way manifest fixer detects optional <uses-library> entries." am: 15c82a10de
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1794528

Change-Id: I4b456e8b73e90d175e3c06458b1a00e870e7ff48
2021-08-13 21:27:51 +00:00
Ivan Lozano
b91890ad17 rust: Link libunwind into Rust static executables. am: 8711c5cf8c am: 7381e6a503 am: 57cf0aad61 am: 21daae1e2b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1795768

Change-Id: Iba39cc431706dc58ba7d15cdb04d7d5c81d2c799
2021-08-13 21:27:31 +00:00
Aurimas Liutikas
15c82a10de Merge "Fix the way manifest fixer detects optional <uses-library> entries." 2021-08-13 21:00:35 +00:00
Ivan Lozano
f0c5abed26 Merge "rust: Allow modules to use only generated sources" am: 0ad64f50fd am: 951f8669c5 am: 41b2c884cc
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1792593

Change-Id: I5f0f87f1f938b333bb523ec90b33021743d4ac90
2021-08-13 20:28:44 +00:00
Ivan Lozano
41b2c884cc Merge "rust: Allow modules to use only generated sources" am: 0ad64f50fd am: 951f8669c5
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1792593

Change-Id: I67c8f7120c6f00faf3bc0a456bd2d5b625606b74
2021-08-13 20:13:47 +00:00
Ivan Lozano
21daae1e2b rust: Link libunwind into Rust static executables. am: 8711c5cf8c am: 7381e6a503 am: 57cf0aad61
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1795768

Change-Id: Ife196be8658430f5f607c2cc63ebdf7230900a43
2021-08-13 19:56:21 +00:00
Ivan Lozano
951f8669c5 Merge "rust: Allow modules to use only generated sources" am: 0ad64f50fd
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1792593

Change-Id: I04f29876af8675001991a5c0f457dedce1ec1f1c
2021-08-13 19:49:16 +00:00
Ivan Lozano
57cf0aad61 rust: Link libunwind into Rust static executables. am: 8711c5cf8c am: 7381e6a503
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1795768

Change-Id: Ifd4362f54ce8734f239db8a0fd66030c0019106c
2021-08-13 19:44:35 +00:00
Ivan Lozano
0ad64f50fd Merge "rust: Allow modules to use only generated sources" 2021-08-13 19:37:04 +00:00
Ivan Lozano
7381e6a503 rust: Link libunwind into Rust static executables. am: 8711c5cf8c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1795768

Change-Id: Ia655559910aa60a5b9a099a697f413f89ead2d8c
2021-08-13 19:31:52 +00:00
Ivan Lozano
e4db0036d7 rust: Allow modules to use only generated sources
Removes the need for rust_test modules that test generated source to
define a source file that simply calls include()! to pull in the
generated source.

Bug: 196076408
Test: m libselinux_bindgen_test
Change-Id: I600301ab74f6ece861916fa2545b061c81b0d92d
2021-08-13 13:37:19 -04:00
Liz Kammer
655589f17a Merge "Add some initial benchmarking for bp2build." am: e21bb67be9 am: 1b621b9c95 am: 258bd55758 am: c6268523e8 am: a678fac81e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1786668

Change-Id: I2fa9b5d3c7439fb092e2f1f977cc27aa55c138ed
2021-08-13 17:17:08 +00:00
Ivan Lozano
8711c5cf8c rust: Link libunwind into Rust static executables.
Rust static executables fail to build due to missing unwind symbols.
Make sure we link libunwind when building these.

Bug: 194386505
Test: rust_binary with static_executable: true builds.
Change-Id: I74bab25e186e181bc1ac8fdd608687707c662e4d
2021-08-13 13:15:31 -04:00
Liz Kammer
a678fac81e Merge "Add some initial benchmarking for bp2build." am: e21bb67be9 am: 1b621b9c95 am: 258bd55758 am: c6268523e8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1786668

Change-Id: I57598793937a39f0b53d40912134e1ac98eb2c61
2021-08-13 17:03:36 +00:00
Ulya Trafimovich
fc0f6e34ce Fix the way manifest fixer detects optional <uses-library> entries.
Previously manifest_fixer used a naive way to distiniguish optional libs
from required ones: it checked if a library is on the list of optional
compatibility libraries. This works for compatibility libs, but not for
other libs.

Now we properly track optionality through all stages of the build,
starting with the addition of the library as a dependency (here's where
the `uses_libs`/`optional_uses_libs` distinction kicks in), store it in
dependency tag and propagate to class loader context, and from there to
the manifest_fixer.

The tests have been updated accordingly.

Bug: 196377222
Test: lunch bertha_x86_64-userdebug && m droid dist cts mts
Change-Id: I3631ce59ebe47116ce7a9b3d33a86f636846ef0f
2021-08-13 16:10:42 +01:00
Liz Kammer
c6268523e8 Merge "Add some initial benchmarking for bp2build." am: e21bb67be9 am: 1b621b9c95 am: 258bd55758
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1786668

Change-Id: I5736025fab624c9f86d7c195ffa10d221b6bd749
2021-08-13 15:08:13 +00:00
Liz Kammer
258bd55758 Merge "Add some initial benchmarking for bp2build." am: e21bb67be9 am: 1b621b9c95
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1786668

Change-Id: Ic9b5d62095dddaef95fe9c91778b219fc8a578c1
2021-08-13 14:53:03 +00:00
Liz Kammer
1b621b9c95 Merge "Add some initial benchmarking for bp2build." am: e21bb67be9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1786668

Change-Id: I27461ae0e155b224272cea63a61f825c3290f3a9
2021-08-13 14:31:54 +00:00
Liz Kammer
e21bb67be9 Merge "Add some initial benchmarking for bp2build." 2021-08-13 14:17:11 +00:00
Jingwen Chen
5dc3287292 Merge "Revert "Exempt prebuilts/jdk and build/bazel/examples/java BUILD..."" am: 76738b1c45 am: 195c97ec7f am: f53d259325 am: c018518ac7 am: ea9f0c0768
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1795128

Change-Id: Ia17f4102f07dd39b0f0ab72aafcfb64f1691b24d
2021-08-13 07:41:21 +00:00
Jingwen Chen
ea9f0c0768 Merge "Revert "Exempt prebuilts/jdk and build/bazel/examples/java BUILD..."" am: 76738b1c45 am: 195c97ec7f am: f53d259325 am: c018518ac7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1795128

Change-Id: Ib13132e69f5a7262f2b8ed003e3c69b7d99c53eb
2021-08-13 07:25:01 +00:00
Jingwen Chen
c018518ac7 Merge "Revert "Exempt prebuilts/jdk and build/bazel/examples/java BUILD..."" am: 76738b1c45 am: 195c97ec7f am: f53d259325
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1795128

Change-Id: Ifa198fe7b0ab7037d156cd8a8502091dfb408217
2021-08-13 06:02:52 +00:00
Jingwen Chen
f53d259325 Merge "Revert "Exempt prebuilts/jdk and build/bazel/examples/java BUILD..."" am: 76738b1c45 am: 195c97ec7f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1795128

Change-Id: I21cbf5443b56cdb429b1d890f23f680ccefd0207
2021-08-13 05:47:59 +00:00
Treehugger Robot
fa5ab66675 Merge "Exempt subfolders of packages/apps/Music from bp2build BUILD file overriding." am: 6c00d24a1f am: 6e5245d884 am: de0b0848cc am: 3321c4355d am: 8e5ffe2d87
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1794487

Change-Id: I93a0e25c3021ac07e60fbb90b6eb0924f944d451
2021-08-13 05:36:10 +00:00
Jingwen Chen
195c97ec7f Merge "Revert "Exempt prebuilts/jdk and build/bazel/examples/java BUILD..."" am: 76738b1c45
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1795128

Change-Id: I1f29cb527f22a5daca72e224e292c9930644d76b
2021-08-13 05:31:48 +00:00
Treehugger Robot
8e5ffe2d87 Merge "Exempt subfolders of packages/apps/Music from bp2build BUILD file overriding." am: 6c00d24a1f am: 6e5245d884 am: de0b0848cc am: 3321c4355d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1794487

Change-Id: I72acc921cae63cacae149285b5ad520ec3fa702f
2021-08-13 05:21:25 +00:00
Jingwen Chen
76738b1c45 Merge "Revert "Exempt prebuilts/jdk and build/bazel/examples/java BUILD..."" 2021-08-13 05:18:56 +00:00
Treehugger Robot
0a036cee84 Merge "Update documentation for VisitDirectDeps" am: 1e6760fc71 am: b3eb5721f3 am: 287eaebd54 am: 090cc90d07 am: 420e5cbcf9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1786671

Change-Id: Ibdce2e72744aaec5bbc939932b04206a755e8090
2021-08-13 04:12:29 +00:00
Treehugger Robot
420e5cbcf9 Merge "Update documentation for VisitDirectDeps" am: 1e6760fc71 am: b3eb5721f3 am: 287eaebd54 am: 090cc90d07
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1786671

Change-Id: Ife9b24cccf356fadd160c7976e7302a826978c67
2021-08-13 03:58:30 +00:00
Treehugger Robot
3321c4355d Merge "Exempt subfolders of packages/apps/Music from bp2build BUILD file overriding." am: 6c00d24a1f am: 6e5245d884 am: de0b0848cc
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1794487

Change-Id: Ib2698cbb8c1ab3392bc349f6ccde69732394d02c
2021-08-13 03:52:14 +00:00
Treehugger Robot
de0b0848cc Merge "Exempt subfolders of packages/apps/Music from bp2build BUILD file overriding." am: 6c00d24a1f am: 6e5245d884
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1794487

Change-Id: I270cddc3c9d7be8a41e24822d5d8a91974233bb6
2021-08-13 03:31:59 +00:00
Treehugger Robot
6e5245d884 Merge "Exempt subfolders of packages/apps/Music from bp2build BUILD file overriding." am: 6c00d24a1f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1794487

Change-Id: Ic8affc6a4dd4da0f1e21b246868589fbe879387f
2021-08-13 03:16:31 +00:00
Treehugger Robot
6c00d24a1f Merge "Exempt subfolders of packages/apps/Music from bp2build BUILD file overriding." 2021-08-13 03:04:25 +00:00
Alex Humesky
e9b3738bad Revert "Exempt prebuilts/jdk and build/bazel/examples/java BUILD..."
Revert submission 1789607-java_android_ci

Reason for revert: doesn't work with lunch
Reverted Changes:
I6f82e4984:Exempt prebuilts/jdk and build/bazel/examples/java...
I75a61c24c:Define a java_runtime and toolchain bazel targets ...
I0f107d334:Add a java binary, a java library, and an android ...

Change-Id: I9869424dd44c03b33ac02ab38e4a3e0deee9eb07
2021-08-13 02:06:23 +00:00
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux
9077435c52 Add infrastructure to support PythonBinary am: a05a255eac am: 18adeee3c9 am: 1bf27c2cdb am: 901b31aa1d am: ba5976e888
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1793170

Change-Id: Ic28b051258917c5499e3175a368d870c7b2a46ce
2021-08-13 01:26:04 +00:00
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux
ba5976e888 Add infrastructure to support PythonBinary am: a05a255eac am: 18adeee3c9 am: 1bf27c2cdb am: 901b31aa1d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1793170

Change-Id: I4d3545af363cdbb39ce36f12ae9f4124a1b752e4
2021-08-13 01:10:54 +00:00
Treehugger Robot
090cc90d07 Merge "Update documentation for VisitDirectDeps" am: 1e6760fc71 am: b3eb5721f3 am: 287eaebd54
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1786671

Change-Id: I2c78fe80c39fe163ec3fea6ce2ec45b1bbac0d3e
2021-08-13 00:37:28 +00:00
Treehugger Robot
287eaebd54 Merge "Update documentation for VisitDirectDeps" am: 1e6760fc71 am: b3eb5721f3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1786671

Change-Id: Id1fc1180790061046a1907a24b7fdeb0b51e2544
2021-08-13 00:26:24 +00:00
Treehugger Robot
b3eb5721f3 Merge "Update documentation for VisitDirectDeps" am: 1e6760fc71
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1786671

Change-Id: I063185fe2439010155366a7af1087cf2d0e9dd98
2021-08-13 00:07:00 +00:00
Treehugger Robot
1e6760fc71 Merge "Update documentation for VisitDirectDeps" 2021-08-12 23:46:36 +00:00
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux
901b31aa1d Add infrastructure to support PythonBinary am: a05a255eac am: 18adeee3c9 am: 1bf27c2cdb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1793170

Change-Id: I28c7df0a02be9b79f8ac65f728eb2c17c8d830ef
2021-08-12 22:31:28 +00:00
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux
1bf27c2cdb Add infrastructure to support PythonBinary am: a05a255eac am: 18adeee3c9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1793170

Change-Id: I903a30e0e74bb7f8597556d10f475c4c3e3619a3
2021-08-12 22:16:35 +00:00
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux
18adeee3c9 Add infrastructure to support PythonBinary am: a05a255eac
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1793170

Change-Id: Iba029a30aaf1246c135d00341861b37e9628da7f
2021-08-12 22:01:44 +00:00