Commit graph

47013 commits

Author SHA1 Message Date
Christopher Parsons
58a2eec1a7 Merge "bp2build: split full_cc_library into shared/static" 2021-12-06 22:32:49 +00:00
Treehugger Robot
d7f163faef Merge "[cc/sanitize] Re-enable new pass manager for fuzzer targets" am: 2a7092927c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1908971

Change-Id: I0fb2a77805c1426cdf1cc11bfe66ea4eac2ebc98
2021-12-06 21:42:56 +00:00
Yi Kong
f73d8d8283 Add "-Z debug-info-for-profiling" flag for AutoFDO am: 203e6f4115
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1911932

Change-Id: Ia0b46d81d93adf1a1dba88459316f616563ad8e1
2021-12-06 21:42:34 +00:00
Treehugger Robot
2a7092927c Merge "[cc/sanitize] Re-enable new pass manager for fuzzer targets" 2021-12-06 21:40:11 +00:00
Chris Parsons
77acf2e5c1 bp2build: split full_cc_library into shared/static
Test: mixed_droid.sh in conjunction with rule changes
Test: bp2build.sh
Change-Id: If0577065fd39a0446eab16b62c15204d43207e19
2021-12-06 14:11:40 -05:00
Yi Kong
203e6f4115 Add "-Z debug-info-for-profiling" flag for AutoFDO
Test: presubmit
Bug: 195134194
Change-Id: I0133ce99e2d5f415e553f7ae8e2ff93c739d6a32
2021-12-07 02:43:20 +08:00
Artur Satayev
25f5783263 Merge "Add ModuleWithMinSdkVersionCheck type." am: a4fc08d204
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1907860

Change-Id: I98190760637aaaff29747185f299cf0657828c66
2021-12-06 17:13:11 +00:00
Artur Satayev
a4fc08d204 Merge "Add ModuleWithMinSdkVersionCheck type." 2021-12-06 16:53:28 +00:00
Liz Kammer
03b6cf4e30 Merge "bp2build: support full/lite protos in cc libs" am: 85c0097d69
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1838061

Change-Id: Idc033f9d3a76a4664cfbb8314fb7a8d2b5e9ed9a
2021-12-06 15:04:51 +00:00
Liz Kammer
85c0097d69 Merge "bp2build: support full/lite protos in cc libs" 2021-12-06 14:46:34 +00:00
Jingwen Chen
78fd87f25a Add descriptions to soong_build actions.
[  0% 0/5 ] generating Soong docs at out/soong/docs/soong_build.html
0:03 analyzing Android.bp files and generating ninja file at out/soong/build.ninja
0:03 converting Android.bp files to BUILD files at out/soong/bp2build
0:03 generating the Soong module graph at out/soong/module-graph.json
0:03 generating the Soong module graph as a Bazel workspace at out/soong/queryview
0:03 generating Soong docs at out/soong/docs/soong_build.html

Test: m soong_docs json-module-graph bp2build queryview nothing
Change-Id: I33abb8828ead9ef999ffa1a6c9c4b016957c6dd1
2021-12-06 13:29:43 +00:00
Jingwen Chen
8d6f36b4b1 Merge "Allowlist //build/soong/cc/{ndkstubgen,symbolfile}." am: a86cbd4a49
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1906372

Change-Id: I3347ebba289a6ee7d5f9e48fbc6168491d8141c5
2021-12-06 12:17:57 +00:00
satayev
b3fd411465 Add ModuleWithMinSdkVersionCheck type.
This is to help following refactor for individual modules to have their
own version of checking where needed.

For example, apk in apex may want to enforce it's own version of
CheckMinSdkVersion.

Bug: 205923322
Test: presubmit
Change-Id: Ia2fad6c52af39e21f65385bcb283f1e3adab5548
2021-12-06 12:05:48 +00:00
Jingwen Chen
a86cbd4a49 Merge "Allowlist //build/soong/cc/{ndkstubgen,symbolfile}." 2021-12-06 11:36:52 +00:00
Jiyong Park
88589cf238 Merge "Add future_updatable to the apex module" am: 103d511117
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1904291

Change-Id: Ic9b6a4acf99721058aae56c8f3e4d34869e2ba9d
2021-12-06 10:12:00 +00:00
Jiyong Park
103d511117 Merge "Add future_updatable to the apex module" 2021-12-06 09:56:52 +00:00
Yi Kong
5ded619f3e addSamplingProfileGatherFlags is no longer needed
We already add the "-fdebug-info-for-profiling" flag globally by default.
Besides, Sampling PGO does not need additional target-specific build
flags, unlike instrumentation PGO.

This is preparation to separate out sampling pgo into a separate module.
NFCI.

Test: presubmit
Change-Id: Icb28a98c021a78db25d8cb5ca9694ed6b7367a8d
2021-12-06 08:14:00 +00:00
Jiyong Park
f402058d2c Add future_updatable to the apex module
The new property is used to mimic some of the build behaviors that
currently are applied only when an APEX is `updatable: true`. This
property is helpful to minimize the sudden impact (e.g. change in size)
when an APEX becomes updatable.

