Commit Graph

47274 Commits

Author SHA1 Message Date
Jiakai Zhang
c0adf3ba1c Merge "Add ART boot image profile to the ART APEX." am: e6f63be764 am: 255734a03a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1904290

Change-Id: Icc4474326864a768bec4048cc777f2ae0777603b
2021-12-07 15:59:52 +00:00
Jiakai Zhang
255734a03a Merge "Add ART boot image profile to the ART APEX." am: e6f63be764
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1904290

Change-Id: I9cdd28b911a24c5c2a7163802cc0e3240989b330
2021-12-07 15:36:48 +00:00
Jiakai Zhang
e6f63be764 Merge "Add ART boot image profile to the ART APEX." 2021-12-07 15:22:37 +00:00
Yi Kong
8a98aff182 Merge "addSamplingProfileGatherFlags is no longer needed" am: b0d167cb43 am: 84afb3787b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1908874

Change-Id: Ib5515ee9e145d15eac69afb049db371c5f469007
2021-12-07 04:59:43 +00:00
Yi Kong
84afb3787b Merge "addSamplingProfileGatherFlags is no longer needed" am: b0d167cb43
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1908874

Change-Id: Ibed29cbda16e7960ce0ebcd1cd771d795be7b70b
2021-12-07 04:45:13 +00:00
Yi Kong
b0d167cb43 Merge "addSamplingProfileGatherFlags is no longer needed" 2021-12-07 04:27:14 +00:00
Chih-hung Hsieh
be9b44c60f Merge "object files depend only on NDK headers" am: 970f8388a8 am: 9df47e552b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1911210

Change-Id: I8ce8d6611bc498af15ba474ccf69b8c9f77c1ddc
2021-12-07 02:42:47 +00:00
Chih-hung Hsieh
9df47e552b Merge "object files depend only on NDK headers" am: 970f8388a8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1911210

Change-Id: I8de54cceb398adbc7e08dd7eb7164ccd3480e3b7
2021-12-07 02:27:16 +00:00
Chih-hung Hsieh
970f8388a8 Merge "object files depend only on NDK headers" 2021-12-07 02:00:50 +00:00
Jingwen Chen
fd6064918f Merge "Add descriptions to soong_build actions." am: 838e7cdd73 am: dd569eec32
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1911272

Change-Id: I22dc0c6030598f53a5d5a89a5a64b7e730a80080
2021-12-07 01:46:18 +00:00
Jingwen Chen
dd569eec32 Merge "Add descriptions to soong_build actions." am: 838e7cdd73
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1911272

Change-Id: I075e78d080948b6978b0fc7d91490bc6b1bff9c0
2021-12-07 01:31:21 +00:00
Jingwen Chen
838e7cdd73 Merge "Add descriptions to soong_build actions." 2021-12-07 01:01:16 +00:00
Christopher Parsons
d6cbad5073 Merge "bp2build: split full_cc_library into shared/static" am: 58a2eec1a7 am: bc6610ce5b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1910490

Change-Id: Ice4f01c404e105832f7e256d9b417793d74b7f48
2021-12-06 23:18:07 +00:00
Christopher Parsons
bc6610ce5b Merge "bp2build: split full_cc_library into shared/static" am: 58a2eec1a7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1910490

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

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

Change-Id: I0dcde944a466d8179b89534b4ac7d4a9fe63a99e
2021-12-06 22:06:17 +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
fe55ffd190 Merge "Add ModuleWithMinSdkVersionCheck type." am: a4fc08d204 am: 25f5783263
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1907860

Change-Id: If714ad9aef1f91216e6f1cccea9f0d6f1fd55381
2021-12-06 17:27:43 +00: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
42866b6eb7 Merge "bp2build: support full/lite protos in cc libs" am: 85c0097d69 am: 03b6cf4e30
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1838061

Change-Id: I650e734db338f576d2ed98aa9ae276ecb9bb48cd
2021-12-06 15:21:42 +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
b7601ceb3a Merge "Allowlist //build/soong/cc/{ndkstubgen,symbolfile}." am: a86cbd4a49 am: 8d6f36b4b1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1906372

Change-Id: I2be074110d1cd2a672a28eaa7039939fe1f5c516
2021-12-06 12:33:38 +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
82a851b155 Merge "Add future_updatable to the apex module" am: 103d511117 am: 88589cf238
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1904291

Change-Id: Icd2fa007e86017df785fb24c49aa26dd0ba70f05
2021-12-06 10:34:18 +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
909754209d Merge "Support passing input variables to the product configuration" am: ff4a061e76 am: a4b3db3d9b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1908370

Change-Id: I5007eec424e577ce9fe8ed8253963aebdd90a154
2021-12-05 04:26:13 +00: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
3ae86d3ee8 Merge "No NDK libraries in clang-tidy pathDeps" am: 23d5d986fe am: 60b3edb494
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1906094

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

Change-Id: I69ad91b13574ddea1b6eab37b6f9ace845de9cf0
2021-12-03 23:43:36 +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