Commit Graph

27521 Commits

Author SHA1 Message Date
Colin Cross 405af07859 Revert "Make lots of tests run in parallel"
This reverts commit 323dc60712.

Reason for revert: Possible cause of test instability
Bug: 170513220
Test: soong tests

Change-Id: Iee168e9fbb4210569e6cffcc23e60d111403abb8
2020-10-09 18:34:24 -07:00
Tom Cherry 3d7611ee4c Update liblog header paths after git project move
liblog has moved from system/core/liblog to system/logging/liblog, so
update the path appropriately.

Bug: 170387172
Test: tree hugger
Change-Id: I68f881137ab8cbe91f36b20d4221d63fe3c5fc65
2020-10-09 14:49:58 -07:00
Liz Kammer dbd4809b06 Enable defaults in soong_config_module_type props
Test: go tests
Test: m
Change-Id: I8fe8c17320086034f4745b2da974a2c73c949eaf
2020-10-09 14:28:34 -07:00
Chih-Hung Hsieh c49649c059 Use protobuf-codegen default and add mod_stem.rs
* Upgrade to new protobuf-codegen; use its standard
  default output without local change.
* Allow a sourceProvider to have multiple output files.
  For a stem.proto file, output stem.rs and mod_stem.rs.
* New protobuf-codegen option gen_mod_rs always generates
  output file named "mod.rs". To generate multiple .proto
  files into the same output directory, we need to rename
  mod.rs to mod_<stem>.rs.
* Instead of using the gen_mod_rs option and renaming mod.rs
  to mod_<stem>.rs, we generate the same mod_<stem>.rs
  directly with a simple printf command.

Bug: 170256643
Test: atest -c --host --include-subdirs external/crosvm
Change-Id: Ia09e41029099a6de4d35c96dbabd9ba5514c9019
2020-10-09 13:38:37 -07:00
Treehugger Robot 91d57dd066 Merge "Global ThinLTO: opt out vndk binaries as a workaround" am: 6682ef42a4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1456235

Change-Id: If321871406c2ea2f823f05173480888cf5ffe8b4
2020-10-09 19:16:09 +00:00
Treehugger Robot 6682ef42a4 Merge "Global ThinLTO: opt out vndk binaries as a workaround" 2020-10-09 19:00:42 +00:00
Treehugger Robot 1ce902558f Merge "Revert "Implement vts_config module"" am: 38cfe29597
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1451110

Change-Id: I1ca6f5347a5c6180f52f1a4dd14045637ece5c09
2020-10-09 17:55:00 +00:00
Treehugger Robot 38cfe29597 Merge "Revert "Implement vts_config module"" 2020-10-09 17:25:35 +00:00
Christopher Parsons 03f233c372 Merge "Mixed bazel/soong build prototype for genrule" am: c8f84809ad
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1441107

Change-Id: Id68d377e339684f9a16d5c73c0f3d4c641f64299
2020-10-09 14:42:54 +00:00
Christopher Parsons c8f84809ad Merge "Mixed bazel/soong build prototype for genrule" 2020-10-09 14:27:04 +00:00
Yi Kong 134161f7e5 Global ThinLTO: opt out vndk binaries as a workaround
With global ThinLTO enabled, vndk version has different symbol ordering
from the platform version. Opt out any binaries that has vndk enabled as
a temporary workaround.

Test: GLOBAL_THINLTO=true m
Bug: 169217596
Change-Id: I75b060cbe6c74421d283c6dfbd669af20f466d1f
2020-10-09 22:08:11 +08:00
Anton Hansson 7f66efa10c Add a Impl_only_libs prop for sdk_library
Similar to Stubs_only_libs, this allows being a bit more specific
about what libs compile against what. In my usecase, it allows
removing a platform dependency from the appsearch stubs, which allows
the platform to depends on the stubs.

Bug: 169304493
Test: m
Change-Id: Ie997462819cd5266a761b2d415e81806c7877967
Merged-In: Ie997462819cd5266a761b2d415e81806c7877967
2020-10-09 13:49:30 +01:00
Thiébaud Weksteen 6f8494caf8 Merge "rust: refactor tests setup" am: 43977e8d0e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1454815

Change-Id: Ida3b2650bf02d10a739f5ce0fd510716a84ba146
2020-10-09 12:26:39 +00:00
Thiébaud Weksteen 43977e8d0e Merge "rust: refactor tests setup" 2020-10-09 12:13:15 +00:00
Xin Li e083f27ef2 Merge ab/6749736 in stage.
Bug: 167233921
Merged-In: Ib926b7c326204ae7341c8c090e24ae6d62d39372
Change-Id: Iab76d5df643872d06c5049b5a542a82c950f45eb
2020-10-08 23:00:41 -07:00
Joe Onorato fc8ab60603 Refactor OWNERS files in platform/build/soong. am: a80b480eea
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1455169

Change-Id: I7b794896884a4f11e5203817b814223ec09e69d8
2020-10-09 04:45:30 +00:00
Chris Parsons f3c96efea4 Mixed bazel/soong build prototype for genrule
With this change, bazel_module is a specifiable property on
genrule module definitions. With bazel-enabled mode, soong_build will
defer to Bazel for information on these modules.

