Commit Graph

41377 Commits

Author SHA1 Message Date
Colin Cross e5af8f5c6b Merge "Update for sharded globs" am: 14d09018eb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1673775

Change-Id: I344d7c64cdf22fc827a66bda3703d2ab23a0f14c
2021-04-20 16:27:29 +00:00
Lukács T. Berki e0496ed844 Merge "Call mixed mode Bazel in the symlink forest." am: b8ea9f3cc8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1679774

Change-Id: I8a9e87f07a215d7420236dd856bbb277dc74f2c6
2021-04-20 16:24:10 +00:00
Colin Cross 14d09018eb Merge "Update for sharded globs" 2021-04-20 16:16:40 +00:00
Liz Kammer eda9398bbf Remove unnecessary `android:"path"` tags in rust
Custom_bindgen is handled by adding a relevant dependency tag.
Flags and Ld_flags are not paths/references to other modules.

Test: go test soong tests
Change-Id: Ic6a69521102318b3b9f29b59560bcefbc9aff8fa
2021-04-20 16:06:02 +00:00
Julien Desprez d3dbf07c37 Mark par_test as not unit tests
They seem to be used as Soong validation. They are not implemented against the python
unit tests framework, so we can execute them as such in CI automatically.

Change-Id: I8fe662d5d3399d60c8a05acc79b4dd51b5d138a6
Test: presubmit
Bug: 183730987
2021-04-20 15:56:09 +00:00
Lukács T. Berki b8ea9f3cc8 Merge "Call mixed mode Bazel in the symlink forest." 2021-04-20 15:48:05 +00:00
Lukacs T. Berki d6cd813abc Call mixed mode Bazel in the symlink forest.
Test: Presubmits + manual execution.
Change-Id: Idef2d821222ccbf9385d0ea3fc92178b3206df0a
2021-04-20 17:43:02 +02:00
Martin Stjernholm ee9b24e6d2 Do not output two trailing newlines in generated bp files.
Test: m platform-mainline-sdk
  Check Android.bp in the generated platform-mainline-sdk-current.zip.
Bug: 156286550
Change-Id: Ifb99288f3b85c3b986270d48e2dc7d9e15fa7536
2021-04-20 15:54:21 +01:00
Jaewoong Jung 5a4202575e Rename lint-project-xml.py to remove dashes.
So that a future test can import it without a dirty syntax.

Test: m lint-check
Bug: 182349282
Change-Id: I520a5af49543801ab2a8ee888ff235876546dc74
2021-04-20 07:06:03 -07:00
Paul Duffin 94f1963b6d Remove unused boot_images property and rename tag
Bug: 177892522
Test: m nothing
Change-Id: I9ffd6dda23aefea183f87e22497c17fb8a276ece
2021-04-20 14:46:08 +01:00
Paul Duffin f4a24068fe Merge "platform_bootclasspath: aggregate hidden API flag files from fragments" am: 42030eafff am: c06c6534ad am: 19257738c4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1675871

Change-Id: I9c8b8b7baba671fd322b0fa512e15093acde8218
2021-04-20 13:13:46 +00:00
Lukács T. Berki 6655935a4a Merge "Create a synthetic Bazel workspace." am: 3784448c9e am: 06dd95eaba am: b125ba1baf
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1676621

Change-Id: I893d41068a8ea3365a226185c6fd3bf81cb7f620
2021-04-20 13:13:20 +00:00
Paul Duffin 19257738c4 Merge "platform_bootclasspath: aggregate hidden API flag files from fragments" am: 42030eafff am: c06c6534ad
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1675871

Change-Id: Ief66e4cffc81214e8e197c6a8d4604d2f9a86255
2021-04-20 11:26:54 +00:00
Lukács T. Berki b125ba1baf Merge "Create a synthetic Bazel workspace." am: 3784448c9e am: 06dd95eaba
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1676621

Change-Id: If8df6a8c332f830f9814857ced6d4dfba8280a8c
2021-04-20 11:26:41 +00:00
Paul Duffin c06c6534ad Merge "platform_bootclasspath: aggregate hidden API flag files from fragments" am: 42030eafff
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1675871

Change-Id: I8f7edb819e6844730f38420124a51eb9daa67737
2021-04-20 11:12:50 +00:00
Lukacs T. Berki 3f9416ea80 Rename cryptic symbols in symlink_forest.go .
Test: Presubmits.
Change-Id: Ib41e5ba001924d6fca72410bc0895747d6e55d37
2021-04-20 13:08:11 +02:00
Lukács T. Berki 06dd95eaba Merge "Create a synthetic Bazel workspace." am: 3784448c9e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1676621

