Commit graph

8287 commits

Author SHA1 Message Date
Colin Cross
3fb29135c6 Merge "Put kotlin classes in header jar"
am: 4bd15d36e7

Change-Id: I43e8958401cdaa5b340a3bf7bc0db6a9295a3bda
2018-08-27 14:23:08 -07:00
Treehugger Robot
4bd15d36e7 Merge "Put kotlin classes in header jar" 2018-08-27 21:16:21 +00:00
Colin Cross
55f63eadbd Put kotlin classes in header jar
If a module has kotlin sources the compiled kotlin clsases must be put
in the header jar for anything that depends on the module to use.

Bug: 113153312
Test: m checkbuild
Change-Id: Ibc44e9a97655937315b03b05e51e09c2954d7008
2018-08-27 13:19:49 -07:00
Søren Gjesse
20d7700075 Merge "Ensure that the R8 minification map (ProGuard dictionary) file exists"
am: 0d91f1727e

Change-Id: I7904bab799407eb81c3d619d2e15663cd02b18c6
2018-08-27 09:13:58 -07:00
Søren Gjesse
0d91f1727e Merge "Ensure that the R8 minification map (ProGuard dictionary) file exists" 2018-08-27 16:06:07 +00:00
Søren Gjesse
0e84935ac4 Ensure that the R8 minification map (ProGuard dictionary) file exists
R8 no longer outputs an empty map file when minification
(obfuscation) is turned off.

Test: m -j PRODUCT-aosp_x86-eng
Change-Id: I317e703597368dc8c16751bcc8d0e43f985614fa
2018-08-27 12:56:16 +02:00
Ryan Prichard
f867f36e2f Merge "NDK sysroot: include each license file only once"
am: 09664bd9a5

Change-Id: I4f84c5adb80b0e368c881ffe53cf0f50bf24e9e4
2018-08-24 15:53:23 -07:00
Treehugger Robot
09664bd9a5 Merge "NDK sysroot: include each license file only once" 2018-08-24 22:40:32 +00:00
Nan Zhang
0964851ddb Merge "Revert "Revert "Make Metalava checkapi a seperate run."""
am: 21aac6b64b

Change-Id: Ibe70195ba170b67616cabef039160eeab465a9ea
2018-08-24 14:45:09 -07:00
Nan Zhang
21aac6b64b Merge "Revert "Revert "Make Metalava checkapi a seperate run.""" 2018-08-24 21:33:15 +00:00
Ryan Prichard
b1c9d40b6f NDK sysroot: include each license file only once
bionic/libc/NOTICE file is 6000 lines long and is referenced by 10
modules in bionic/libc/Android.bp. We're currently including 10 copies of
the license file, which makes it hard to view a "platform prebuilts" CL
in Gerrit.

For example, click "Expand All" on:
https://android-review.googlesource.com/c/platform/prebuilts/ndk/+/730825

Bug: none
Test: m out/soong/ndk.timestamp
Change-Id: I857e70d7d900688532ab988800c98bbd0899cc31
2018-08-24 13:28:04 -07:00
Jeff Gaston
386823bbec Merge "pom2bp support to specify which modules are host modules"
am: 141fe713fa

Change-Id: Iaa4701a04558a88847c5fa4c2ab892fe8b0e6665
2018-08-24 13:04:47 -07:00
Chih-Hung Hsieh
1cc0227af2 Remove flto dependent flags when -flto is removed.
am: 9e88ba9f22

Change-Id: I174a627fe877f66b81ae889a82eefadff8216dc4
2018-08-24 12:53:01 -07:00
Treehugger Robot
141fe713fa Merge "pom2bp support to specify which modules are host modules" 2018-08-24 19:46:17 +00:00
Chih-Hung Hsieh
9e88ba9f22 Remove flto dependent flags when -flto is removed.
* C++ source files could be compiled with "-fwhole-program-vtables"
  in cppflags. We need to filter out those flto dependent flags
  in flags.CppFlags and use flags.toolingCppFlags instead of
  flags.cppFlags.

Test: build with WITH_TIDY=1
Change-Id: Ic2b0f99b95a5f0422f879226e6f6060cab71456a
2018-08-24 18:42:22 +00:00
Nan Zhang
2760dfc03c Revert "Revert "Make Metalava checkapi a seperate run.""
This reverts commit ec716b4151.

Reason for revert:
This is second attempt for Make Metalava checkapi a seperate run.

The first attept didn't work since Metalava also need sources,
classpath, and etc, not like how old Doclava apicheck works.

Test: cherry-pick go/ag/4832335 in internal master, and do 'm clean && m
-j checkapi', it failed with erros which is expected.
Bug: b/113126618, b/113131828

