- Apr 24, 2018
-
-
Alex Light authored
Some tools (i.e. you-complete-me) make use of a 'compdb' file (compile_commands.json) that records (among other things) the arguments needed to compile a file. These tools can use this with libclang to provide semantic completions and perform other IDE actions. This CL adds support for soong to generate a (simple) compile_commands.json file. Test: make SOONG_GEN_COMPDB=1 SOONG_LINK_COMPDB_TO=$ANDROID_BUILD_TOP nothing examine $ANDROID_BUILD_TOP/compile_commands.json Change-Id: I751bb344b90dfcdad1dfd71c2a85bacd345f0464
-
- Apr 20, 2018
-
-
Pirama Arumuga Nainar authored
Bug: http://b/73768157 Test: Mark 'use_clang_lld: true' for one arch of a module and verify by inspection that only that arch variant uses lld. Change-Id: I4b0d7a2bc43ee0b8462ab09a5f5c50807129a7fb
-
Colin Cross authored
-
- Apr 19, 2018
-
-
Colin Cross authored
Static android libraries should not get the product-specific flags. Bug: 73724997 Test: m checkbuild Change-Id: I89e8c0a3fb788b18ee6603e9d21c9b9a5275f42f
-
Treehugger Robot authored
-
Chih-hung Hsieh authored
-
Treehugger Robot authored
-
Jiyong Park authored
This change is to let people to just copy & paste the update command Test: break the ABI of libbinder intentionally and make. The message includes absolute path to the create_reference_dump.py tool. Change-Id: If7703d64be1f51ea4b054aa1e815276e1d6dbc14
-
- Apr 18, 2018
-
-
Jiyong Park authored
java_sdk_library is to make a Java library that implements optional SDK APIs to apps. It is actually a wrapper for several modules: 1) stubs library that clients are linked against to, 2) droiddoc module that internally generates API stubs source files, 3) the real runtime shared library that implements the API, and 4) XML file for adding the runtime lib to the classpath at runtime if requested via <uses-library>. Note: this is only the initial CL for the feature. Followings are features currently missing and under development. 1) check for API consistency 2) install stubs libs as the dist artifacts 3) ensuring that apps have appropriate <uses-library> tag 4) disallowing linking to the runtime shared lib 5) HTML generation Bug: 77575606 Test: m -j Change-Id: I4a4ccf6e730e041703c63bb275d8860d0de96887
-
Colin Cross authored
-
Colin Cross authored
-
Colin Cross authored
aapt2 --min-sdk-version was using AppsDefaultVersionName(), which is OMR1 for a non-finalized SDK, but 8.1.0 after finalization. Add PlatformSdkCodename() for non-finalized SDKs, use it for DefaultAppTargetSdk(), and pass it for aapt2 --min-sdk-version. Bug: 78224641 Test: TestAppSdkVersion in app_test.go Change-Id: I622eaf92f8a940f79007c2a579536da325700b06
-
Pirama Arumuga Nainar authored
Bug: http://b/64121881 Bug: http://b/78188880 - Allow filegroup's properties to be extended by a LoadHook - Support a filegroup (':module') in a prebuilt's 'Srcs' property to export files from a different path as the prebuilt's sources. This change also includes a refactoring that moves genrule/filegroup.go to android/filegroup.go so that FileGroupFactory is visible in prebuilt_test.go. Test: Test https://android-review.googlesource.com/c/platform/development/+/469159 in clang-tools branch on Linux, Darwin. Test regular build in aosp/master. Change-Id: I3ff6215ab2e62955f039fd1086c31f1bd50ebcf6
-
Anton Hansson authored
-
Anton Hansson authored
Make is moved over in aosp/661963. Bug: 77525052 Test: make Change-Id: I04ea58964df3d4149ef09ab7ca9238336d338a06
-
- Apr 17, 2018
-
-
Chih-Hung Hsieh authored
* Add -fuse-ld=lld to hostGlobalLldflags. * Set up *ClangLldflags variables for hosts. They are the same as *ClangLdflags, but could be changed in the future. Bug: 73768157 Test: make checkbuild Change-Id: I3d61504ab7262d472bbf933df7c1a9bef62519e1
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Jayant Chowdhary authored
Bug: 78118272 Bug: 72225642 Test: SKIP_ABI_CHECKS=true mm -j64 in external/libjpeg-turbo; no abi dumping / diffing happens Test: SKIP_ABI_CHECKS=false mm -j64 in external/libjpeg-turbo; abi dumping / diffing happens Test: SKIP_ABI_CHECKS=foo mm -j64 in external/libjpeg-turbo; abi dumping / diffing happens Change-Id: I6330bc6de81abd589e78572af8efdf70d4c69b80
-
Colin Cross authored
LOCAL_RESOURCE_DIRS puts the highest priority overlay first, but aapt2 expects the highest priority overlay last. Soong stores the list in aapt2 order (low to high priority), but that means when it exports to Make as LOCAL_SOONG_RRO_DIRS, which goes to build_rro_package.mk and then package_internal.mk, it gets reversed again and comes out backwards. Bug: 78032566 Test: m checkbuild Change-Id: If72bf929fbf1d126f9051a2f21ec1eb4e3030e6e
-
Dan Willemsen authored
When we're doing ABI diffing, we run something like: (run-abi-diff) || (echo && exit 1) When `dist` is added, we attempt to copy out the result: (run-abi-diff) || (echo) && (copy && exit 1) But this always fails, since it will always run exit 1. We really want the parenthesis around the entire second section. This change switches it to: (run-abi-diff) || (echo && (copy) && exit 1) This matches the behavior before Iae25374fe937a0cbe8a8ddf9e23c3bc1f62bbb2a Test: treehugger on P Change-Id: Ic39da4d4630ee950b811ec7854d55d65c52f8661
-
Treehugger Robot authored
-
Treehugger Robot authored
* changes: Fix androidmk_test.go import ordering Add support for android_library modules
-
- Apr 16, 2018
-
-
Treehugger Robot authored
-
Colin Cross authored
Test: m checkbuild Change-Id: I9fb94f22a157ffb9369eea071a867289c37cf026
-
Colin Cross authored
Add support for compiling android_library modules into AARs, and refactor app support on top of it. Bug: 73724997 Test: app_test.go Change-Id: I1dfac5fffe577c6680bc4709147b2061eb7d819c
-
Colin Cross authored
* changes: Add more androidmk translations for android libraries Merge matching properties in bpfix Make bpfix not modify the input tree
-
Colin Cross authored
Rename was expecting fully qualified names, but context.go always passes it short names. Bug: 77922456 Test: TestRename in namespace_test.go Change-Id: I552ff39fd8ed6ba6da4262925060b45104840ff7
-
Colin Cross authored
Add support for translating LOCAL_MANIFEST_FILE, LOCAL_RESOURCE_DIR LOCAL_SHARED_ANDROID_LIBRARIES, and LOCAL_STATIC_ANDROID_LIBRARIES. Use the presence of non-empty LOCAL_RESOURCE_DIR, LOCAL_SHARED_ANDROID_LIBRARIES or LOCAL_STATIC_ANDROID_LIBRARIES to convert a java_library_static into an android_library module, and then squash LOCAL_SHARED_ANDROID_LIBRARIES into LOCAL_SHARED_LIBRARIES and LOCAL_STATIC_ANDROID_LIBRARIES into LOCAL_STATIC_LIBRARIES. Test: androidmk_test.go Change-Id: I3ad2a3561f69ebd097eca97cb170754d64e06123
-
Colin Cross authored
androidmk will start to generate multiple static_libs: properties in a single module, add a pass in bpfix to fix them up into a single property. Test: bpfix_test.go Change-Id: I30955b6efbb767c02ba77f2f18d44951ef094bad
-
Colin Cross authored
Make a new object called Fixer to hold the state of the tree, and make a copy of the input tree so the original doesn't get modified. Test: bpfix_test.go Change-Id: I1dc6fd99158c8b0e1db029df99e6cf72699a5e63
-
- Apr 13, 2018
-
-
Makoto Onuki authored
Bug: 78030154 Test: Tested with an internal test module. Change-Id: Ifaefb7cba2eb491b62fa3b398fee931ab667575f
-
Nan Zhang authored
Some modules only need the documentation instead of the stubs. And fix a small issue for arg name passed to standard javadoc. Test: m -j dx-docs and check the build.ninja Bug: b/70351683 Change-Id: Ic47c53db12db6f2632349e48c4a626a4f432f447
-
- Apr 12, 2018
-
-
Chih-Hung Hsieh authored
* USE_CLANG_LLD is unedefined in current builds. * When USE_CLANG_LLD is defined to 'true' or '1', use clang's lld instead of ld or ld.gold. * When lld is enabled: * ld-only flags are not passed to 'lld'. * location_packer is disabled. * Use new lld's --pack-dyn-relocs=android. * When lld does not work: * In Android.mk files use LOCAL_USE_CLANG_LLD := false. * In Android.bp files use use_clang_lld: false. * Only arm, arm64, x86, and x86_64_devices have LLD flags; all other hosts and targets do not call lld yet. Bug: 73768157 Test: make checkbuild and boot Change-Id: I06b8a1e868a600997a7e70fe05c299d751d23d5f
-
- Apr 11, 2018
-
-
Treehugger Robot authored
-
Colin Cross authored
-
Inseob Kim authored
Bug: 77834464 Test: m -j Change-Id: I75e431ee48e23130167d1fafbe80e88c8222d79b
-
Inseob Kim authored
Bug: 77834464 Test: None Change-Id: I5c21625d1e6406399f5c397ac466f3d36a2c0cbc
-
Inseob Kim authored
During link-type check, if a module with sdk_version "current" refers another, compatibility check between STLs has not been performed. Bug: 77834464 Test: m -j succeeded Change-Id: Id82a39372670daca779d4fb4af2deb202170a2fd
-
Colin Cross authored
Use Bool instead of proptools.Bool and String instead of proptools.String. Test: m checkbuild Change-Id: I32d84add9f27128c7a65413e9612fd920613584f
-