Commit Graph

32566 Commits

Author SHA1 Message Date
Colin Cross
5a9e13a2aa Move reflect.ValueOf out of product variable loop am: 0cec312660
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1554553

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibc821ee6f7caa931e36d978d19302d6b86550c03
2021-01-21 00:02:59 +00:00
Colin Cross
0cec312660 Move reflect.ValueOf out of product variable loop
Calling reflect.ValueOf for every variable for every module was
using ~3 seconds of CPU time on my AOSP builds.

Test: m checkbuild
Change-Id: Idf459ad8ddf5e07f6c0df0e58e2442aaa6ab3342
2021-01-20 19:32:42 +00:00
Nicolas Geoffray
d2aff3c2a1 Merge "dexpreopt: Use the dirty-image-objects path from frameworks/base." am: 324234bd00
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1555155

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I464d8e56844d77b2d04374950a99dcc4490b483c
2021-01-20 18:24:26 +00:00
Cindy Zhou
1efd2a75bf Merge "Build against cfi supported coverage lib" am: 0ae13ec307
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1546369

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ieaadc9008312045ac136ffe21d52b5ce24b3d201
2021-01-20 18:24:09 +00:00
Colin Cross
f5cd3722cf Merge "Don't create SDK variants for native bridge modules" am: bdeafb93fd
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1553881

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iac7ee26a007b3dea1ecbc300d0d5ebe971c7bf08
2021-01-20 18:23:46 +00:00
Ulyana Trafimovich
5602cf202b Merge "Support building boot images with disabled dexpreopt." am: 0caabb6e27
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1555134

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3af267485a201e15e1ab8abba5f6ed3ed707dc80
2021-01-20 18:22:57 +00:00
Bill Peckham
24ac16d6e6 Merge changes from topic "prebuilt-hiddenapi" am: 1c8e5e817e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1546365

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3062b116fda3d05730d510bafd4dd5183e444cc2
2021-01-20 18:22:17 +00:00
Christopher Parsons
661302cf96 Merge "avoid error if bazel intermediates dir already exists" am: 965561ce43
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1553880

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5e3e728fc79bdbe0bc5becf3328b6ff9499f70de
2021-01-20 18:21:27 +00:00
Nicolas Geoffray
324234bd00 Merge "dexpreopt: Use the dirty-image-objects path from frameworks/base." 2021-01-20 18:13:20 +00:00
Cindy Zhou
0ae13ec307 Merge "Build against cfi supported coverage lib" 2021-01-20 18:08:30 +00:00
Colin Cross
bdeafb93fd Merge "Don't create SDK variants for native bridge modules" 2021-01-20 17:49:36 +00:00
Ulyana Trafimovich
0caabb6e27 Merge "Support building boot images with disabled dexpreopt." 2021-01-20 17:46:02 +00:00
Bill Peckham
1c8e5e817e Merge changes from topic "prebuilt-hiddenapi"
* changes:
  Supply LOCAL_SOONG_DEX_JAR for java_import with compile_dex.
  Enable an apex to include a java_import.
  Enable prebuilt hiddenapi CSV files.
2021-01-20 17:43:48 +00:00
Christopher Parsons
965561ce43 Merge "avoid error if bazel intermediates dir already exists" 2021-01-20 17:41:18 +00:00
Mohammad Islam
68a9c0aff2 Merge "Fix capex build rule when building using RBE" am: 43c2fe1620
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1554058

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I50c97d736e11fb830c6494899f304255f018f28c
2021-01-20 14:50:05 +00:00
Nicolas Geoffray
1086e604b9 dexpreopt: Use the dirty-image-objects path from frameworks/base.
Test: m
Bug: 176171716
Change-Id: Ifbc08ae03e2b1bec7161948970bd197386e3b305
2021-01-20 14:31:32 +00:00
Mohammad Islam
43c2fe1620 Merge "Fix capex build rule when building using RBE" 2021-01-20 14:21:17 +00:00
Ulya Trafimovich
a4a1c4ee98 Support building boot images with disabled dexpreopt.
Bug: 176171716
Test: build_mainline_modules.sh and ensure that the ART boot image is
    built: `find out -type f -name '*.art'` is nonempty for every arch.
Change-Id: Ibc45581eef2b205c750a30709780cf659ba7cfa1
2021-01-20 14:03:07 +00:00
Chih-Hung Hsieh
6b6b7353f8 Add clang-analyzer check if selected. am: 04f8d379e6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1554894

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5d02e3e380aa3c19053546a1b91a8878b5883bff
2021-01-20 07:47:05 +00:00
Chih-Hung Hsieh
04f8d379e6 Add clang-analyzer check if selected.
* WITH_TIDY=1 should not include clang-analyzer-* checks
  because they are too slow.