Change-Id: I664b7838d15615905a2e798b1df832218031dfe7
2018-08-24 11:37:33 -07:00
Jeff Gaston
d492853a52 pom2bp support to specify which modules are host modules
Bug: 112804807
Test: cd prebuilts/sdk/current/support && pom2bp -regen Android.bp
Change-Id: Ib816db8274cb05c9d0ed2cb557799ddcf6ee74fd
2018-08-24 14:32:50 -04:00
Nan Zhang
9da0f56261 Merge "Revert "Make Metalava checkapi a seperate run.""
am: cde4e89c27

Change-Id: Ida1f848fc90eb9d1948f92c42ebe4a48d0a43b05
2018-08-24 09:12:36 -07:00
Nan Zhang
cde4e89c27 Merge "Revert "Make Metalava checkapi a seperate run."" 2018-08-24 15:59:59 +00:00
Nan Zhang
ec716b4151 Revert "Make Metalava checkapi a seperate run."
This reverts commit ed0a39dba7.

Reason for revert:
it seems checkapi can be passed successfully even if we didn't do update-api for new changes. roll-back for now and do more investigation.  

Change-Id: Idd54ea8919671d54aa6401233156d6c0bcf5325f
2018-08-24 15:59:17 +00:00
Nan Zhang
40ccfea6f7 Merge "Make Metalava checkapi a seperate run."
am: ea5019a407

Change-Id: I43e041fad339a808333a67661a075a2643f3c1b2
2018-08-23 23:19:36 -07:00
Treehugger Robot
ea5019a407 Merge "Make Metalava checkapi a seperate run." 2018-08-24 06:03:23 +00:00
Nan Zhang
ed0a39dba7 Make Metalava checkapi a seperate run.
We should not squeeze all the args to one Metalava run, especially for
checkapi.

Bug: b/113126618
Test: m -j checkapi, and check out dir api-stubs-docs.
Change-Id: I8d0c75745c7861b6de9070ef69f8e9284473a5d7
2018-08-23 17:30:38 -07:00
Chih-hung Hsieh
f02915fe87 Merge "Use simpler per-file syntax."
am: 9045aa89e5

Change-Id: I1e4138e7122c5d69ed5d247987861a825d9fb58c
2018-08-23 15:35:31 -07:00
Chih-hung Hsieh
5761ca65c6 Merge "Add clang-tidy.sh to filter out troublesome flags."
am: a644fbfa2c

Change-Id: I79f64979576431e85d6196110615450da1c4eea3
2018-08-23 15:34:55 -07:00
Chih-hung Hsieh
9045aa89e5 Merge "Use simpler per-file syntax." 2018-08-23 22:26:13 +00:00
Chih-hung Hsieh
a644fbfa2c Merge "Add clang-tidy.sh to filter out troublesome flags." 2018-08-23 22:23:59 +00:00
Chih-Hung Hsieh
615834ae65 Use simpler per-file syntax.
* Add owners to clang.go and tidy.go.

Test: build/make/tools/checkowners.py -c -v OWNERS
Change-Id: I28e5b1feb89d24cb26c9907368fb5f01533d283e
2018-08-23 12:58:56 -07:00
Nan Zhang
5d7a0505a2 Support API compatibility check in Soong
am: a05ff57f29

Change-Id: I91a69ff4ae638de5f1db3ded4a722d67c242cafe
2018-08-23 02:31:56 -07:00
Nan Zhang
2afc01d3e5 Add support for dumping proguard api file.
am: 66dc236781

Change-Id: Ifc85e843b3cb6b60fbcbfc01678b2268b87e3885
2018-08-22 20:08:25 -07:00
Nan Zhang
a05ff57f29 Support API compatibility check in Soong
Test: m -j api-stubs-docs
Bug: b/78245848
Change-Id: Id88a3e3716f9f07f0dc0071aa56a328c4712fcc9
2018-08-22 18:28:58 -07:00
Nan Zhang
66dc236781 Add support for dumping proguard api file.
Test: ref go/ag/4783442
Bug: b/70351683
Change-Id: I0aedd41686535c9a662b935003b80634e56663e0
Merged-In: I0aedd41686535c9a662b935003b80634e56663e0
(cherry-picked from commit: 26c055258b)
2018-08-22 13:59:48 -07:00
Chih-Hung Hsieh
a7aa958e6e Add clang-tidy.sh to filter out troublesome flags.
* Some flags are accepted by clang but not clang-tidy.
  They could cause the diagnostic-unused-command-line-argument warning.
  Flag -flto messed up the -I flags.
* Add clang-diagnostic-unused-command-line-argument to
  default clang-tidy checks.
* Move CLANG_TIDY_UNKNOWN_CFLAGS to build/make/core/clang/tidy.mk.

