aboutsummaryrefslogtreecommitdiffstats
path: root/Android.bp
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-10.0.0_r31' into lineage-17.1-android-10.0.0_r31Luca Stefani2020-03-071-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Android 10.0.0 release 31 * tag 'android-10.0.0_r31': Revert submission 9940985-qpr1-dev merge Revert submission 9919844-manual r1 merge DO NOT MERGE: Add tradefed_java_library_host DO NOT MERGE: Add tradefed_java_library_host DO NOT MERGE: Add tradefed_java_library_host Switch to clang-r353983c1. Switch to clang-r353983d Shard gensrcs modules into multiple commands Move sharding functions for reuse Rewrite depfile from sbox to stay reproducible Support RuleBuilder.Sbox to wrap commands in sbox Update droidstubs build target Change-Id: Iff6698461ec43d1c74e70e3a693ebd028fe7b8b7
| * Revert submission 9940985-qpr1-dev mergeKimberly Kreider2019-12-201-1/+0
| | | | | | | | | | | | | | | | | | | | Reason for revert: broke tests b/146476630 Bug: 146476630 Reverted Changes: Change-Id: I48c73bcb0819f7cb4c41834cdd680e9e6c323be7 Exclude all builds containing Colin's original change Meged-In: f0f2e2cf79558569c227e8d96a784d9c0679814a
| * DO NOT MERGE: Add tradefed_java_library_hostColin Cross2019-12-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Add a module type for tradefed libraries that causes an additional copy to be installed at out/host/linux-x86/tradefed. Bug: 143908003 Exclude merging into *-plus-aosp branches, since they already include the change. Merged-In: I670345494abbad80dacab54471e635abfae3b3b3 Merged-In: I1cb25bbd5823a14f1a9428d58827677eff22ec7e Change-Id: I55bca53e02588827374896ef87d58f3f4bdc48c7 (cherry picked from commit f0f2e2cf79558569c227e8d96a784d9c0679814a) (cherry picked from commit cba45b28925b2fb3ebbd9e281a185de0d2b8b0c7)
| * Support RuleBuilder.Sbox to wrap commands in sboxDan Willemsen2019-11-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This essentially allows you to declare that everything in a directory will be created by the rule, and we'll ensure that your command actually writes out all of the claimed outputs, and remove any other files that previously existed in that directory. Bug: 144948629 Test: built-in tests Change-Id: I990dce2b3a0d89ebd2736ac1a0cadfb5864c6e73 Merged-In: I990dce2b3a0d89ebd2736ac1a0cadfb5864c6e73 (cherry picked from commit 633c50229544db07f48e75833cab655a294f677d)
* | soong: Give priority to modules in exported namespaces for bootjarsSam Mortimer2019-12-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Looking for modules that provide a boot jar is currently done by module name match only. This breaks when you have multiple copies of the same module in your build tree (eg in another device). * Add a new mutator that marks the modules that should be used for bootjar content. * The logic is simple: give priority to modules that are in exported soong namespace. Change-Id: I2476174b892475c14a9f10b5e66b8496186f81c0
* | soong: extend with lineage board flagsSimon Shields2019-12-111-0/+1
|/ | | | | | | | | | | | | Includes the following commit: Author: Simon Shields <simon@lineageos.org> Date: Mon Sep 4 21:09:44 2017 +1000 soong: explicitly specify name of Lineage variables struct Change-Id: Ic754b8a13658ddc40620f985581bd1754b780b15 Change-Id: If127c9da6b57340ae57e0cf725151cdcc3c82ef3
* Optionally embed NOTICE files in apks.Jaewoong Jung2019-06-251-0/+1
| | | | | | | | | | | | | If embed_notices or ALWAYS_EMBED_NOTICES is set, collect NOTICE files from all dependencies of the android_app, merge them with the app's own one (if exists), transform it to HTML, gzip it, and put it as an asset in the final APK output. Bug: 135460391 Test: app_test.go + Built Mainline modules Change-Id: I52d92e2fd19b3f5f396100424665c5cc344190d8 Merged-In: I52d92e2fd19b3f5f396100424665c5cc344190d8 (cherry picked from commit 5b425e2e20c55216c1ed13fcf047b0df33886736)
* Support using cc_prebuilt_library_shared with cc_libraryColin Cross2019-06-031-0/+1
| | | | | | | | | | | | | Allow a cc_prebuilt_library_shared to share the same name as a cc_library by always creating static and shared variants of prebuilts so that the variants of the source module are always a superset of the variants of the target module. Bug: 131709055 Test: TestPrebuilts Change-Id: I4afd6d37e6a986d08ad25aee69eca6d994febc6b Merged-In: I4afd6d37e6a986d08ad25aee69eca6d994febc6b (cherry picked from commit 33b2fb73335547e39bdad764af249f948eb43935)
* Revert "Revert "Strip libgcc to only keep fallback symbols""Yi Kong2019-05-071-0/+111
| | | | | | | | | | This reverts commit 619cd098b6008d81876f310e2d83ebf141c4061e. Test: manual testing Bug: 130267141 Change-Id: Ie156d4a3255be0ad082cda35c22bac4359852f22 Merged-In: I5b349fa6138e51663bf3b67109b880b4356da8e8 Exempt-From-Owner-Approval: Cherry pick
* Revert "Strip libgcc to only keep fallback symbols"Colin Cross2019-05-061-111/+0
| | | | | | | | | | This reverts commit bd475367c3dcb4478a70409c99b959ebdb117be3. Reason for revert: b/130267141 Bug: 29275768 Bug: 130267141 Merged-In: I5b349fa6138e51663bf3b67109b880b4356da8e8 Change-Id: Ieab56390b27240ef7f2f52a48a673809da7bcf8e
* Strip libgcc to only keep fallback symbolsYi Kong2019-05-031-0/+111
| | | | | | | | | | | | | | We use libgcc as fallback for symbols not present in libclang_rt builtins, however we didn't know what exact symbols were being used, some may not be intended to fallback. Create libgcc_stripped, which only contains unwind symbols from libgcc. Bug: 29275768 Test: bionic-unit-tests Change-Id: I98df02ead7f6cca4e76ec92d4f880de4e03f5b5c Merged-In: I5b349fa6138e51663bf3b67109b880b4356da8e8 (cherry picked from commit acee27cd7236554d0112001c96b9b5790c1c7097)
* Move proto compilation to RuleBuilder am: 19878da6a0 am: 61918685aaColin Cross2019-04-021-0/+1
|\ | | | | | | | | | | am: c8a3eb9110 Change-Id: If3922ee1900d6f3888c7291997ac49d4a939c065
| * Move proto compilation to RuleBuilderColin Cross2019-04-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Using blueprint.Rule for protoc commands was causing code duplication because there was no good way to run the same protoc for cc, java and python but then run custom source packaging steps for java and python. Move most of the code into a common function that returns a RuleBuilder, and then let java and python add their own commands at the end of the rule. Bug: 70706119 Test: All Soong tests Test: m checkbuild Change-Id: Ic692136775d273bcc4f4de99620ab4878667c83a
* | Merge "Add override_android_app module type." am: e9665723da am: 9874d6abe6Jaewoong Jung2019-03-221-0/+1
|\| | | | | | | | | | | am: c3432e294e Change-Id: I28638a23c6140ae1775187a2afc61b15db97f487
| * Add override_android_app module type.Jaewoong Jung2019-03-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | This is a new implementation of overriding module types that makes use of local variants. With this, product owners can use PRODUCT_PACKAGES to decide which override module to include in their products. Bug: 122957760 Bug: 123640028 Test: app_test.go Change-Id: Ie65e97f615d006b6e9475193b6017ea9d97e8e97
* | Add support for no-vendor-variant VNDK am: efd249e62a am: 409b1d2375Vic Yang2019-03-201-0/+1
|\| | | | | | | | | | | am: 89ac74fed3 Change-Id: I11df12e61cab3d3f694573a558fe8862023e475c
| * Add support for no-vendor-variant VNDKVic Yang2019-03-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When no-vendor-variant VNDK is enabled, the vendor variant of VNDK libraries are not installed. Since not all VNDK libraries will be ready for this, we keep a list of library names in cc/vndk.go to indicate which libraries must have their vendor variants always installed regardless of whether no-vendor-variant VNDK is enabled. Also add --remove-build-id option to the strip script to facilitate the check of functional identity of the two variants. Bug: 119423884 Test: Add a dummy VNDK library and build with TARGET_VNDK_USE_CORE_VARIANT := true, with the corresponding build/make change. Change-Id: Ieb1589488690e1cef1e310669a8b47a8b8759dac
* | Add path properties mutator am: 1b48842a4b am: ad566c5829Colin Cross2019-03-071-0/+2
|\| | | | | | | | | | | am: 4d59c54239 Change-Id: I2bb82329702aa861411e739643d289cffdcf36bb
| * Add path properties mutatorColin Cross2019-03-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Add a mutator pass after DepsMutator that visits every property struct in every module looking for properties that have a tag `android:"path"`, and automatically add a SourceDepTag dependency on any module references (":module-name") found. Uses a cache to store the mapping of property struct type to locations of properties with the tag. Test: android/path_properties_test.go Change-Id: I38c0497843dde4890e9342c3a6f0b402c0720742
* | Merge "Add modules for converting java modules between host and device" am: ↵Colin Cross2019-03-051-0/+2
|\| | | | | | | | | | | | | | | e3ad4144db am: d5f25c7685 am: 3ce8fedd9a Change-Id: I09f01ae076b93cdec5b738eed00c2d7a40e5555d
| * Add modules for converting java modules between host and deviceColin Cross2019-03-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | java_device_for_host and java_host_for_device allow treating a device module as a host module and vice versa. They will be useful for converting layoutlib and robolectric to Soong, as these modules run device java code on the host. Bug: 117920228 Test: device_host_converter_test.go Change-Id: Ia9a371fb41a97bc16338097f3ce8b40099744167
* | Add dexpreopt_bootjars_test.go am: 762286723a am: 2c81ab734fColin Cross2019-03-041-0/+1
|\| | | | | | | | | | | am: 15836b9ceb Change-Id: I4d047c47d783f6e788eeccdf83dab646338d15d8
| * Add dexpreopt_bootjars_test.goColin Cross2019-03-051-0/+1
| | | | | | | | | | | | | | Add a test that exercises the dexpreopt_bootjars.go singleton. Test: dexpreopt_bootjars_test.go Change-Id: I01d4f6e22f6ff7b809af043391d7b6209dcb8675
* | Merge "Add support for including py_binary and *_go_binary in apexs" am: ↵Alex Light2019-02-281-0/+1
|\| | | | | | | | | | | | | | | f8711f053c am: 6b7ea48868 am: 95333c25e5 Change-Id: I87ec345448112a7e06d8d8adb7cda1493a9f0b70
| * Add support for including py_binary and *_go_binary in apexsAlex Light2019-03-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | These additional binary types are useful for some apexs. Add the ability to include them. Due to the nature of the resulting artifacts only py binaries with embedded launchers and host go binaries are supported. Test: m com.android.support.apexer Bug: 119332365 Bug: 119332362 Change-Id: I27c253d3647cf7bbe15896610d7a74a5f93e8bec
* | Merge "Revert "Add override_module."" am: ef36053829 am: 4ab2e63974Jaewoong Jung2019-02-281-1/+0
|\| | | | | | | | | | | am: d26cc522ac Change-Id: Iab70e8d689eea96831afd4f3b696122b98c99d9b
| * Revert "Add override_module."Jaewoong Jung2019-02-281-1/+0
| | | | | | | | | | | | | | | | This reverts commit aa65e17016152d0d73cd10ab3987bc3bd5c2ef91. Reason for revert: Not compatible with PRODUCT_PACKAGES, and so has very limited use. Change-Id: Ib141d3984a6f12bb50989e66037494c466b066f1
* | Merge "Add override_module." am: b709575a75 am: e8eaf4608dJaewoong Jung2019-02-271-0/+1
|\| | | | | | | | | | | am: b44bb0896b Change-Id: I4c8faef56835a1e7d334f8dade5623c9ea07df3e
| * Add override_module.Jaewoong Jung2019-02-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | This new module type replaces the inherit-package function in make by allowing developers to override the name, the certificate, and the manifest package name of an android_app module. Bug: 122957760 Fixes: 123640028 Test: app_test.go + BrowserGoogle Change-Id: Iefe447e7078b25039233221361ef95c83a29973a
* | Refactor dexpreopt_bootjars.go to prepare for multiple boot images am: ↵Colin Cross2019-02-221-0/+1
|\| | | | | | | | | | | | | | | 44df581457 am: ac405aa805 am: d3a73010f9 Change-Id: I53abda3e3b15969402580825480f76bc18a9d9de
| * Refactor dexpreopt_bootjars.go to prepare for multiple boot imagesColin Cross2019-02-201-0/+1
| | | | | | | | | | | | | | | | | | Refactor dexpreopt_bootjars.go so that buildBootImage can be called with a bootImageConfig to create rules to build the boot image in preparation for building multiple boot images. Test: m checkbuild Change-Id: I7ba40a0988c8acbd6c1ee4e36f4bbb34fb4e2d24
* | Merge "Implement vts_config module" am: e344fb5fb1 am: a4f4607862Sasha Smundak2019-02-201-0/+2
|\| | | | | | | | | | | am: dd36b0ccf3 Change-Id: I71493cdabc1dd62b74d35b1ab47f02d50762539f
| * Implement vts_config moduleSasha Smundak2019-02-191-0/+2
| | | | | | | | | | | | | | Test: internal (see android/vts_config_test.go) + run 'm vts' and check that host/linux-x86/vts/android-vts.zip remians the same Change-Id: I0249a974a240e7669c3b9378c17739df8e120873 Fixes: 122617100
| * Add java/testing.go for sysprop_test.goColin Cross2019-02-161-0/+1
| | | | | | | | | | | | | | | | | | Share more of the setup code for java tests to sysprop_tests.go. Test: java_test.go, sysprop_test.go Change-Id: I0e3b287bf188c432d995a9a91a18ebef12aa47d1 Merged-In: I0e3b287bf188c432d995a9a91a18ebef12aa47d1 (cherry picked from commit b19745363f3cc59ffd46c664997602f250892d4d)
* | Move dexpreopting of boot jars into Soong am: 800fe13146 am: 7982dc9f45Colin Cross2019-02-181-0/+1
|\| | | | | | | | | | | am: 7961c04510 Change-Id: I529950a46e2869d0b2a116738db239ed00a3e354
| * Move dexpreopting of boot jars into SoongColin Cross2019-02-151-0/+1
| | | | | | | | | | | | | | | | Implement the dexpreopting of boot jars in singleton rules in Soong. Test: m checkbuild Change-Id: Ic02ce941fa5e238b839b3eb4c06a3e10c62d98ff
* | Add java/testing.go for sysprop_test.goColin Cross2019-02-151-0/+1
| | | | | | | | | | | | | | Share more of the setup code for java tests to sysprop_tests.go. Test: java_test.go, sysprop_test.go Change-Id: I0e3b287bf188c432d995a9a91a18ebef12aa47d1
* | Create sysprop_library soong module am: c0907f191a am: 92053b977eInseob Kim2019-02-131-0/+22
|\| | | | | | | | | | | am: 751a2cb98a Change-Id: Ie9976968934c4231492af4ad4cbbcfe38790f040
| * Create sysprop_library soong moduleInseob Kim2019-02-131-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A newly introduced sysprop_library soong module will generate a java_sdk_library and a cc_library from .sysprop description files. Both Java modules and C++ modules can link against sysprop_library module, thus giving consistency for using generated sysprop API. As Java controls accessibility of Internal / System properties with @hide and @SystemApi, 2 different header files will be created. And build system will selectively expose depending on the property owner and the place where the client libraries go into. Bug: 80125326 Bug: 122170616 Test: 1) Create sysprop_library module. Test: 2) Create empty txt files under prebuilts/sdk. Test: 3) Create api directory, make update-api, and see changes. Test: 4) Try to link against sysprop_library with various clients. Test: 5) Soc_specific, Device_specific, Product_specific, recovery flags work as intended. Change-Id: I78dc5780ccfbb4b69e5c61dec26b94e92d43c333
* | Merge changes from topic "hiddenapi" am: 4c3a4aded3 am: 19807e619eColin Cross2019-02-071-0/+1
|\| | | | | | | | | | | am: ab9bfa1617 Change-Id: I148138a6723926af54620c6ce3379fdb61ed9e08
| * Move hiddenapi singleton rules to SoongColin Cross2019-02-061-0/+1
| | | | | | | | | | | | | | | | | | | | Move the rules that build hiddenapi-stubs-flags.txt, hiddenapi-flags.csv and hiddenapi-greylist.csv into Soong. Bug: 123645297 Test: m checkbuild Test: m UNSAFE_DISABLE_HIDDEN_API_FLAGS=true Change-Id: I90bf58710f6153ee8565994f799d3ec5699bc7fa
* | Merge changes Ifcb338e6,Ie509ed80,I270fed60,Id825cb75,I92a963bd am: ↵Colin Cross2019-02-051-0/+3
|\| | | | | | | | | | | | | | | cc2d11961c am: 9053375b93 am: 31cabeea1c Change-Id: I3abcc60539de84d3365df989de341b4bb3e1db09
| * Prepare for a type-safe OnceKeyColin Cross2019-02-061-0/+1
| | | | | | | | | | | | | | | | | | Add an opaque OnceKey type and use it for all calls to Once in build/soong. A future patch will convert the arguments to Once* to OnceKey once users outside build/soong have been updated. Test: onceper_test.go Change-Id: Ifcb338e6e603e804e507203c9508d30ffb2df966
| * Move dexpreopt.Script to android.RuleBuilderColin Cross2019-02-051-0/+2
| | | | | | | | | | | | | | | | Move dexpreopt.Script to android.RuleBuilder so that the builder style can be used in more places. Also add tests for it. Test: rule_builder_test.go Change-Id: I92a963bd112bf033b08899e930094b908acfcdfd
* | Merge "Add sh_binary[_host] for shell script that should be installed as ↵Dan Willemsen2019-01-311-0/+1
|\| | | | | | | | | | | | | | | executable" am: bfd1830c32 am: f0ad602157 am: d8d66fc214 Change-Id: I6c81463972435906c8e3b5a01a8b40a047d37c77
| * Add sh_binary[_host] for shell script that should be installed as executableDan Willemsen2019-01-281-0/+1
| | | | | | | | | | | | | | | | | | We've been putting these in cc_prebuilt_binary, but that's not really correct. It also tries adding '.exe' to the end of windows executables, which isn't desirable for bat files. Test: Use sh_binary_host Change-Id: Idd5418dceb81ac55b766c987fbb69a810aeb8a3b
* | Optimize filterArchStruct when nothing is filtered am: cb9880786d am: f53ca3118fColin Cross2019-01-251-0/+1
|\| | | | | | | | | | | am: 86ff01700f Change-Id: If208b1da532c0a1f03682fa9323e5b60686bb179
| * Optimize filterArchStruct when nothing is filteredColin Cross2019-01-251-0/+1
| | | | | | | | | | | | | | | | | | | | Runtime-created struct types have limit on the name of the type, which is the full text of the fields in the struct. Avoid creating runtime struct types when filtering produces an identical struct. Also add tests and godoc for filterArchStruct. Test: arch_test.go Change-Id: If7eb27ea9e72073d5252e93f2110b08889ed76b1
* | Support building for Fuchsia. am: c32c6b0d79 am: ac2925f410Doug Horn2019-01-241-0/+2
|\| | | | | | | | | | | am: b85599e803 Change-Id: I6ef28e11e3fbe3dc3217ae7b1c05f39ada1ebbd3
| * Support building for Fuchsia.Doug Horn2019-01-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | This CL adds configs for the arm64 and x64 fuchsia device targets, sets up the necessary linker flags, and disables some functionality that is not currently supported on Fuchsia. Bug: 119831161 Test: Compile walleye, internal validation against fuchsia_arm64-eng and fuchsia_x86_64-eng. Change-Id: I2881b99d2e3a1995e2d8c00a2d86ee101a972c94