Commit graph

58675 commits

Author SHA1 Message Date
Mårten Kongstad
06134d5396 Merge "Pass --sdk-extensions-{root,info} to metalava" am: 9be110d151 am: bcab1ba3de
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2167103

Change-Id: I8cf1bb8ee8b25117111e41faf25ba9c6fc2f58bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-08 06:58:54 +00:00
Mårten Kongstad
bcab1ba3de Merge "Pass --sdk-extensions-{root,info} to metalava" am: 9be110d151
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2167103

Change-Id: I0ba53812149fc7348f0fb53bc1ca123310ff21d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-08 06:29:56 +00:00
Mårten Kongstad
9be110d151 Merge "Pass --sdk-extensions-{root,info} to metalava" 2022-09-08 06:08:43 +00:00
Zimuzo Ezeozue
5358d1225f Merge "Enable aidl#generate_traces by default for Cpp" am: fbb35346eb am: 3ddb7933fa
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2203577

Change-Id: I95489b3a87a8542e29361bc9f534ecd2ecff38ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-08 02:15:51 +00:00
Zimuzo Ezeozue
3ddb7933fa Merge "Enable aidl#generate_traces by default for Cpp" am: fbb35346eb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2203577

Change-Id: Ib2db69a02fc005e5fe235196c99e53a8dbe40114
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-08 01:47:59 +00:00
Zimuzo Ezeozue
fbb35346eb Merge "Enable aidl#generate_traces by default for Cpp" 2022-09-08 01:13:29 +00:00
Usta (Tsering) Shrestha
6a19432597 Merge "Drop bootstrap.ninja.d" am: 9ba17e8702 am: 9cf505db23
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2194837

Change-Id: I2f61a62478e4a6d64c5a99513ab028a93790f836
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-07 23:46:45 +00:00
Usta (Tsering) Shrestha
9cf505db23 Merge "Drop bootstrap.ninja.d" am: 9ba17e8702
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2194837

Change-Id: Ib20e18f0ed7529362785aff2374bcd26650647b9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-07 23:17:08 +00:00
Christopher Parsons
db095347bb Merge "Remove USE_BAZEL_ANALYSIS" am: 1f039780e0 am: ad9c9a2d38
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2201557

Change-Id: I84f19f2f1f0492b4a2a8b654bcd3e7bcfba210a6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-07 23:00:38 +00:00
Usta (Tsering) Shrestha
9ba17e8702 Merge "Drop bootstrap.ninja.d" 2022-09-07 22:47:41 +00:00
Christopher Parsons
ad9c9a2d38 Merge "Remove USE_BAZEL_ANALYSIS" am: 1f039780e0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2201557

Change-Id: I568cf0bcef36c670e350eeb79ca31b64915778c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-07 22:20:27 +00:00
Christopher Parsons
1f039780e0 Merge "Remove USE_BAZEL_ANALYSIS" 2022-09-07 21:54:47 +00:00
Romain Jobredeaux
a43fe11648 Keep allowlist alphabetized am: 3d516cdb07 am: 69483de6d0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2208037

Change-Id: I6b21d9b959c640d252d28bd5308748a4fdfb58d5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-07 20:55:28 +00:00
Romain Jobredeaux
69483de6d0 Keep allowlist alphabetized am: 3d516cdb07
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2208037

Change-Id: Ia97e5c1bb8e81c8fbeec8be0b9e5cf83e3b2b69e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-07 20:27:22 +00:00
Chris Parsons
1bb58da17c Remove USE_BAZEL_ANALYSIS
Use --bazel-mode-dev instead.

Test: Treehugger
Bug: 244309479
Change-Id: I570d02651eea92375cd96efbeb8d986a9495e1ed
2022-09-07 14:58:03 -04:00
Romain Jobredeaux
3d516cdb07 Keep allowlist alphabetized
Change-Id: I6ba977e4a705a3ba516fd23dcf5ceaf354d7e892
2022-09-07 14:28:31 +00:00
Mårten Kongstad
802ae0fdd3 Pass --sdk-extensions-{root,info} to metalava
Teach soong to pass metalava the two new command line arguments
--sdk-extensions-root <dir> and --sdk-extensions-info <file> when
generating the API levels file (--generate-api-levels api-versions.xml).