Currently, the behavior that this property mimics is the disabling of
the size optimization.

Bug: 207336449
Test: m
Change-Id: I500306afa1221625fda3e89a8d12d5d341791a1f
2021-12-06 02:18:13 +00:00
Chih-Hung Hsieh
f6ca1b961b object files depend only on NDK headers
* shared libraries and binaries can depend on NDK share libraries

Bug: 208310402
Test: WITH_TIDY=1 make tidy-soong
Test: WITH_TIDY=1 make droid
Change-Id: I88ca8555c62d5ca49e36ca089749722166afec30
2021-12-05 18:10:13 -08:00
Cole Faust
a4b3db3d9b Merge "Support passing input variables to the product configuration" am: ff4a061e76
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1908370

Change-Id: I22a1f2219a462daf104e512bf8199b39dc01c520
2021-12-05 04:05:50 +00:00
Cole Faust
ff4a061e76 Merge "Support passing input variables to the product configuration" 2021-12-05 03:43:24 +00:00
Chih-hung Hsieh
60b3edb494 Merge "No NDK libraries in clang-tidy pathDeps" am: 23d5d986fe
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1906094

Change-Id: I72c0cfadca333560fba7d62e70b760b233b505dc
2021-12-03 23:21:50 +00:00
Treehugger Robot
66134f3301 Merge "Update RustDefaultVersion to 1.57.0" am: f8646fc937
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1910136

Change-Id: Iac29f7c2ea4f44a2c1534875069d9eecc4787cf6
2021-12-03 23:20:56 +00:00
Chih-hung Hsieh
23d5d986fe Merge "No NDK libraries in clang-tidy pathDeps" 2021-12-03 23:14:18 +00:00
Treehugger Robot
f8646fc937 Merge "Update RustDefaultVersion to 1.57.0" 2021-12-03 23:04:54 +00:00
Jiakai Zhang
49b1eb6b04 Add ART boot image profile to the ART APEX.
We will need the profile when we generate the primary boot image on
device.

Bug: 203492478
Test: Run `banchan com.android.art x86_64 && m` and see
  `$ANDROID_PRODUCT_OUT/apex/com.android.art/etc/boot-image.prof`.
Test: Run `lunch aosp_cf_x86_64_phone-userdebug && m` and see both
  `$ANDROID_PRODUCT_OUT/apex/com.android.art/etc/boot-image.prof` and
  `$ANDROID_PRODUCT_OUT/system/etc/boot-image.prof`, in different
  sizes.
Test: Start Cuttlefish with the built image and see both
  `/apex/com.android.art/etc/boot-image.prof` and
  `/system/etc/boot-image.prof` on device.
Change-Id: Id879dc49b234133dfbb9563814328661a1f4a6c0
2021-12-03 20:02:10 +00:00
Chris Wailes
284b7f32cc Update RustDefaultVersion to 1.57.0
Change-Id: I90e03f864541175e13701184ee74a89ffd03790b
2021-12-03 12:00:59 -08:00
Daniel Norman
c046926ac5 Merge "Forbid updatable: true on vendor APEXes." am: 7260025670
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1908986

Change-Id: Ib8b27c802427456f523c7219ecf51df0b9ff53da
2021-12-03 18:17:39 +00:00
Spandan Das
4b669af97c Merge "Set targetsdkversion to future level if TARGET_BUILD_APPS is not empty" am: 16ce4801ef
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1907152

Change-Id: I16369493062a034e75dbb38a960ab255eee46da9
2021-12-03 18:17:29 +00:00
Liz Kammer
5cbe6d49b6 Merge "Support a quieter bp2build" am: 8db8140b77
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1894884

Change-Id: Ia943f7c07a049447f9bd2cbe4489431c6409e425
2021-12-03 18:17:15 +00:00
Daniel Norman
7260025670 Merge "Forbid updatable: true on vendor APEXes." 2021-12-03 18:12:16 +00:00
Spandan Das
16ce4801ef Merge "Set targetsdkversion to future level if TARGET_BUILD_APPS is not empty" 2021-12-03 18:08:41 +00:00
Liz Kammer
8db8140b77 Merge "Support a quieter bp2build" 2021-12-03 17:54:47 +00:00
Usta Shrestha
5bdf4a6443 Merge "Removal of unused methods AppendProperties and PrependProperties from topDownMutatorContext" am: fdee90d925
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1909336

Change-Id: Iaccb6df7c660e8f18a8a86a57692638fd20b4be7
2021-12-03 16:02:09 +00:00
Usta Shrestha
fdee90d925 Merge "Removal of unused methods AppendProperties and PrependProperties from topDownMutatorContext" 2021-12-03 15:42:53 +00:00
Yu Liu
4c77b9c0c8 Merge "Support filename and sub_dir attributes in sh_binary" am: 0a84e93b7f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901173