source build/soong/bazelenv.sh to enter bazel-enabled mode.

Test: Manually verified on bionic/libc genrules using aosp_cf_x86_phone-userdebug
Change-Id: I3619848186d50be7273a5eba31c79989b981d408
2020-10-08 22:46:23 -04:00
Joe Onorato a80b480eea Refactor OWNERS files in platform/build/soong.
Pulls out all of the per-file rules into their relevant directories
so platform/build/soong:/OWNERS can be included everywhere we need
the list of build system owners.

Test: treehugger
Bug: 170407947
Change-Id: I5a4b2d252bd9b3c280cd9954cf0e65ac21153ede
2020-10-08 16:14:32 -07:00
Anton Hansson 746be9ca1e Remove jdiff support from droiddoc
There are no users of this flag anymore.

Bug: 158465496
Test: m
Change-Id: I8e4af0a7863f6f4ebfc21997c9d72a6745081433
2020-10-08 19:07:39 +01:00
Dan Shi ee0b81a4fe Revert "Implement vts_config module"
This reverts commit ff36da04e8.

Reason for revert: remove vts10 harness and build configs
Bug: 169581727
Bug: 166662663
Test: build

Change-Id: I090b41c99c2279d24f08e4343289cbdcc7934f5d
2020-10-08 10:38:08 -07:00
Thiébaud Weksteen 0a75e52460 rust: refactor tests setup
Move to a builder pattern to increase flexibility when generating the
test configuration. The testRust, testRustCov and testRustError are kept
as main entry points for standard tests. Add documentation.

Test: m nothing
Change-Id: I891bec982ff2d65413f150d2395edf0fb0d68a43
2020-10-08 15:51:10 +02:00
Kousik Kumar a0a44a84be Add warning about out-directory usage with RBE builds
Prints the following warning messsage:
WARNING:
Setting OUT_DIR to a path other than out may result in slow RBE builds.
See http://go/android_rbe_out_dir for a workaround.

Bug: b/169676232
Change-Id: Id1ad06c4dc672c24373642e0b624833eb6a0dbcf
2020-10-08 02:50:24 -04:00
Treehugger Robot df0998def7 Merge "Add android.system.keystore2-unstable-ndk_platform to vndk.go" am: 36e4ad1f4d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1443716

Change-Id: I4fb7b21c17c17f3810dc29739b748719b07bca08
2020-10-07 21:14:34 +00:00
Colin Cross e81d9e0142 Merge "Make lots of tests run in parallel" am: 45fd6ace7e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1439471

Change-Id: I96efe7e57e1c446082b488d0b026d0f17eadb229
2020-10-07 21:13:34 +00:00
Treehugger Robot 36e4ad1f4d Merge "Add android.system.keystore2-unstable-ndk_platform to vndk.go" 2020-10-07 20:45:52 +00:00
Colin Cross 45fd6ace7e Merge "Make lots of tests run in parallel" 2020-10-07 20:40:38 +00:00
Colin Cross 21bb1d491c Merge "Remove global state from apex modules" am: 43159bd1b7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1428815

Change-Id: I9ddb389c6a107e7431ba761c58b0ab99048fbc11
2020-10-07 19:05:15 +00:00
Colin Cross 43159bd1b7 Merge "Remove global state from apex modules" 2020-10-07 17:58:00 +00:00
Paul Duffin d8c90a7e8d Merge "Allow access to the class jar for java_import using {.jar} tag" am: a87ea4587d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1450820

Change-Id: I32200cbb541524bd73ba6695ace4b21162914529
2020-10-07 17:30:59 +00:00
Paul Duffin a87ea4587d Merge "Allow access to the class jar for java_import using {.jar} tag" 2020-10-07 17:16:43 +00:00
Tom Cherry 320a70915c Merge "Reland: "Include system/core/liblog/include instead of using symlinks"" am: a5e9be9476
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1451057

Change-Id: Id25b73231d03002301bd34e6e9127b26bf442404
2020-10-07 15:38:09 +00:00
Tom Cherry a5e9be9476 Merge "Reland: "Include system/core/liblog/include instead of using symlinks"" 2020-10-07 15:11:10 +00:00
Anton Hansson b3cbd61846 Make hiddenapi flag generation use new artifact
Use the output of new genrule combined-removed-dex instead of the
removedDexApi output from various metalava runs when generating the
hiddenapi-flags.csv file.

There are some minor difference in the two combined-removed-dex files,
but these diffs do not amount to any diffs in the generated
hiddenapi-flags.csv file. See the full set of diffs here:
https://paste.googleplex.com/6632343525654528

Bug: 158465496
Test: diff hiddenapi-flags.csv before and after
Change-Id: I082d18fc2b8a57ea8c5941d5c955a7970ab9d860
2020-10-07 12:28:23 +01:00
Anton Hansson c9e7c18c40 Merge "Add outputfiles tags for droidstubs api txts" am: 70bc545407
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1446800

