Commit Graph

19585 Commits

Author SHA1 Message Date
Treehugger Robot
547c6087df Merge "mark platform un-availability" am: 01db260858
Change-Id: I72eb614cfc7b4dee95697b69d0e0d4cdccce54a1
2020-04-27 12:51:47 +00:00
Treehugger Robot
01db260858 Merge "mark platform un-availability" 2020-04-27 12:37:45 +00:00
Treehugger Robot
09ae364a54 Merge "enforce updatable apexes to set min_sdk_version" am: 4783297585
Change-Id: I45112b8d0d4c3b0d51ec41c604559d82913a8cdd
2020-04-27 10:07:57 +00:00
Treehugger Robot
4783297585 Merge "enforce updatable apexes to set min_sdk_version" 2020-04-27 09:56:32 +00:00
Jooyung Han
548640b55f enforce updatable apexes to set min_sdk_version
updatable APEXes should set min_sdk_version as well.

Bug: 152655956
Test: m
Change-Id: I8192086eb89fa958dd8ff1b731e43e24bf217ce2
2020-04-27 16:33:37 +09:00
Hsin-Yi Chen
4c01c57674 Merge "Add check_all_apis option for header ABI checker" am: 9105fa385a
Change-Id: I1f854ad5f30c2f1f2d01e5bed6a83945eff05f7a
2020-04-27 03:56:57 +00:00
Hsin-Yi Chen
9105fa385a Merge "Add check_all_apis option for header ABI checker" 2020-04-27 03:34:08 +00:00
Jiyong Park
b739f8d870 Merge "Add test_for property" am: 70b5c21270
Change-Id: I7f9f6fb820901f776f6dd4f402f542e7e667f840
2020-04-27 00:33:08 +00:00
Jiyong Park
70b5c21270 Merge "Add test_for property" 2020-04-27 00:13:50 +00:00
Nicolas Geoffray
e7314651b7 Merge "Add linux_bionic cross compilation for mainline SDKs." am: 1606fbfc99
Change-Id: Id7b2d51cbb21eb3156c9c1bc14569f0fba13c5d4
2020-04-26 10:26:27 +00:00
Nicolas Geoffray
1606fbfc99 Merge "Add linux_bionic cross compilation for mainline SDKs." 2020-04-26 10:12:53 +00:00
Nicolas Geoffray
71233e4732 Add linux_bionic cross compilation for mainline SDKs.
ART requires linux bionic prebuilts.

Bug: 142935992
Test: build-mainline-modules.sh
Change-Id: If0f97e58d2afccbc3f5d0b2e7dabac51330cc5c7
2020-04-25 16:25:21 +01:00
Treehugger Robot
75d9dae1e8 Merge "Set apex_available property" am: 8c79615594
Change-Id: I8b09cbc6eefb724d113a0678f8e7c97dad3027ba
2020-04-25 07:54:39 +00:00
Treehugger Robot
8c79615594 Merge "Set apex_available property" 2020-04-25 07:38:33 +00:00
Jiyong Park
62304bbeec Add test_for property
This change adds 'test_for' property to cc_test_* types. The property is
used to mark a module as a test for one or more APEXes, in which case
the module has accecss to the private part of the listed APEXes. For
example, the module is linked with the actrual shared library in the
APEX instead of the stub of the shared library.

Exempt-From-Owner-Approval: already +2'ed by owner

Bug: 129539670
Bug: 153046163
Test: m
Change-Id: I45ed0d7a15540b0d69b2a3b8d9c4cb202adff6f2
2020-04-25 06:25:42 +00:00
Yi Kong
e9f37da51d Merge "Disable ARM32 libgcc" am: 96447be640
Change-Id: I7bc48bd7761da539f8c539abf483cf6edd41f06f
2020-04-25 05:02:23 +00:00
Jooyung Han
5db882c1dc Merge "Apex: support codenames for min_sdk_version" am: 28a49820e4
Change-Id: I275667c14cd1e48296e11a2920e6ee0c64bab205
2020-04-25 04:53:35 +00:00
Yi Kong
96447be640 Merge "Disable ARM32 libgcc" 2020-04-25 04:44:37 +00:00
Jooyung Han
28a49820e4 Merge "Apex: support codenames for min_sdk_version" 2020-04-25 04:41:44 +00:00
Treehugger Robot
7b00b62a89 Merge "Repeat kapt processor argument for multiple processors" am: 52c0b7b35b
Change-Id: Ifb56e6cac2dd38c96be1ed3e0153258301469d51
2020-04-24 16:01:16 +00:00
Ivan Lozano
fffbd97afa Merge "Clean up rust tests." am: dc455395ee
Change-Id: I117a9497e9be9d12ec8b46a829867d5b92bc62f8
2020-04-24 16:00:52 +00:00
Treehugger Robot
52c0b7b35b Merge "Repeat kapt processor argument for multiple processors" 2020-04-24 15:51:13 +00:00
Ivan Lozano
dc455395ee Merge "Clean up rust tests." 2020-04-24 15:43:22 +00:00
Jiyong Park
89e850ab84 mark platform un-availability
A module is marked unavailable for platform when 1) it does not have
"//apex_available:platform" in its apex_available property, or 2)
it depends on another module that is unavailable for platform.