* Nightly builds will use both WITH_TIDY=1 and
  CLANG_ANALYZER_CHECKS=1.

Bug: 173736193
Test: make with WITH_TIDY=1 and CLANG_ANALYZER_CHECKS=1
Change-Id: I3885fd0e20475ceee5e3798bffc11a61994ac113
2021-01-19 19:21:39 -08:00
Inseob Kim
bc657cb78a Merge "Implement directed vendor snapshot" am: 9bd66d1537
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1541208

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6ae6bd7c9cd2469c424fab657258fb87bb452796
2021-01-20 01:54:01 +00:00
Inseob Kim
1ee0c0c4ba Merge "Refine sysprop_library header rules" am: 4c4de0edc3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1553459

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I837872321fa1673ae485b13fe477104910779f66
2021-01-20 01:53:13 +00:00
Inseob Kim
9bd66d1537 Merge "Implement directed vendor snapshot" 2021-01-20 01:17:25 +00:00
Inseob Kim
4c4de0edc3 Merge "Refine sysprop_library header rules" 2021-01-20 01:17:22 +00:00
Ryan Prichard
048809c624 Merge "Switch platform EH unwinder to prebuilt LLVM libunwind" am: 809eac3057
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1551580

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iec876d769dd1a5370069650c322445e314379127
2021-01-20 00:44:05 +00:00
JaeMan Park
4198b5c05a Merge "Make TestJavaSdkLibraryEnforce faster" am: cdbbb1ea68
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1549896

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7e834445708aedf78cb3a1e64affe3be5d963968
2021-01-20 00:41:51 +00:00
Ryan Prichard
809eac3057 Merge "Switch platform EH unwinder to prebuilt LLVM libunwind" 2021-01-20 00:10:59 +00:00
JaeMan Park
cdbbb1ea68 Merge "Make TestJavaSdkLibraryEnforce faster" 2021-01-20 00:00:54 +00:00
Colin Cross
94e347e6a5 Don't create SDK variants for native bridge modules
Native bridge modules never need to build against NDK stubs, so
don't create SDK variants.  Also clear the sdk_version property
for modules that don't have SDK variants so that later code doesn't
use it to trigger SDK behaviors.

Test: m checkbuild
Change-Id: I1920fa82e9fab06235f01a62624382efa16cc6e3
2021-01-19 15:00:45 -08:00
Chris Parsons
07c1e4aba1 avoid error if bazel intermediates dir already exists
Previously, the build failed if the directory already existed,
so mixed builds had to be null builds.

Test: lunch aosp_flame && USE_BAZEL=1 USE_BAZEL_ANAYSIS=1 m libc &&
  USE_BAZEL=1 USE_ANALYSIS=1 m libc
Change-Id: I167cb82b3e47e9388a1ebca7daffe45f91474125
2021-01-19 17:19:16 -05:00
Treehugger Robot
e652936aac Merge "Implement code-generation step for bp2build." am: de1357378b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1527838

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If317f9a9df8edf99b704c75acdbd710e3875a422
2021-01-19 18:35:18 +00:00
Bill Peckham
fb04df4d57 Supply LOCAL_SOONG_DEX_JAR for java_import with compile_dex.
Without LOCAL_SOONG_DEX_JAR, ninja fails with a missing
dependency error.

Test: m nothing
Test: new TestImportSoongDexJar
Bug: 173705556
Change-Id: I54a4c6ea93877667a3fb97f8b2621c42e431f577
2021-01-19 18:15:16 +00:00
Bill Peckham
a41a6963b4 Enable an apex to include a java_import.
With the addition of the compile_dex property to the
java_import module it becomes possible to include a
java_import module in an apex. This change allows the
dependency and adds a test.

Bug: 177228901
Test: m nothing
Test: new TestApexWithJavaImport
Change-Id: I9336dade1857109e2fd21f7d57e1dc4abc4a402c
2021-01-19 18:15:03 +00:00
Bill Peckham
bae4749de2 Enable prebuilt hiddenapi CSV files.
By enabling these hiddenapi CSV files to be prebuilt, it
becomes possible to create a split build that supports
the hiddenapi encode dex step, but doesn't contain all
of the java sources needed to generate the CSV files.

Bug: 175048716
Test: m nothing
Test: new TestHiddenAPISingletonWithPrebuiltCsvFile
Test: local build without prebuilt hiddenapi
Test: local build with prebuilt hiddenapi
Change-Id: I805ea3ec05860d2df211a3985ec025bf36f0d775
2021-01-19 10:07:45 -08:00
Treehugger Robot
de1357378b Merge "Implement code-generation step for bp2build." 2021-01-19 17:41:59 +00:00
Jingwen Chen
daa54bcbba Implement code-generation step for bp2build.
Implement bp2build codegen as a discrete step that runs after an
alternatively registered pipeline of mutators, instead of a
presingleton.