Change-Id: Ib526b1cb47f0900900cb028011c864eb77e192c4
2020-10-07 10:00:19 +00:00
Anton Hansson 70bc545407 Merge "Add outputfiles tags for droidstubs api txts" 2020-10-07 09:54:43 +00:00
Ulyana Trafimovich 2b45163773 Merge changes from topic "uses-libs-24" am: 9f701fa348
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1435492

Change-Id: Ie4d034c7dd3bed313dc51671b8cb489f2e3f2d57
2020-10-07 09:34:42 +00:00
Ulyana Trafimovich 9f701fa348 Merge changes from topic "uses-libs-24"
* changes:
  Fail the build if dexpreopt cannot find path to a <uses-library>.
  Add dependency on implementation <uses-library> for modules that depend on component libraries.
2020-10-07 09:18:02 +00:00
Martin Stjernholm ff4181eba9 Merge "Avoid conflicting shared libraries from SDK snapshots." am: 3c72ce8696
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1450116

Change-Id: Ic7fe39789b97f284799fce0b737b1070d5da3375
2020-10-06 23:32:31 +00:00
Janis Danisevskis e8f655ca46 Add android.system.keystore2-unstable-ndk_platform to vndk.go
Test: N/A
Bug: 160623310
Change-Id: Ic2e9897a1c103389b93a72df25c38fe96a8c7c09
2020-10-06 16:24:22 -07:00
Martin Stjernholm 3c72ce8696 Merge "Avoid conflicting shared libraries from SDK snapshots." 2020-10-06 22:55:34 +00:00
Colin Cross 323dc60712 Make lots of tests run in parallel
Putting t.Parallel() in each test makes them run in parallel.
Additional t.Parallel() could be added to each subtest, although
that requires making a local copy of the loop variable for
table driven tests.

Test: m checkbuild
Change-Id: I5d9869ead441093f4d7c5757f2447385333a95a4
2020-10-06 15:12:22 -07:00
Treehugger Robot e0126b9038 Merge "Add allow rust rule for android.system.keystore2 vts tests." am: 614b06c8ce
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1443715

Change-Id: I91b15aea954edcc31b9a3c68c8732fa34307b63f
2020-10-06 21:49:40 +00:00
Treehugger Robot 614b06c8ce Merge "Add allow rust rule for android.system.keystore2 vts tests." 2020-10-06 21:03:42 +00:00
Colin Cross 56a8321c21 Remove global state from apex modules
A global variant was used to store the global mapping between
modules and APEXes.  Replace it with storing pointers to APEX
contents inside each module so that they can query the contents
of any APEXes they belong to.

Bug: 146393795
Test: all Soong tests
Test: single line change to build.ninja host install dependency ordering
Test: no Android-${TARGET_PRODUCT}.mk, make_vars-${TARGET_PRODUCT}.mk or late-${TARGET_PRODUCT}.mk
Change-Id: Id2d7b73ea27f8c3b41d30820bdd86b65c539bfa4
2020-10-06 13:39:57 -07:00
Treehugger Robot 3641d82f7e Merge "Avoid panic when a boot jar is provided as a java_import" am: a8baa88424
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1450816

Change-Id: Ibbb8129ed2d43342815c1e5d7b8ac2a9baf64a2d
2020-10-06 20:14:50 +00:00
Treehugger Robot a8baa88424 Merge "Avoid panic when a boot jar is provided as a java_import" 2020-10-06 19:55:00 +00:00
Colin Cross d7f1653e7b Merge changes I4c8cd544,I62d4d43d,I0ae667d4,Id357adc0,I1ff87134 am: ac0cd89283
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1445698

Change-Id: I3b3af12a19a2fa1a6f0496401b5051d3eb394a34
2020-10-06 18:28:30 +00:00
Tom Cherry 6ddbb00e24 Reland: "Include system/core/liblog/include instead of using symlinks"
It seems better to include this path directly rather than creating
symlinks in system/core that accomplish the same result.

Bug: 165825252
Test: treehugger
Change-Id: Ic78f09d86039540a2b0eead45e985b42c553f415
2020-10-06 10:45:28 -07:00
Colin Cross ac0cd89283 Merge changes I4c8cd544,I62d4d43d,I0ae667d4,Id357adc0,I1ff87134
* changes:
  Don't create version variations of sdk modules
  Create fewer empty version variants
  Don't make SplitPerApiLevel imply UseSdk
  Remove vendor crt special case
  Fix apex_test.go and add it to Android.bp
2020-10-06 17:33:30 +00:00
Paul Duffin aa55f74505 Allow access to the class jar for java_import using {.jar} tag
Layoutlib requires access to the jar file (containing .class) files for
a number of libraries including "core-libart". It does that using the
{.jar} output tag, e.g. "core-libart{.jar}".

This change makes sure that works when "core-libart" is provided as a
java_import instead of a java_library.

Bug: 142938164
Test: m nothing
Change-Id: I605019d680c28e4a33f0ca14279d63fa62b9774b
2020-10-06 17:48:37 +01:00