Change-Id: I24fd4a8f2e0f81eb5aa18af3ff442a4c8322c366
2021-04-20 11:05:18 +00:00
Paul Duffin 42030eafff Merge "platform_bootclasspath: aggregate hidden API flag files from fragments" 2021-04-20 11:02:23 +00:00
Paul Duffin 5c71e4255c Merge "java_sdk_library: Make dex stub jars available for hiddenapi" am: cb5d20887b am: 99e7f3354a am: bb4825abc1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1678146

Change-Id: I07839672b84caef91ef810bf2fa0b5f85c041067
2021-04-20 10:56:43 +00:00
Lukács T. Berki 3784448c9e Merge "Create a synthetic Bazel workspace." 2021-04-20 10:44:08 +00:00
Paul Duffin bb4825abc1 Merge "java_sdk_library: Make dex stub jars available for hiddenapi" am: cb5d20887b am: 99e7f3354a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1678146

Change-Id: Ia94ccad3365c41934a1b807a9ce5843f7c8f692c
2021-04-20 10:34:20 +00:00
Paul Duffin 99e7f3354a Merge "java_sdk_library: Make dex stub jars available for hiddenapi" am: cb5d20887b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1678146

Change-Id: I4b21412fcefcc408585998243e6afa15fd1a6475
2021-04-20 10:12:44 +00:00
Paul Duffin cb5d20887b Merge "java_sdk_library: Make dex stub jars available for hiddenapi" 2021-04-20 09:48:53 +00:00
Nikita Ioffe b6ea6c2d3c Don't compress apexes when building in unbundled mode
Test: TARGET_BUILD_APPS=com.android.neuralnetworks m apps_only
Bug: 185708645
Change-Id: I3fdf96f2b8decdff1422549bca413e7660ffb706
2021-04-20 10:20:15 +01:00
Lukacs T. Berki b353cca496 Create a synthetic Bazel workspace.
It's under out/soong/workspace and is a symlink forest that merges BUILD
files generated by bp2build and the source tree.

bazel-* symlinks and $OUTDIR are currently ignored.

Test: Presubmits.
Change-Id: If14df23bd0f6a6f2d7d1140f95213f2aee66d652
2021-04-20 10:00:02 +02:00
Jingwen Chen 38e6264fff Rename Label.Bp_text to OriginalModuleName.
OriginalModuleName is a clearer name for what the field represents.

Also document it.

Follow-up from aosp/1675466.

Test: TH
Change-Id: Ie1152b5ae63f388164582be70e193a91ef96c89c
2021-04-20 05:29:48 +00:00
Jaewoong Jung a110439b3c Lint baseline file check in lint-project-xml
Add a function to lint-project-xml to scan the given lint baseline file
for disallowed baseline lint issues.

Test: Manual
Bug: 182349282
Change-Id: I0db32bec0da24487b2f2b3f6704629f56ae76f56
2021-04-19 17:38:17 -07:00
Treehugger Robot 5204451f6a Merge "Move cc_object tests to object_test.go" am: a0b235a9d9 am: a82efc51e5 am: b6f6770985
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1679687

Change-Id: Iebcf9981307b08f83d69f69d28952f383551a98b
2021-04-19 23:49:32 +00:00
Treehugger Robot b6f6770985 Merge "Move cc_object tests to object_test.go" am: a0b235a9d9 am: a82efc51e5
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1679687

Change-Id: I6c181b85c52bb536c8cab7ff72e415b7ec37104f
2021-04-19 23:28:32 +00:00
Treehugger Robot a82efc51e5 Merge "Move cc_object tests to object_test.go" am: a0b235a9d9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1679687

Change-Id: I799840ee7099727998e8b7bf7495f99ac7d58120
2021-04-19 23:06:06 +00:00
Colin Cross fff5665f2e Merge "Reland: Add jni_libs property to java tests" am: 91fc8cbc73 am: 9f288cbe22 am: 55c7b4040a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1680065

Change-Id: I02b9fcf8ef56ff66010250cee7b1311a45d6dc9a
2021-04-19 22:57:20 +00:00
Treehugger Robot a0b235a9d9 Merge "Move cc_object tests to object_test.go" 2021-04-19 22:48:15 +00:00
Colin Cross 55c7b4040a Merge "Reland: Add jni_libs property to java tests" am: 91fc8cbc73 am: 9f288cbe22
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1680065

