Commit Graph

8199 Commits

Author SHA1 Message Date
Colin Cross
883b2d03d1 Merge "Make installable arch-variant for cc modules" am: f87065fedb am: 10f31785fa am: 1dc06ad960 am: 77450557b7 am: dffeb5dd25
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1874481

Change-Id: If252e5703f20f03446990f41c2ea846f89483849
2021-10-29 16:30:23 +00:00
Colin Cross
f87065fedb Merge "Make installable arch-variant for cc modules" 2021-10-29 14:58:03 +00:00
Treehugger Robot
65388ec852 Merge "Make a pass over our codebase cleaning up non-precise / non-inclusive language." am: c9e85ca825 am: e68637799b am: 5bb9910ea6 am: df50b4ba4b am: 3be5075c71
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1871701

Change-Id: I744d6e359d05f169084b7844732fcc3a2870b9cf
2021-10-28 22:11:33 +00:00
Treehugger Robot
c9e85ca825 Merge "Make a pass over our codebase cleaning up non-precise / non-inclusive language." 2021-10-28 20:51:17 +00:00
Colin Cross
1e7cfdea4a Make installable arch-variant for cc modules
libc's native_bridge variant needs to be installable: false, make
the installable property arch-variant.

Bug: 204136549
Test: m checkbuild
Change-Id: I8e0eaed2169e89520b07bb0326bb97ac0b4a70ac
2021-10-28 13:26:45 -07:00
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux
67854187d7 cc_prebuilt_library_shared converted via bp2build am: 7fa0696eb7 am: 66ca6a87ff am: 5d5754f774 am: 46c1550dac am: 356f1b5d22
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1871615

Change-Id: Id8120b1c2b948a8433a5fb450ed349418c98a6ec
2021-10-28 20:00:15 +00:00
Joe Onorato
b4638c1ac3 Make a pass over our codebase cleaning up non-precise / non-inclusive language.
Test: treehugger
Bug: 204369779
Change-Id: I6e63cae824d323535cdb14b493edd868df47738d
2021-10-28 10:32:07 -07:00
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux
7fa0696eb7 cc_prebuilt_library_shared converted via bp2build
Bug: b/203699063
Test: bp2build/cc_prebuilt_library_shared_test.go
Test: USE_BAZEL_ANALYSIS=1 m nothing
Test: mixed_{libc,droid}.sh
Change-Id: I4c58224e88c31507a4b285f8c55bdc066bd47232
2021-10-28 11:04:50 -04:00
Chih-hung Hsieh
252613501f Merge "Do not add .tidy files as RBE link inputs" am: 4dceb3705f am: 6e1b62d2b1 am: 9e2cb93d0a am: 9232e1f658 am: dbc8d2b4ac
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1869384

Change-Id: Ie96d5890ce772325068fca88d5db237c59193eb3
2021-10-27 22:02:13 +00:00
Chih-hung Hsieh
4dceb3705f Merge "Do not add .tidy files as RBE link inputs" 2021-10-27 20:29:04 +00:00
Liz Kammer
106d3eeaf6 Merge "bp2build: Handle export_generated_header property" am: cc910df597 am: 3c2c46f492 am: 1556173806 am: eb31a46cb1 am: fc4baed432
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1863256

Change-Id: I117f6309b1b33dfcb0c3b13ad8a0e356f95f7130
2021-10-27 16:58:26 +00:00
Liz Kammer
cc910df597 Merge "bp2build: Handle export_generated_header property" 2021-10-27 15:07:03 +00:00
Steven Moreland
53662c64f3 Merge "Add health to vndk vendor variant list" am: bc909df732 am: 62dc52bb85 am: 83bb70d062 am: 75b7cb8e3d am: 61c03cdc28
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1557255

Change-Id: I45a435e52124e47a7dc50ad1977df3772d432620
2021-10-26 23:58:24 +00:00
Steven Moreland
bc909df732 Merge "Add health to vndk vendor variant list" 2021-10-26 22:33:31 +00:00
Nick Desaulniers
9f963c5a1c remove support for *.mc files am: dc24d26093 am: 5e884723e3 am: e6ee25a2df am: 8dea2bcf32 am: 4766dc2b3f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1870523