The directory hierarcy in a droiddoc_exported_dir module has special
meaning, e.g. extensions/1/public/*-stubs.jar are the mainline module
stubs containing the public API for SdkExt version 1. Update the logic
where the directories are scanned for android.jar files to locate the
SDK extension jars (extensions/<int>/public/*-stubs.jar).

Also introduce a new field on droidstubs properties
(Extensions_info_file) to set the value of --sdk-extensions-info.

Note: if Extensions_info_file is not set, neither
--sdk-extensions-root or --sdk-extensions-info will be passed to
metalava.

Bug: 228828986
Test: go test -run TestDroidstubsWithSdkExtensions ./java
Test: m sdk dist && grep -e from= -e module= out/dist/data/api-versions.xml # needs APIs to be listed in the info file
Change-Id: I682e34d328fc93d3eded8565ffee40961307901a
2022-09-07 16:13:49 +02:00
Chih-hung Hsieh
cc8c02e34d Merge "No clang-tidy by default for external and vendor" am: cedd4117a8 am: 0d6147b04b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2199548

Change-Id: I412ad1aed835448aedf4846b5d4b3b2e6025b00f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-07 01:52:25 +00:00
Kiyoung Kim
d06ececc29 Merge "Export API imported library list to Makefile" am: 9bdd218281 am: 07bbfbdbe1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2201281

Change-Id: I02f070decfb6cf7296305daf1f21df29dd1f83cb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-07 01:52:11 +00:00
Chih-hung Hsieh
0d6147b04b Merge "No clang-tidy by default for external and vendor" am: cedd4117a8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2199548

Change-Id: I3cce1a68836777beb4d120c2ce7aea513ad2cc9d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-07 01:35:56 +00:00
Chih-hung Hsieh
cedd4117a8 Merge "No clang-tidy by default for external and vendor" 2022-09-07 01:27:38 +00:00
Kiyoung Kim
07bbfbdbe1 Merge "Export API imported library list to Makefile" am: 9bdd218281
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2201281

Change-Id: I81f875e78d4f1ab818b94cc11fc1453a7b55c654
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-07 01:22:54 +00:00
Kiyoung Kim
9bdd218281 Merge "Export API imported library list to Makefile" 2022-09-07 00:48:15 +00:00
Chih-Hung Hsieh
1a46753cbf No clang-tidy by default for external and vendor
* Most tidy-external-* and tidy-vendor-* rules
  are no longer generated. But external/bcc,
  external/android-clat, and some vendor/...
  projects still have tidy- rules because they
  have explicitly set tidy:true in .bp files.
* Some hardware/* directories are third-party
  projects and also disabled by default.

Bug: 244631413
Test: presubmit; make tidy-soong_subset
Change-Id: I17f625e6270de81a111d9cd382fbc39f34edf924
2022-09-06 13:59:33 -07:00
Trevor Radcliffe
5172da4aeb Merge "cc bp2build for sysprop_library modules" am: a355be226f am: 64ca7d889d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2202837

Change-Id: Id34c2ab74991c8613741b46c9913ca08686eeee9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 20:12:55 +00:00
Yi Kong
b441895783 Merge "Do not enable global ThinLTO for tests" am: a4631f41cd am: 7bdadca326
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2206380

Change-Id: Id3a6c308a9d3a717dd16a2b4e8312e152c17aa65
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 20:12:46 +00:00
Treehugger Robot
7b2411d7b9 Merge "Remove gen-kotlin-build-file.py from Bp2buildModuleDoNotConvertList" am: bf5fa97bb6 am: cd88aabda9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2203916

Change-Id: Ie39efcaa6336555bf58f077a93416e51293e9889
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 20:12:37 +00:00
Trevor Radcliffe
64ca7d889d Merge "cc bp2build for sysprop_library modules" am: a355be226f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2202837

Change-Id: I36b490ac1a1b450f893eea042e0ad0d3246be3e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 19:43:54 +00:00
Yi Kong
7bdadca326 Merge "Do not enable global ThinLTO for tests" am: a4631f41cd
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2206380

Change-Id: I498061b1a48db2119cff9d228dfb23bad6447d46
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 19:43:44 +00:00
Treehugger Robot
cd88aabda9 Merge "Remove gen-kotlin-build-file.py from Bp2buildModuleDoNotConvertList" am: bf5fa97bb6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2203916

Change-Id: If02cdaf9c20dceb5935931020e93d0c58813e27f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 19:43:23 +00:00
Trevor Radcliffe
a355be226f Merge "cc bp2build for sysprop_library modules" 2022-09-06 19:27:22 +00:00
Yi Kong
a4631f41cd Merge "Do not enable global ThinLTO for tests" 2022-09-06 19:03:54 +00:00
Treehugger Robot
bf5fa97bb6 Merge "Remove gen-kotlin-build-file.py from Bp2buildModuleDoNotConvertList" 2022-09-06 18:54:30 +00:00
Yi Kong
56fc1b6902 Do not enable global ThinLTO for tests
Tests are not shipped, no need to spend extra CPU cycles optimising them
during build.

Test: GLOBAL_THINLTO=true m
Bug: 169004486
Change-Id: I66ede9c01d43b574a7fe9f74f0bc6ba97f51be06
2022-09-06 16:24:00 +08:00
Cole Faust
8092488506 Merge "Support arch features in bp2build" am: 0228d27943 am: 1b0b37c564
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2172555

Change-Id: Ib4b9b1c534bcb11e0a3128da5641f3492d8c52aa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 03:33:32 +00:00
Cole Faust
1b0b37c564 Merge "Support arch features in bp2build" am: 0228d27943
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2172555

Change-Id: I0b3c7ac81733b3d54d57f9cfffb3134aba448a71
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 03:02:40 +00:00
Cole Faust
0228d27943 Merge "Support arch features in bp2build" 2022-09-06 02:13:59 +00:00
Cole Faust
c843b99b71 Support arch features in bp2build
Bug: 189972518
Test: New soong test
Change-Id: I05d77c8f63ffe6697d8e0300226864658055e116
2022-09-02 15:20:54 -07:00
Sam Delmerico
370f703987 Merge "jacoco libs dependency for instrumented libraries" am: 3dca115dda am: 882253d037
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2201682

Change-Id: I56028dbede24a27de8388aa55c53234c7c794472
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 20:26:13 +00:00
Alix Espino
18c141bc96 Merge "Handle filename variations for prebuilt_etc in bp2build" am: 8c7efde76c am: 68bad6db31
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2165863

Change-Id: Iec9e485f6e5a87f54d8536e025cfd7ac596c6eb2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 20:25:59 +00:00
Sam Delmerico
882253d037 Merge "jacoco libs dependency for instrumented libraries" am: 3dca115dda
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2201682

Change-Id: I32fdfd51aa2f87512e7d85d30528a50c9602e605
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 19:39:24 +00:00
Alix Espino
68bad6db31 Merge "Handle filename variations for prebuilt_etc in bp2build" am: 8c7efde76c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2165863

Change-Id: Ia6cc215a86daba8e241461e60400f3b4c106ae04
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 19:39:09 +00:00
Sam Delmerico
3dca115dda Merge "jacoco libs dependency for instrumented libraries" 2022-09-02 18:50:29 +00:00
Alix Espino
8c7efde76c Merge "Handle filename variations for prebuilt_etc in bp2build" 2022-09-02 18:41:11 +00:00
Trevor Radcliffe
ad3d123fb6 cc bp2build for sysprop_library modules
This CL implements bp2build functionality for the cc outputs of
sysprop_library modules. cc_* modules depending on sysprop sources
will be handled in a later CL.

Bug: 244439349
Test: b build //system/libsysprop/srcs/...
Test: Inspect BUILD.bazel
Test: Unit tests
Change-Id: I6fa20661b984223347480c9afe0885b5db5a2807
2022-09-02 18:27:39 +00:00
Treehugger Robot
f0472e7a4a Merge "Remove system shared libs from non-bionic dep list" am: d75966e7db am: 88e5cb05ce
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2176083

Change-Id: I1c05c219e753115fd58d30d5b3fa6d77f1090281
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 17:43:25 +00:00
Cole Faust
e89f91df44 Remove gen-kotlin-build-file.py from Bp2buildModuleDoNotConvertList
Its issue was fixed in aosp/2202605

Bug: 198619163
Test: Presubmits
Change-Id: Ic3878ea1280f8f1ebab1b4c2423e07d795886c94
2022-09-02 10:26:50 -07:00
Treehugger Robot
88e5cb05ce Merge "Remove system shared libs from non-bionic dep list" am: d75966e7db
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2176083

Change-Id: I95049997fcc24a9b39e2a33410dd191089a05cbe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 17:11:48 +00:00
Treehugger Robot
d75966e7db Merge "Remove system shared libs from non-bionic dep list" 2022-09-02 16:52:43 +00:00
Colin Cross
d98bfeff47 Merge "Make toolchain more compose-y" am: 6d89152f33 am: b61d8c1d84
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2199545

Change-Id: Icf2c9324ba57b61989d26e94ce8c173bb8d7c46d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 16:34:30 +00:00