Change-Id: I7bf54eafb384167d9d89d249bb366a87f4e41208
2021-04-19 22:18:38 +00:00
Colin Cross 9f288cbe22 Merge "Reland: Add jni_libs property to java tests" am: 91fc8cbc73
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1680065

Change-Id: I6196e8dff79346a429fdf9928547b2c76c44fcea
2021-04-19 21:59:37 +00:00
Treehugger Robot 6de6f9f4d6 Merge "[rust] Update clang version used for bindgen" am: 62b9c5bd99 am: 63b64fd3b1 am: e47c2eefb5
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1679790

Change-Id: I4b1836a1b3e5eed5d76016dd44727f59468ca1f1
2021-04-19 21:35:12 +00:00
Colin Cross 91fc8cbc73 Merge "Reland: Add jni_libs property to java tests" 2021-04-19 21:31:08 +00:00
Treehugger Robot e47c2eefb5 Merge "[rust] Update clang version used for bindgen" am: 62b9c5bd99 am: 63b64fd3b1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1679790

Change-Id: I50f0b1ef9ad4545ebcad1cc41c535b825bc8a6d0
2021-04-19 21:06:26 +00:00
Treehugger Robot 84a016c436 Merge "Rustdoc support." am: 9bd39fe80d am: 3160c2f699 am: cbf48c87eb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1645949

Change-Id: I9c14720676fd8a7422522bb77937ffb193e17ab6
2021-04-19 20:55:46 +00:00
Treehugger Robot 63b64fd3b1 Merge "[rust] Update clang version used for bindgen" am: 62b9c5bd99
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1679790

Change-Id: I315d8fd83c6ceba4e317ff3e1670a350a66ea49b
2021-04-19 20:46:56 +00:00
Treehugger Robot cbf48c87eb Merge "Rustdoc support." am: 9bd39fe80d am: 3160c2f699
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1645949

Change-Id: I3ccfb0d5e4e1cfa2b1b4c7fce864862aae856105
2021-04-19 20:34:00 +00:00
Treehugger Robot 62b9c5bd99 Merge "[rust] Update clang version used for bindgen" 2021-04-19 20:18:39 +00:00
Treehugger Robot 6d70f059f4 Merge "Change par file generate rules." am: 46b938485a am: e031000298 am: 9e1eb3bef0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1677929

Change-Id: Ia2e4e260ed45b1dd84c0006ddf960dc0f77b4611
2021-04-19 20:13:01 +00:00
Chris Parsons 5db4828abb Add a denylist for specifically mixed builds am: bab4d7e3bc am: 2678212a0f am: cd40ec4e44
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1677624

Change-Id: Ie9b5de425df4cc868fb851b49fefa0039900f50c
2021-04-19 20:12:36 +00:00
Treehugger Robot 3160c2f699 Merge "Rustdoc support." am: 9bd39fe80d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1645949

Change-Id: Ie78acd1e6c49211e64f3019f95cd8ea48153fdc1
2021-04-19 20:11:30 +00:00
Elliott Hughes 2e70f79273 Move builder.go over to llvm-objcopy.
Bug: http://b/147452927
Test: treehugger
Change-Id: I60440e44669d226ca2ef2bcd8d0dbba59f01d43f
2021-04-19 12:58:43 -07:00
Liz Kammer 5bde22ff15 Incorporate filegroups into mixed builds.
Test: bp2build generate & sync; mixed build droid
Bug: 185812083
Change-Id: I09d4203ec52acaacb11f371a6ae03b12214938f7
2021-04-19 15:50:20 -04:00
Treehugger Robot 9bd39fe80d Merge "Rustdoc support." 2021-04-19 19:40:18 +00:00
Treehugger Robot 9e1eb3bef0 Merge "Change par file generate rules." am: 46b938485a am: e031000298
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1677929

Change-Id: I5585ccbc8dc8c71a45bd70f324cdaad9898b372a
2021-04-19 19:34:18 +00:00
Chris Parsons cd40ec4e44 Add a denylist for specifically mixed builds am: bab4d7e3bc am: 2678212a0f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1677624

Change-Id: I0e794c82bea705124d0b6c9024e9201ead93d6bb
2021-04-19 19:33:11 +00:00
Treehugger Robot e031000298 Merge "Change par file generate rules." am: 46b938485a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1677929

Change-Id: Ie695b895b18c4bfc0f96d9cca7bbc40d3295519f
2021-04-19 19:09:00 +00:00