Change-Id: I5a6f30cb1c50a98d4f4c80c80df24baa05396068
2021-10-26 22:26:10 +00:00
Nick Desaulniers
c42ae48370 remove support for *.rc files am: 16bc50a128 am: 4e56d1ff60 am: 0e50b37e2b am: b2494f0506 am: 1e24d6a428
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1870522

Change-Id: Ia50e4a711c76cfee812371483a8e00db73ccb635
2021-10-26 22:26:08 +00:00
Arthur Ishiguro
6941b9dbc0 Add sensors AIDL interface
Bug: 195593357
Test: Presubmit
Change-Id: Ie3947594a35c829245535f04937b1ad7f3798cde
2021-10-26 20:24:07 +00:00
Liz Kammer
e6583482a8 bp2build: Handle export_generated_header property
The generated_header property resides in BaseCompilerProperties, while
export_generated_header resides in BaseLinkerProperties. Previously
bp2build handled these property structs separately; however, these two
related properties residing in separate structs requires restructuring
the code to allow access to both BaseCompilerProperties and
BaseLinkerProperties for a single axis/configuration combination to
resolve which generated headers are exported/not for the
axis/configuration..

Test: go test soong tests
Test: build/bazel/ci/bp2build.sh
Change-Id: Id150003637fd19d87e8dc5d6941e9f36dc4031dd
2021-10-26 15:10:41 -04:00
Nick Desaulniers
dc24d26093 remove support for *.mc files
We've also removed the last consumer of .mc files in aosp/1867048
(external/mdnsresponder/).

Bug: 203794880
Test: lunch aosp_cf_x86_64_phone-userdebug && m
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: I2883a04d04b099273261d76319261d0857aa0300
2021-10-26 11:38:37 -07:00
Nick Desaulniers
16bc50a128 remove support for *.rc files
We're now packaging llvm-windres (aosp/1870074) which can be used as a
substitute for GNU binutils' windres, but we've also removed the last
consumer of .rc files in aosp/1867048 (external/mdnsresponder/).

In the worst case, we can bring back support for .rc files but instead
process them with llvm-windres.

Bug: 203794880
Test: lunch aosp_cf_x86_64_phone-userdebug && m
Change-Id: I30a873537e004b46a87191a932d076a89463c873
2021-10-26 11:32:36 -07:00
Paul Duffin
87770b6e85 Merge "Dedup use of "prebuilt_"" am: 84e644ada0 am: 6df1c9c190 am: 28537eb8db am: 31f010f152 am: b29596972a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1870489

Change-Id: I98c4cec30615e4bfbc3ac44e8c22787025184841
2021-10-26 16:45:25 +00:00
Paul Duffin
9804da0544 Dedup use of "prebuilt_"
Bug: 177893770
Test: m nothing
Change-Id: I664ee4d9c3aafda3de0a3f8985ee23f25db38680
2021-10-26 10:43:23 +01:00
Gabriel Biren
7c2c7ee00d Merge "Add android.hardware.wifi.supplicant-V1-ndk to VNDK list." am: cbab07b45f am: ae3cdab066 am: 01db2f61a7 am: d52ca4a62b am: 4f42f574a9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1859860

Change-Id: I2c666848b72c661a9ca492aedcdc1e8cfe0d46e2
2021-10-26 05:55:42 +00:00
Gabriel Biren
cbab07b45f Merge "Add android.hardware.wifi.supplicant-V1-ndk to VNDK list." 2021-10-26 04:43:57 +00:00
Yifan Hong
932920f403 Add health to vndk vendor variant list
Test: pass
Bug: 177269435

