- Apr 25, 2019
-
-
Treehugger Robot authored
* changes: Pass --remove-tools-declarations to manifest merger Don't use merged manifest for android_library modules
-
Treehugger Robot authored
-
Colin Cross authored
-
- Apr 24, 2019
-
-
Colin Cross authored
Manifest merger needs --remove-tools-declarations to match Gradle behavior. Bug: 112607039 Test: m checkbuild Change-Id: Id93bcaeaf03770a4acd2e1fdf44e418f55540dd3
-
Colin Cross authored
Don't use the merged manifest for android_library modules. We still have to run manifest merger for android_library modules because Make can't handle transitive dependencies, so it will continue to merge the manifests at each library, and then merge the manifests of direct dependencies into the final application. Bug: 113294940 Test: m checkbuild Change-Id: Ia8f9f910bd0a134730ddf2d542460eeddbc0a075
-
Colin Cross authored
Hostdex modules sometimes need extra required modules, add target.hostdex.required. Bug: 131167818 Test: manual Change-Id: I599f3499f0b738556baeb27185371a42b4c2701b
-
Colin Cross authored
java_test_helper_library should product an installabler, dexed library, the same as java_test just without the auto-generated test config. Test: m checkbuild Change-Id: Ie573c1d24969ba9c4feb8a2e85f8969d5d713064
-
Colin Cross authored
Move exporting LOCAL_SOONG_PROGUARD_DICT from AndroidLibrary to Library so that it is exported for java_library modules. Test: m checkbuild Change-Id: I27ea08ad8ba9072d0648c141cdbaf447c5268f91
-
Colin Cross authored
Robolectric needs to reference some modules declared with java_host_for_device and java_device_for_host from Make for now. Bug: 122331577 Test: m checkbuild Change-Id: I09b3848edb120f2c3ee16b449b937b650f59811b
-
- Apr 23, 2019
-
-
Jaewoong Jung authored
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Inseob Kim authored
This is to migrate sepolicy Makefiles into Soong. For the first part, file_contexts, hwservice_contexts, property_contexts, and service_contexts are migrated. Build-time tests for contexts files are still in Makefile; they will also be done with Soong after porting the module sepolicy. The motivation of migrating is based on generating property_contexts dynamically: if we were to amend contexts files at build time in the future, it would be nicer to manage them in Soong. To do that, building contexts files with Soong can be very helpful. Bug: 127949646 Bug: 129377144 Test: 1) Build blueline-userdebug, flash, and boot. Test: 2) Build blueline-userdebug with TARGET_FLATTEN_APEX=true, flash, and boot. Test: 3) Build aosp_arm-userdebug. Change-Id: I49206e656564206d6f7265206361666665696e65
-
Treehugger Robot authored
-
- Apr 22, 2019
-
-
Colin Cross authored
cc_binary_host on mac uses ctx.Config().HostSystemTool(), which needs PATH in the test environment. Copy it from the original environment. Fixes: 129763458 Test: proto_test.go Change-Id: I41c1acdceee7c35036148256adafb471871034df
-
Jaewoong Jung authored
The new system collects all Android.mk variable assignments using a map and writes them to io.Writer. Compared to the previous system, which directly writes all entries to buffers, this new system is more robust and test-friendly. Test: Built without prebuilt_etc.go change and diffed the mk output. Test: prebuilt_etc_test.go Change-Id: Idd28443d129ff70053295015e69328a8fa3eca47
-
Colin Cross authored
-
Dan Willemsen authored
This changes the default behavior of pom2bp to match pom2mk, and not require pre-extraction of all of the manifests. Test: convert an internal pom2mk user to pom2bp Change-Id: I08120cce1f923ef28519563ffd772032b2e500ed
-
- Apr 21, 2019
-
-
Colin Cross authored
-
Dan Willemsen authored
Test: use pom2mk -jetifier to replace some hand-modified makefiles Change-Id: I2a1988d0120fee1edf2d85c8b3294041840efe7c
-
Dan Willemsen authored
It was not printing out the flag descriptions because it was using the default FlagSet instead of the custom FlagSet when calling PrintDefaults. Test: soong_zip --help Change-Id: I8a5705f8701ce0c05dde144b9a14962faa384e65
-
- Apr 20, 2019
-
-
Treehugger Robot authored
-
Jiyong Park authored
-
- Apr 19, 2019
-
-
Treehugger Robot authored
* changes: Obsolete BUILD_BROKEN_DUP_COPY_HEADERS Obsolete BUILD_BROKEN_PHONY_TARGETS
-
Yi Kong authored
-
Dan Willemsen authored
There are no remaining users. Test: treehugger Change-Id: If8719480f73a8fa009d9733479390d2abd4021b1
-
Dan Willemsen authored
There are no remaining users. Also mark BUILD_BROKEN_ANDROIDMK_EXPORTS and BUILD_BROKEN_ENG_DEBUG_TAGS as deprecated in scripts/build_broken_logs.go Test: treehugger Change-Id: If7892bef1b9001f12a99565f886b395cf1985e70
-
Treehugger Robot authored
-
Yi Kong authored
Test: TreeHugger Bug: 129712936 Change-Id: I15f1db69de86ad8b9f2a0ae086fa2df87835948a
-
Jiyong Park authored
prebuilt_test is amended to ensure f2976304 is not broken. PathsForModuleSrc is called to check if the file is from correct module (either from source or prebuilt module) Bug: 130627486 Test: m Change-Id: Ic5f467fbc2837727df92102530687e967cd5529f
-
Jiyong Park authored
Target SDK version is used for targeting an APEX to a specific set of platform builds. Usually, the targeting is unrestricted (in case the APEX can run on all platforms), or based on platform SDK version (e.g. 28 for P). However, when the platform is under development and SDK is not finalized, the targeting should be much more fine-grained; the APEX should be targeted to a very specific build that supports the same set of APIs that the APEX was built against. To support that, target sdk version is automatically set by the build system. When the platform is released or SDK is finalized, the target sdk version set to the SDK version number. If not, it is set to <version_code>.<fingerprint> (e.g., Q.123456). Note that the target sdk version set by the build system is used only when the target sdk version is not explicitly set in AndroidManifest.xml. Bug: 130541924 Test: UNBUNDLED_BUILD_SDKS_FROM_SOURCE=true \ UNBUNDLED_BUILD_TARGET_SDK_WITH_API_FINGERPRINT=true \ TARGET_BUILD_APPS=com.android.tzdata m build.ninja has --target_sdk_version Q.$$(cat out/soong/api_fingerprint.txt) Test: aapt dump badging out/dist/com.android.tzdata.apex | grep \ targetSdkVersion shows: targetSdkVersion:'Q.6ee443d9ad5f0cca7a43cfa97b7fc62a' Change-Id: I086230d787f01075c28fc3f0163550300fa00212
-
Jiyong Park authored
PathsForModuleSrc does not work if a source module is replaced with a prebuilt module. This is because the function uses GetDirectDepWithTag with the name of the original source module. Since the dependency is replaced and the prebuilt module has the name "prebuilt_<name>", the search always fails. Fixing this by re-implementing GetDirectDep* functions inside Soong using VisitDirectDep. Bug: 130627486 Test: m Change-Id: I68d52668283c429d5e93c7f2c81f6a8db1f24893
-
- Apr 18, 2019
-
-
Colin Cross authored
Use codename.fingerprint format for targetSdkVersion if it is unset in the manifest and UNBUNDLED_BUILD_TARGET_SDK_WITH_API_FINGERPRINT=true. Test: manual Bug: 130541924 Change-Id: I4e3b1274cc32038b00b292dc6d67559eb320e9e4
-
Colin Cross authored
Move the rules to build framework.aidl into Soong, and use it when compiling aidl files with sdk_version: "current". Also fixes incorrectly using the aidl includes exported by the "framework" module when the proguardRaiseDep dependency was added. Bug: 130798034 Test: sdk_test.go Change-Id: I126adf1d9e7b6acb528875ff62b974ba7ad9a337
-
Treehugger Robot authored
-
Colin Cross authored
This will help avoid merge conflicts between branches that have additional default libraries. Test: sdk_test.go Change-Id: I98d5b8b2ea939df7ef57686f3bd913d6a21edc5d Merged-In: I98d5b8b2ea939df7ef57686f3bd913d6a21edc5d
-
Dan Willemsen authored
-
Dan Willemsen authored
Bug: 130787336 Test: m oemaids_header_gen oemaids_headers passwd group Test: Set TARGET_FS_CONFIG_GEN to a list of paths Change-Id: Ic1f7d38239f3f805ca0723c24005d3e18a811870
-
Pirama Arumuga Nainar authored
-
Sasha Smundak authored
Some module types (`android_test`, etc.) set `optimize.enabled` by default. If such module happens to have `defaults` attribute which clears `optimize.enabled`, the latter value is ignored. Fixes: 129858282 Test: unit tests in java_test.go, `atest CtsExtendedMockingTestCases` succeeds with aog/936802 reverted (that is, with cts/test/mocking converted to Android.bp) Change-Id: Ib8e3a0ab0bd489d70ed07f626082aeae31c45e7c
-