Commit graph

58759 commits

Author SHA1 Message Date
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
Vinh Tran
b01eb60c09 Convert av-types-aidl aidl_interface to Bazel
Change-Id: I1dfb0a58a8a9f9f4a1baeba73ccbb17d30ebd947
Test: b build //frameworks/av:av-types-aidl-cpp
Bug: 235113507
2022-09-06 23:04:23 +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
Colin Cross
b61d8c1d84 Merge "Make toolchain more compose-y" am: 6d89152f33
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2199545

Change-Id: Ic07ae6f60176438935456a0f6e98ef39300158c0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 16:02:23 +00:00
Colin Cross
6d89152f33 Merge "Make toolchain more compose-y" 2022-09-02 15:33:17 +00:00
Liz Kammer
43345e23da Remove system shared libs from non-bionic dep list
bionic system shared libraries only build for bionic platforms, so it is
safe to remove them from other platforms, preventing issues where
duplicate libraries are incorrectly identified in Bazel.

Test: go test soong tests
Change-Id: Idac27c49a464831f8aca02d561f41f98fc763337
2022-09-02 10:46:38 -04:00
Trevor Radcliffe
c9481feb47 Merge "Export RunBp2BuildTestCaseSimple() in testing.go" am: d6fdd16617 am: 5bcde4ec94
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2203335

Change-Id: I4640769e5ef0b862d97c4fcaa6e3c2d6ea4b475c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 14:10:44 +00:00
Treehugger Robot
793c74dfa1 Merge "Handle product config specific header_libs prop in cc bp2build" am: f20433b15f am: 45af5f1f11
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2201256

Change-Id: I3f8652cf4f0ff7b7a18422bef43741d9e0069148
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 14:09:37 +00:00
Trevor Radcliffe
5bcde4ec94 Merge "Export RunBp2BuildTestCaseSimple() in testing.go" am: d6fdd16617
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2203335

Change-Id: I7ac8c182a564b5955a3e60b2d919cc04de936e18
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 13:39:17 +00:00
Treehugger Robot
45af5f1f11 Merge "Handle product config specific header_libs prop in cc bp2build" am: f20433b15f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2201256

Change-Id: I798c772ae76c22aa876459da53e7a76bbb51be55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 13:38:27 +00:00
Trevor Radcliffe
d6fdd16617 Merge "Export RunBp2BuildTestCaseSimple() in testing.go" 2022-09-02 13:31:04 +00:00
Treehugger Robot
f20433b15f Merge "Handle product config specific header_libs prop in cc bp2build" 2022-09-02 13:02:04 +00:00
Zim
3c3b4165cb Enable aidl#generate_traces by default for Cpp
Test: Manual
Bug: 161393989
Change-Id: I0bbd42217c85e42b2a739b46bb2177186cfd40ed
2022-09-02 12:45:05 +01:00
Treehugger Robot
c821ce9d64 Merge "Fix module-file name collisions" am: c40694830b am: 5133f5f365
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2202605

Change-Id: I968a40054788417e2fd177410d883547eb4faffd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 01:46:44 +00:00
Treehugger Robot
5133f5f365 Merge "Fix module-file name collisions" am: c40694830b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2202605

Change-Id: I34735fe90502f84bb67ed9496a64657bad0958b6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 01:12:42 +00:00
Treehugger Robot
c40694830b Merge "Fix module-file name collisions" 2022-09-02 00:24:00 +00:00
Cole Faust
bcc3d05aba Fix module-file name collisions
Bazel doesn't allow a module and file with the same name.

Bug: 198619163
Test: Presubmits
Change-Id: Ie9731b627945d2ff221d3a5d08a32a5a172f9dcd
2022-09-01 15:20:00 -07:00
Yabin Cui
583547763a Merge "symbol_inject: add step to codesign Mach-O binaries." am: a73e672503 am: 09620a1b64
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2202664

Change-Id: I85f4d87d9b5d052f33cfdd88d94f7bd8f8859b30
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-01 21:53:29 +00:00
Treehugger Robot
cd9884fa35 Merge "Use CommonAttributes.Data for cc_test.data." am: 3636a06fe0 am: 00124c02c6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2202161

Change-Id: Id13de4e060dd33bd08078b3d111517bfb00907ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-01 21:53:19 +00:00
Zi Wang
0a8a129ee8 Handle product config specific header_libs prop in cc bp2build
Product variable header_libs is able to be converted.
Since static_libs and header_libs both use implementationDeps,
also added logic to make sure they both contribute to bazel
target.

Bug: 228314770
Test: m bp2build
Test: TestCcLibraryProductVariablesHeaderLibs in cc_library_conversion_test
Change-Id: I370fc75b666b3908b6ac5ed42bca5560f957fc42
2022-09-01 14:32:51 -07:00
Yabin Cui
09620a1b64 Merge "symbol_inject: add step to codesign Mach-O binaries." am: a73e672503
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2202664

Change-Id: Ieb45528648c0841799c1395726237941dd74d855
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-01 21:23:44 +00:00