Bug: 111850071
Bug: 111885396
Test: build with WITH_TIDY=1
Change-Id: Iabeeb27715acf83ef6aafe3e77206b9a01a0d889
2018-08-22 09:21:45 -07:00
Aaron Kling
9a3368466c Merge "Add C.utf8 to supported locales"
am: 158f2d9eaf

Change-Id: Id26c2b0ecff79432389e6238783022273efbb557
2018-08-21 18:27:09 -07:00
Colin Cross
26d7533901 Merge "Fix overlaying android resources from static libraries"
am: 9af53b4795

Change-Id: If75b92eb2094cc92812737d917472064675f86f7
2018-08-21 18:25:41 -07:00
Tao Bao
6cf3c6e3a0 Merge "Specify LOCAL_INSTALLED_MODULE_STEM for prebuilt_etc."
am: 5761075443

Change-Id: Ibab4869595bab951622f4379dac3be59f7c6528d
2018-08-21 18:13:37 -07:00
Treehugger Robot
158f2d9eaf Merge "Add C.utf8 to supported locales" 2018-08-22 00:56:54 +00:00
Treehugger Robot
9af53b4795 Merge "Fix overlaying android resources from static libraries" 2018-08-22 00:52:46 +00:00
Nan Zhang
5080c43808 Hardcode "-source 1.8" for Doclava.
am: 443fa525df

Change-Id: Iea0939d688d69158bec02e3e5919b492345b2ba4
2018-08-21 17:45:07 -07:00
Colin Cross
4aaa84af86 Fix overlaying android resources from static libraries
Match the make logic for combining app resources with static library
resources.

Bug: 112822358
Test: app_test.go
Test: aapt2 dump resources $OUT/system/priv-app/SystemUIGoogle/SystemUIGoogle.apk | grep -A1 ' string/config_systemUIVendorServiceComponent'
Change-Id: I565404e7ffb726dab952c72ab23600d6f2ee4ad4
2018-08-21 15:53:46 -07:00
Tao Bao
5761075443 Merge "Specify LOCAL_INSTALLED_MODULE_STEM for prebuilt_etc." 2018-08-21 22:35:48 +00:00
Tao Bao
e125532e12 Specify LOCAL_INSTALLED_MODULE_STEM for prebuilt_etc.
Otherwise the recovery variant gets installed with `.recovery` suffix.

Bug: 112780007
Test: Build with the mke2fs.conf change (using Android.bp to install
      mke2fs.conf). Check the installed filenames (under normal boot and
      recovery both).
Change-Id: I882be2fa07b530667a2dafc2bfe18730a42c4c08
2018-08-21 12:35:06 -07:00
Nan Zhang
443fa525df Hardcode "-source 1.8" for Doclava.
Due to various bugs hidden deeply within Doclava, running with
 "-source 1.9" is always failed for it.

So switch to "-source 1.8" for now. This includes the case of running the
combination of Metalava + Doclava. Once we have new documentation tool
in system, we can full deprecate Doclava.

Test: USE_R8=true EXPERIMENTAL_USE_OPENJDK9=true m -j core-docs
Bug: b/70351683
Change-Id: I9553f88d0dd9bc263a249c49075c0b931b5d4927
2018-08-21 11:19:53 -07:00
Aaron Kling
d236e0e4f5 Add C.utf8 to supported locales
Several Linux distros (e.g. Fedora) , use C.utf8 instead of C.UTF-8

Test: builds
Change-Id: I7e3dd73ec89bc34d7f2dc1834082cc90f9521ad1
2018-08-21 18:06:58 +02:00
Tao Bao
d7daf74182 Merge "Add recovery_available to prebuilt_etc."
am: aefd64aacf

Change-Id: Ifc40a42751e2019223ca676475cb2a12b67222c9
2018-08-20 19:12:15 -07:00
Yifan Hong
2d93ad2a07 Merge "s/product-services/product_services/g"
am: 7bbacf3478

Change-Id: I54392378a6a28f4178e98dd46102773aa4a4da80
2018-08-20 19:09:06 -07:00
Tao Bao
aefd64aacf Merge "Add recovery_available to prebuilt_etc." 2018-08-21 01:21:56 +00:00
Yifan Hong
7bbacf3478 Merge "s/product-services/product_services/g" 2018-08-21 01:07:56 +00:00
Evgenii Stepanov
72a8984921 Merge "Add "hwaddress" sanitizer."
am: 9b4f9afbaf

Change-Id: I163b6cbcf9c14ee6fd7a55b86f5db642abe52d0a
2018-08-20 17:11:00 -07:00
Treehugger Robot
9b4f9afbaf Merge "Add "hwaddress" sanitizer." 2018-08-20 23:22:35 +00:00