Change-Id: I26e4513bd9cef9ae8c314318ba175b373b4046f3
2021-12-03 01:22:08 +00:00
Jingwen Chen
89e2188d49 Allowlist //build/soong/cc/{ndkstubgen,symbolfile}.
This contains the tool to generate stub libraries.

Bug: 208215661
Bug: 207812332

Test: b run //build/soong/cc/ndkstubgen
Change-Id: Id48d74381457e0a62aca0ed7f8a9367886863bfd
2021-12-03 01:13:40 +00:00
Yu Liu
0a84e93b7f Merge "Support filename and sub_dir attributes in sh_binary" 2021-12-03 01:04:04 +00:00
Cole Faust
864028a71b Support passing input variables to the product configuration
Since rblf_env / rblf_cli are not typed properly, accept
input variables via a file so that they can be converted
with the correct types.

Bug: 201700692
Test: go test
Change-Id: I9b56067cfe396d1bcd8d62c353ff222dd61a6c9f
2021-12-02 16:19:19 -08:00
Yu Liu
b302455879 Support filename and sub_dir attributes in sh_binary
Test: test by building system/timezone/apex:com.android.tzdata
Change-Id: I08114910fccbdacf6750e237d3e80ba37fde7651
2021-12-02 14:42:20 -08:00
Treehugger Robot
1309bc53dc Merge "Support response file inputs in build_license_metadata" am: 24eb82416b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1906350

Change-Id: I98e65710ebfece367a007d28320c5e167fa04a52
2021-12-02 22:10:32 +00:00
Treehugger Robot
24eb82416b Merge "Support response file inputs in build_license_metadata" 2021-12-02 21:53:51 +00:00
Daniel Norman
6910911c64 Forbid updatable: true on vendor APEXes.
Vendor APEXes do not formally support updates outside of the main OTA
process. We should clarify this at build time.

Test: set vendor apex to updatable, observe failure
Test: apex_test.go
Change-Id: Ife8d242a42415ebf00d7dced72c07cda1fde1839
2021-12-02 12:53:12 -08:00
Usta
355a587e38 Removal of unused methods AppendProperties and PrependProperties from topDownMutatorContext
Test: m nothing
Bug: n/a

Change-Id: Ia37d1c9b96c39603964ba8db2ea6ba52d1138472
2021-12-02 15:21:45 -05:00
Spandan Das
e33e25b4a5 Set targetsdkversion to future level if TARGET_BUILD_APPS is not empty
manifest_fixer transforms an AndroidManifest.xml file for use in aapt2.
For TARGET_BUILD_APPS builds, set targetSdkVersion to a FutureApiLevel

Test: In build/soong, go test ./java
Test: TH

Test: In internal, TARGET_BUILD_APPS=xyz m
out/soong/.intermediates/packages/providers/MediaProvider/MediaProvider/android_common_MediaProviderGoogle_apex30/package-res.apk
&& aapt2 dump badging
out/soong/.intermediates/packages/providers/MediaProvider/MediaProvider/android_common_MediaProviderGoogle_apex30/package-res.apk
| grep targetSdkVersion # targetSdkVersion:'10000'

Test: In internal, m
out/soong/.intermediates/packages/providers/MediaProvider/MediaProvider/android_common_MediaProviderGoogle_apex30/package-res.apk
&& aapt2 dump badging
out/soong/.intermediates/packages/providers/MediaProvider/MediaProvider/android_common_MediaProviderGoogle_apex30/package-res.apk
| grep targetSdkVersion # targetSdkVersion:'Tiramisu'

Bug: 204107787

Change-Id: Ic6f21111d5a8c61ae789a7a3a001f669257a39b2
2021-12-02 19:55:25 +00:00
Ivan Lozano
0035a5efcc Merge "rust: Ensure unwind tables are generated" am: cd4335ae45
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1902270

Change-Id: Ic57e5f87ae8f92cb62c687e857b0691bd50ac501
2021-12-02 18:37:41 +00:00
Ivan Lozano
cd4335ae45 Merge "rust: Ensure unwind tables are generated" 2021-12-02 17:39:52 +00:00
Liz Kammer
12615dbbca bp2build: support full/lite protos in cc libs
Test: bp2build.sh
Bug: 200601772
Change-Id: I3a7e00546726bc63b5eb8d5604557c5988a5320b
2021-12-02 11:00:46 -05:00
Artur Satayev
0b97cf8828 Merge "Use textproto format for classpaths.proto generation." am: ee594919ea
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1907854

Change-Id: Ifc20dddb8fa9380423e70be160a81d0b0f545167
2021-12-02 15:58:22 +00:00
Liz Kammer
7cb87525ef Merge "Support empty strings in bp2build" am: a9351ef6e6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1907331

Change-Id: I3b32f0e039a705bcc25233470a09498fefd03bdb
2021-12-02 15:58:13 +00:00