Change-Id: I40841daba4e52f65a27f5ed35b2731afb9a26a45
2021-10-25 20:22:11 -07:00
Gabriel Biren
f355d3c5ae Add android.hardware.wifi.supplicant-V1-ndk to VNDK list.
Bug: 196235436
Test: m
Change-Id: Ifc23ca36423de0a842e09120e783f6e8dfc807c3
2021-10-25 20:27:35 +00:00
Chih-Hung Hsieh
3bb934f0ad Do not add .tidy files as RBE link inputs
* RBE adds implicit dependent files as inputs
  and creates too long commands.
* Adds .tidy files as validation paths.
* Change type of tidyFiles to WritablePaths.

Bug: 203577539
Test: lunch aosp_cf_arm64_phone-userdebug; USE_RBE=true WITH_TIDY=1 make
Test: USE_RBE=true WITH_TIDY=1 mm in external/skia
Change-Id: I5fc9d6f8c9c58abcd3721ca9fbae1bc785e4e609
2021-10-25 12:24:30 -07:00
Yi Kong
3f18ad6cd9 Do not build tests with ThinLTO am: 85d7297318 am: a8662675e0 am: 27a412e668 am: a916324621 am: 9807af7ff3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1866896

Change-Id: I60cf42c80c267a411ee249d4bf7fa63aabd78e28
2021-10-25 18:45:00 +00:00
Yi Kong
85d7297318 Do not build tests with ThinLTO
There's not a great return on investment for spending additional
compilation/link time on tests that may only be run once or very few
times (as compared to actual library code that ships and is run orders
of magnitude more times).

Bug: 195134194
Bug: 203737712
Test: m GLOBAL_THINLTO=true dist device-tests platform_tests
Change-Id: I7149c4140f7c52b22bedbe322f1bf2c81f7ad66b
2021-10-24 17:01:43 +08:00
Treehugger Robot
6dfb9451be Merge "Rewrite macOS SDK selection" am: 1c6de4bdac am: bbe2e6c750 am: 0e26bc9ee3 am: 7e535d28c0 am: 0e5b2274cd
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1864059

Change-Id: Ic75879dc8492f5b613e990830a167c7304e78398
2021-10-20 23:49:03 +00:00
Treehugger Robot
1c6de4bdac Merge "Rewrite macOS SDK selection" 2021-10-20 22:24:46 +00:00
Liz Kammer
fd8ea2f87e Merge "bp2build: Add support for cc_binary." am: 2dafba7da9 am: cba4259f19 am: 98eeaad1e6 am: a9aa7923f8 am: 832e8c1833
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1844462

Change-Id: I4f95c155048514e714a811659ca1c2d03705ba35
2021-10-20 15:27:13 +00:00
Liz Kammer
2dafba7da9 Merge "bp2build: Add support for cc_binary." 2021-10-20 14:02:39 +00:00
Dan Willemsen
7368d86a20 Rewrite macOS SDK selection
Modern Xcode versions only have a single macOS SDK installed anymore, so
we don't need to iterate through our supported versions, only check
whether the current version is supported.

This also makes it so that we can specify "11" (or soon, "12") to
specify all 11.x SDKs, instead of having to update our supported list
multiple times a year. This matches previous years that had multiple
patch releases on 10.14.y, 10.15.y, etc.

Bug: 203607969
Test: build on Mac, changing the supported SDK list
Change-Id: I42715f7e8dfec811de440a435927c14c742dede9
2021-10-19 21:43:41 -07:00
Christopher Parsons
0502b6f4a1 Merge "Add OS to configuration key in mixed builds" am: c0ed1f653f am: bdf745fa16 am: cbd3804df2 am: eeb575cf4b am: c9dfdff54b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1858160

Change-Id: I9cc52817b1e8d700bbdda07718476a3f6d54b947
2021-10-19 22:10:28 +00:00
Liz Kammer
f58faff094 Merge "bp2build include generated hdrs in all src splits" am: 2ec92fc0a0 am: bc57abcb55 am: 9025c634b2 am: 0e9e7e811e am: 31c187a398
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1862913