In that case, LOCAL_NOT_AVAILABLE_FOR_PLATFORM is set to true for the
module in the Make world. Later, that flag is used to ensure that there
is no module with the flag is installed to the device.

The reason why this isn't entirely done in Soong is because Soong
doesn't know if a module will be installed to the device or not. To
explain this, let's have an example.

cc_test { name: "mytest", static_libs: ["libfoo"]}
cc_library_static { name: "libfoo", static_libs: ["libbar"]}
cc_library { name: "libbar", apex_available: ["com.android.xxx"]}

Here, libbar is not available for platform, but is used by libfoo which
is available for platform (apex_available defaults to
"//apex_available:platform"). libfoo is again depended on by mytest
which again is available for platform. The use of libbar should be
allowed in the context of test; we don't want to make libbar available
to platform just for the dependency from test because it will allow
non-test uses of the library as well.

Soong by itself can't tell whether libfoo and libbar are used only in the
context of a test. There could be another module depending them, e.g.,

cc_library_shared { name: "mylib", static_libs: ["libfoo"] }

can exist and it might be installed to the device, in which case
we really should trigger an error.

Since Make has the knowledge of what's installed and what's not,
the check should be done there.

Bug: 153073816
Test: m
Test: remove "//apex_available:platform" from libmdnssd (it is currently
installed to /system/lib), and check that `m system_image` fails

Change-Id: Ia304cc5f41f173229e8a154e90cea4dce46dcebe
2020-04-24 21:40:13 +09:00
Treehugger Robot
2b4f7797d9 Merge "android_app_import is now ApexModule" am: 65c1d14cfa
Change-Id: Idcae9037bed05e59cdc52f7af41dd1ccd6ac13a1
2020-04-24 12:25:58 +00:00
Treehugger Robot
65c1d14cfa Merge "android_app_import is now ApexModule" 2020-04-24 12:12:23 +00:00
Ulyana Trafimovich
0f4722751b Merge "Add "updatable" property to ApexModule interface." am: dc9510537a
Change-Id: Ic4397e6cce28ecc7630ea7a7f974491118734000
2020-04-24 08:47:11 +00:00
Ulyana Trafimovich
dc9510537a Merge "Add "updatable" property to ApexModule interface." 2020-04-24 08:25:34 +00:00
Treehugger Robot
a1c10cf43c Merge "Remove libopus from apex_available whitelist" am: f4dc25b476
Change-Id: Ie099800f219f2325cb9b0441c07d7b1d0154d5c7
2020-04-24 00:50:37 +00:00
Treehugger Robot
f4dc25b476 Merge "Remove libopus from apex_available whitelist" 2020-04-24 00:33:59 +00:00
Nicolas Geoffray
ab70364c04 Merge "Add conscrypt-module-host-exports to the list." am: e4a4b6ac43
Change-Id: I4dbe9247b8159a01bfad0bd4d2e59cbf96ad806c
2020-04-23 18:11:45 +00:00
Nicolas Geoffray
e4a4b6ac43 Merge "Add conscrypt-module-host-exports to the list." 2020-04-23 17:57:18 +00:00
Matthew Maurer
2871fc0c2c Merge "Update Android's rustc version 1.40.0->1.42.0" am: 1f434b26c1
Change-Id: Ifb01144fe9908649ce0b22e2398419336453aaf2
2020-04-23 17:07:53 +00:00
Matthew Maurer
1f434b26c1 Merge "Update Android's rustc version 1.40.0->1.42.0" 2020-04-23 16:53:41 +00:00
Ivan Lozano
2f15bae336 Clean up rust tests.
The list of required deps for testing is a lot shorter as we no longer
include as many prebuilt libraries and our list of stdlibs is much
shorter. Remove the libraries we no longer need, and add the
non-prebuilt libstd and libtest to the deps generated for every test.

Bug: 153463188
Test: Soong tests pass.
Change-Id: I94f7b514797ab8d6aedb543ea6afdb07611b7293
2020-04-23 09:39:34 -04:00
Ulya Trafimovich
7c140d828a Add "updatable" property to ApexModule interface.
For a given variant of a module that implements ApexModule interface,
the "updatable" property tests if this variant comes from an updatable
apex. For platform variants it is always false.