bp2build codegen requires a Context that supports VisitAllModules and
PathContext, so this CL also makes a BpToBuildWrapperContext that
conforms to PathContext by adding two method implementations.

Test: GENERATE_BAZEL_FILES=true m nothing && bazel query //... --config=bp2build | wc -l # 31433
Test: m queryview && bazel query //... --config=queryview # 63638

Change-Id: I0dd359746584b228046d2d0ff00895f28f9bdfc3
2021-01-19 11:03:36 -05:00
Christopher Parsons
3f4738431b Merge "Improve aquery-related validation and error handling" am: ad3421aacf
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1553034

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibe6ad11a7af4f36284f73a279176531cf137e724
2021-01-19 15:11:55 +00:00
Paul Duffin
c022da2b2a Merge "Export dex implementation jars from prebuilt_apex" am: fe6147eb26
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1523984

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I356a0f75453bfdfc8db166227a875dec25aa4ab6
2021-01-19 15:11:09 +00:00
Christopher Parsons
ad3421aacf Merge "Improve aquery-related validation and error handling" 2021-01-19 14:59:51 +00:00
Paul Duffin
fe6147eb26 Merge "Export dex implementation jars from prebuilt_apex" 2021-01-19 14:34:29 +00:00
Treehugger Robot
9222ce0be5 Merge "Remove unused parameter to newContext." am: 0e3aaa47aa
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1552083

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4a910654fee12a3e31d4394a1bef0fe5599d6366
2021-01-19 13:35:57 +00:00
Treehugger Robot
0e3aaa47aa Merge "Remove unused parameter to newContext." 2021-01-19 13:10:28 +00:00
Inseob Kim
1d9f614e98 Merge "Allow sysprop library API files to be missing" am: f61dfa5a02
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1552044

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib56a61293f499d56f372ba47fdad448c158d7272
2021-01-19 11:51:30 +00:00
Mohammad Samiul Islam
9ac0e32979 Fix capex build rule when building using RBE
Presubmit builds were failing cause they were being built using RBE.

Bug: 172911362
Test: presubmit-builds are passing now
Change-Id: I65ffd912ccf2f4fb8cb9824e7a9579f66908d7b3
2021-01-19 11:32:29 +00:00
Inseob Kim
f61dfa5a02 Merge "Allow sysprop library API files to be missing" 2021-01-19 11:24:12 +00:00
Jingwen Chen
09b609d476 Remove unused parameter to newContext.
Test: TH, soong bootstrap tests
Change-Id: Ia7c0fdc2b5d784ef6b389858dab2fcbad35a3763
2021-01-19 04:55:02 -05:00
Inseob Kim
7cf1465d2e Implement directed vendor snapshot
Vendors can now generate only needed modules by setting the following
Makefile variables:

- DIRECTED_VENDOR_SNAPSHOT: set to true
- VENDOR_SNAPSHOT_MODULES: list of snapshot candidates

e.g.

DIRECTED_VENDOR_SNAPSHOT := true
VENDOR_SNAPSHOT_MODULES := toybox_vendor sh_vendor libbase libcutils ...

Bug: 157967325
Test: m dist vendor-snapshot after setting those in BoardConfig.mk
Change-Id: I6515a43d9358d94483d7c7fa2b066f9dd457f6aa
2021-01-18 20:08:09 +09:00
Inseob Kim
0641004a3f Refine sysprop_library header rules
Instead of unreliable giant if clause, it's enough to check dependency
between platform (system, system-ext), product, and vendor.

Test: sysprop_test soong test
Test: link against host_supported sysprop_library and use internal props
Change-Id: I7bd5df00b302fa261eff5120106aacc3df93c1b2
2021-01-18 15:23:28 +09:00
Chih-Hung Hsieh
1bf2e3f449 Do not enable all clang-analyzer-* checks, am: 4d31a041c7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1553374

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie2d3ba10dc61759cea321004560a06bb7fff387c
2021-01-16 09:08:02 +00:00
Chih-Hung Hsieh
4d31a041c7 Do not enable all clang-analyzer-* checks,
* clang-analyzer is slow and enables clang-diagnostic-padded,
  which cannot be suppressed yet.

Test: make with WITH_TIDY=1 for crosshatch-userdebug
Change-Id: I20193f0db3154b037d58c5ca012a9e753b176722
2021-01-15 21:10:35 -08:00