Change-Id: Ibe9f13e163dd6163b52ea78bbbd47582e9f22501
2021-10-19 22:10:10 +00:00
Christopher Parsons
0a74bdbec0 Merge "Add x86_host vars to config.bzl" am: a8b37dd7f1 am: 5d065e7627 am: 356bae90a2 am: fe5503dcd3 am: 07ea6f4a1c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1858395

Change-Id: I57a5c03e1f6fecf5a7775fbe98e216a45de381ec
2021-10-19 22:06:53 +00:00
Trevor Radcliffe
89d025340a Allow for the installation of binaries in xbin am: 0dbe615ff4 am: 7e476bc55c am: 44159cfb22 am: de8ef6ecee am: e4d8ac307a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1861933

Change-Id: I8878b72bb24f05fa44662bc5329a68c08a417186
2021-10-19 21:36:23 +00:00
Christopher Parsons
c0ed1f653f Merge "Add OS to configuration key in mixed builds" 2021-10-19 20:57:47 +00:00
Chris Parsons
787fb36189 Add OS to configuration key in mixed builds
This also removes the special-case filegroup from mixed builds
buildroot; no special handling is required. Since we're currently
hardcoding linux_x86_64 as our host platform, it should be fine
to continue assumping that hardcoded host for now.

Test: USE_BAZEL_ANALYSIS=1 m adbd
Change-Id: I35509f4eb33ba7a243fab4c34b35958f6f2fceab
2021-10-19 16:55:52 -04:00
Liz Kammer
2ec92fc0a0 Merge "bp2build include generated hdrs in all src splits" 2021-10-19 20:51:00 +00:00
Christopher Parsons
a8b37dd7f1 Merge "Add x86_host vars to config.bzl" 2021-10-19 20:48:54 +00:00
Trevor Radcliffe
0dbe615ff4 Allow for the installation of binaries in xbin
su needs to be installed in xbin, and these changes modify
Soong to allow for this.

Fixes: 202405540
Test: Confirmed that binary was dropped into xbin
Change-Id: Ib664dc1255cd4d9049ac212f79cc53d5038cfcc7
2021-10-19 19:44:13 +00:00
Liz Kammer
2b8004b1ef bp2build: Add support for cc_binary.
Bug: 197920036
Test: build/bazel/ci/bp2build.sh
Change-Id: I2c4200967653af15a330ab8cbaf796b70d43f32d
2021-10-19 14:12:39 -04:00
Liz Kammer
ae3994ed4c bp2build include generated hdrs in all src splits
Currently generated headers are only included in the srcs split;
however, if c or assembly sources depend on the headers, the
dependendency is lacking and can cause non-deterministic failures.

Test: build/bazel/ci/bp2build.sh
Change-Id: Ic354c88300a5fb1b85241f68889e904c33a81488
2021-10-19 14:09:49 -04:00
Chris Parsons
3b1f83d076 Add x86_host vars to config.bzl
Test: USE_BAZEL_ANALYSIS=1 m adbd
Test: Manually verified config.bzl contains various x86_host flags after
bp2build.
Test: Unit tests

Change-Id: Ie9201ea2be4cd1c6659bea088a797cedbae37403
2021-10-19 12:18:13 -04:00
Ivan Lozano
7050fe819b Merge "rust: Package shared libraries with fuzzer zips" am: e95b860598 am: 30da767581 am: d8f882b769 am: 7b1c01d8e3 am: ce7ac0cae1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1858393

Change-Id: I5ff919a7dbc2cafe42afd0dbb8ca052ba27a32f1
2021-10-15 21:02:26 +00:00
Ivan Lozano
e95b860598 Merge "rust: Package shared libraries with fuzzer zips" 2021-10-15 19:33:53 +00:00
Liz Kammer
710c680b4b Merge "Update version_script to be handled as linkopt" am: 51da93381c am: ef24720686 am: f396b8c670 am: 15395528d5 am: fb5be3c9be
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1844461

Change-Id: I926a94f5a14b570a81ea2bc0dd68c7bf356aed90
2021-10-15 15:52:37 +00:00
Liz Kammer
51da93381c Merge "Update version_script to be handled as linkopt" 2021-10-15 14:22:27 +00:00