Test: lunch aosp_walleye-userdebug && m nothing
Bug: 138994281
Change-Id: I2d4c54fb397e29dc9b3203be7fb17be4536529f7
2020-04-23 11:58:53 +01:00
Anton Hansson
bd6dbb3b56 Merge "Remove unused arguments in droiddoc" am: 14f42d34af
Change-Id: Ieab243dbb9f3c49f2df46bbf292c9e762b704180
2020-04-23 10:16:25 +00:00
Jiyong Park
592a6a41de android_app_import is now ApexModule
Like other prebuilts (java_import, etc.), android_app_import has now
became ApexModule. It means it supports APEX-specific properties like
apex_available, min_sdk_version, etc.

Bug: 154488897
Test: m
Change-Id: I86f02771496ffc68c98a50ddfc786788fa1e05fb
2020-04-23 19:02:04 +09:00
Anton Hansson
14f42d34af Merge "Remove unused arguments in droiddoc" 2020-04-23 09:56:40 +00:00
Nicolas Geoffray
0a2e297206 Add conscrypt-module-host-exports to the list.
Test: build-mainline-modules.sh
Change-Id: I9ca14cc37a69b1172f52412297977dd03c6ca1a0
2020-04-23 09:35:45 +01:00
Jooyung Han
47db5adb06 Remove libopus from apex_available whitelist
libopus sets its own apex_available property.

Bug: 150999716
Test: m
Change-Id: I4cff3ebb7e017a1fb629b18b72238acf3df0d26e
2020-04-23 15:54:23 +09:00
Jooyung Han
a1181069b0 Merge "Skip version mutator for host/ramdisk/recovery" am: 79519b6caf
Change-Id: Icd074f9808aa765bd4ebad522a4135dc5fe1914f
2020-04-23 04:01:26 +00:00
Jooyung Han
79519b6caf Merge "Skip version mutator for host/ramdisk/recovery" 2020-04-23 03:46:30 +00:00
Jooyung Han
624d35cb4d Skip version mutator for host/ramdisk/recovery
"version" mutator creates stubs variants for "cc" libraries with
"stubs.versions". These stubs are for APEX-APEX or APEX-Platform
boundaries.

For host/ramdisk/recovery variants, stubs are not necessary.

Exempt-From-Owner-Approval: cp from internal

Bug: 153698496
Test: m
Merged-In: Id576c4318d9d69246a4a7e2fb4145d5fd2ab9416
Change-Id: Id576c4318d9d69246a4a7e2fb4145d5fd2ab9416
(cherry picked from commit c40b5193fe)
2020-04-23 03:46:09 +00:00
Colin Cross
5a11686e64 Repeat kapt processor argument for multiple processors
kapt claims to support a comma separated list of annotation
processors, but it errors if multiple annotation processors
are given.  Surrounding the the list with {} does not error,
but it also doesn't even warn if the second element in the
list is garbage, so it may not be running the second
processor.  Repeat the processor argument for each
annotation processor class instead.

Bug: 154736649
Test: TestKapt
Test: m checkbuild
Change-Id: I4c7c161dbf867d7fba1aaf16fd5e502647e3f682
2020-04-22 20:43:37 -07:00
Oliver Nguyen
0c881d1d4d Merge "Only package gcno files for gcov coverage builds." am: 0e8579b4f1
Change-Id: Ief3e76ac42d3e25340f29b12542ccc42d3ef59fd
2020-04-23 01:00:03 +00:00
Oliver Nguyen
0e8579b4f1 Merge "Only package gcno files for gcov coverage builds." 2020-04-23 00:45:51 +00:00
Oliver Nguyen
0452678a40 Only package gcno files for gcov coverage builds.
Bug: 154550223
Test: m -j NATIVE_COVERAGE=true droid dist tests
Test: m -j CLANG_COVERAGE=true droid dist tests
Merged-In: I81598bcab8db105de6692156c001fc961409ce63
Change-Id: I81598bcab8db105de6692156c001fc961409ce63
2020-04-22 13:30:07 -07:00
Matthew Maurer
e972e8822b Update Android's rustc version 1.40.0->1.42.0
Test: cd external/rust/crates; mm
Bug: 152633654
Change-Id: Ic7cbc1869fdffa332033cecd4c4596775946d0e9
2020-04-22 13:22:25 -07:00
Anton Hansson
0f15a9f866 Remove unused arguments in droiddoc
Nothing passes these arguments, so it's dead code.

There is a lot of other cruft in this file that is effectively
dead code, but required further cleanup.

Bug: 152479829
Test: m
Change-Id: Ib2630d4d49f21003b17e2331b0900e8df0a27e66
Merged-In: Ib2630d4d49f21003b17e2331b0900e8df0a27e66
(cherry picked from commit 0ee713aa0e)
2020-04-22 21:15:09 +01:00