Commit Graph

11787 Commits

Author SHA1 Message Date
Pete Gillin
071d0d6799 Merge "Don't specify -encoding twice in Jdiff javadoc invocations."
am: a53ae43180

Change-Id: I6bda6b1b57cc7b08141cb9adb2d6cdb48012f872
2019-06-11 04:31:41 -07:00
Pete Gillin
a53ae43180 Merge "Don't specify -encoding twice in Jdiff javadoc invocations." 2019-06-11 11:21:37 +00:00
Inseob Kim
6011640688 Merge "Separate exported includes out of flags"
am: b879fb6b4b

Change-Id: Id66ff859751816eae1c97ec247bbffe057cc2e86
2019-06-10 22:07:20 -07:00
Treehugger Robot
b879fb6b4b Merge "Separate exported includes out of flags" 2019-06-11 04:57:47 +00:00
Dan Willemsen
2758050dc4 Merge "Refactor .aar resource compilation"
am: 588857b418

Change-Id: I85532e6de6a8514e64c4304df711856584c2caef
2019-06-10 21:11:54 -07:00
Dan Willemsen
2cb02169d4 Merge "Add dependency to version script when linking stub libraries"
am: d1fcc4a93d

Change-Id: I3b9010ddaa6ff810d883ad7cffbc56cb513546dc
2019-06-10 21:11:11 -07:00
Treehugger Robot
588857b418 Merge "Refactor .aar resource compilation" 2019-06-11 04:03:51 +00:00
Treehugger Robot
d1fcc4a93d Merge "Add dependency to version script when linking stub libraries" 2019-06-11 03:59:42 +00:00
Josh Gao
1697e781bb Merge "Revert "Revert "Revert "Revert "Enable lld for windows"""""
am: a1738e2c00

Change-Id: I4d2b7446b8bbb02938f5bf56c4c8a627d8afad9b
2019-06-10 18:56:23 -07:00
Josh Gao
a1738e2c00 Merge "Revert "Revert "Revert "Revert "Enable lld for windows""""" 2019-06-11 01:43:42 +00:00
Inseob Kim
6364f4732a Merge "Fix sysprop_library build err when using filegroup"
am: 4b0cc8c3c5

Change-Id: I231370f6e2925a2fa8cf6b17106779300d85a095
2019-06-10 18:43:41 -07:00
Inseob Kim
6937844c29 Separate exported includes out of flags
Exported includes have been maintained along with other C/C++ flags.
This makes dependencies unclear, and users have had to parse flags to
get exported directories. This separates exported includes and
exported flags, thus making data more structured and explicit.

Bug: 132818174
Test: m
Change-Id: I5c25ac2224988c4a67e4db6fd6e4d39090b74041
2019-06-11 10:37:56 +09:00
Treehugger Robot
4b0cc8c3c5 Merge "Fix sysprop_library build err when using filegroup" 2019-06-11 01:21:44 +00:00
Dan Willemsen
939408aa22 Add dependency to version script when linking stub libraries
This isn't an effective issue with local builds currently, since the
version script is generated from the same rule as the sources used to
compile the objects that are also used in the link command. But if we
ever separated those paths or adopted restat, we could miss this
dependency.

This is also required for my RBE build to actually expose this file to
the link step.

Test: treehugger
Change-Id: I32bbb18cf7edddc88759d4f445d081868f3e9b44
2019-06-10 18:02:25 -07:00
Josh Gao
75a50a2c15 Revert "Revert "Revert "Revert "Enable lld for windows""""
This reverts commit b20200b3f5.

Bug: http://b/110800681
Test: manual
Change-Id: Id3eb45ed29f3977fef3da241ec2c43755116d60c
2019-06-10 12:59:11 -07:00
Inseob Kim
a0ea84a72c Merge "Clean up sortedKeys function"
am: b6fd6f75f2

Change-Id: I4461b1ce3b82cac45682ed8bdc9bf1cee4ed7419
2019-06-10 12:19:15 -07:00
Treehugger Robot
b6fd6f75f2 Merge "Clean up sortedKeys function" 2019-06-10 19:16:14 +00:00
Colin Cross
437679ddd1 Merge "Revert "Consolidate *MutatorContext and ModuleContext into BaseModuleContext""
am: 90ef4b9c12

Change-Id: Icc67a56bbb690b626ec1685cb5bca1e1d6e166e2
2019-06-10 11:13:00 -07:00
Colin Cross
90ef4b9c12 Merge "Revert "Consolidate *MutatorContext and ModuleContext into BaseModuleContext"" 2019-06-10 17:58:10 +00:00
Colin Cross
380c69aab4 Revert "Consolidate *MutatorContext and ModuleContext into BaseModuleContext"
This reverts commit 7e0a2cb590.

Reason for revert: broke TARGET_BUILD_APPS builds

Change-Id: I5316a62f77bb38f6195e3df5e31b073dbd1eb682
2019-06-10 17:49:58 +00:00
Colin Cross
236ac108f5 Merge changes I9f8df94f,I2d7f5c56,I0ebb7381,Ieefcfc1a
am: a6bf56d4be

Change-Id: Ic3033d9aa2fc325b1dc92bcd71cd24297e5bd69a
2019-06-10 09:55:39 -07:00
Colin Cross
a6bf56d4be Merge changes I9f8df94f,I2d7f5c56,I0ebb7381,Ieefcfc1a
* changes:
  Consolidate *MutatorContext and ModuleContext into BaseModuleContext
  Consolidate baseContext, BaseContext, and BaseModuleContext
  Rename ModuleBase receivers
  Remove repetition in android package names
2019-06-10 16:38:11 +00:00
Inseob Kim
da63a49338 Fix sysprop_library build err when using filegroup
.sysprop files are intended to be used only with sysprop_library, and we
can prevent build error by specifying dependencies upon CreateModule.

Bug: 131708148
Test: 1) try building sysprop_library module.
Test: 2) see liblog is correctly linked.
Change-Id: I702cedc255ee0b6a30c15e474dd6a88d9607b145
2019-06-10 14:18:13 +00:00
Pete Gillin
2b1ea2edb3 Don't specify -encoding twice in Jdiff javadoc invocations.
The option '-encoding UTF-8' is included in the opts defined at L1754,
which are passed to transformJdiff (defined at L1594), and from there
to a javadoc rule (defined at L29), where they are included in a
command line string which already has '-encoding UTF-8' in it. The
result is that this appears twice in the command line. This is
apparently ignored by the version of javadoc currently used. Later
upstream versions of javadoc, however, fail with the error 'javadoc:
error - The -encoding option may be specified no more than once.'

Test: make system-api-stubs-docs
Test: make system-api-stubs-docs, using an OpenJDK 11 toolchain via OVERRIDE_ANDROID_JAVA_HOME
Bug: 131683177
Change-Id: Ib9382ada3c8259edfacb2be3ab14d4c09d8753a7
2019-06-10 14:37:41 +01:00
Inseob Kim
1a365c6a7f Clean up sortedKeys function
This introduces a generic function SortedStringKeys which can be used to
get a slice of sorted string keys for all kinds of maps having string
keys.

Bug: N/A
Test: m
Change-Id: I542194c68984d909b7ad1dbf060d4d3a98f0ef23
2019-06-08 16:10:38 +09:00
Lokesh Gidra
dd5db326e2 Revert "Switch to toybox timeout."
am: 50e91c1a7a

Change-Id: Ic6ce302f68719613c244f67f92641fc34e04f79d
2019-06-07 18:48:18 -07:00
Lokesh Gidra
50e91c1a7a Revert "Switch to toybox timeout."
This reverts commit e9f471635f.

Reason for revert: Multiple art-test failures

Change-Id: I550864c23485a438889ab73c7e4a877cd730cabb
2019-06-08 00:46:09 +00:00
Elliott Hughes
c1c3e494a7 Merge "Switch to toybox sed (again)."
am: 7da326dd88

Change-Id: Ic90ff064b53ba5874e09cfd5af20fd961653636e
2019-06-07 16:37:04 -07:00
Elliott Hughes
7da326dd88 Merge "Switch to toybox sed (again)." 2019-06-07 23:25:06 +00:00
Josh Gao
118d99de1e Merge "Revert "Revert "Revert "Enable lld for windows""""
am: 46160c6423

Change-Id: Iafebab34bbcfa9a3d685b59b5b4fd2ca86c8ea44
2019-06-07 15:50:44 -07:00
Josh Gao
46160c6423 Merge "Revert "Revert "Revert "Enable lld for windows"""" 2019-06-07 22:40:42 +00:00
Colin Cross
7e0a2cb590 Consolidate *MutatorContext and ModuleContext into BaseModuleContext
Following 99bdb2ab4fd5168a71a20aecf10611425be47ec4 in build/blueprint,
move more methods into BaseModuleContext.

Test: m checkbuild
Change-Id: I9f8df94f1ae2b55d3cccf7b9468247f3e7cb2ebd
2019-06-07 13:29:12 -07:00
Elliott Hughes
6096199aba Merge "Switch to toybox timeout."
am: 0db3e1e667

Change-Id: I02591608ef39d4da4ca70ec92671933d3bae7235
2019-06-07 13:25:56 -07:00
Elliott Hughes
c1bfeed81b Switch to toybox sed (again).
The pathological case has been fixed, so let's see if it sticks this
time.

Test: treehugger
Change-Id: I043d823b05dd8796764e008c5e16e3563b80cec8
2019-06-07 13:10:04 -07:00
Elliott Hughes
0db3e1e667 Merge "Switch to toybox timeout." 2019-06-07 20:08:04 +00:00
Josh Gao
b20200b3f5 Revert "Revert "Revert "Enable lld for windows"""
This reverts commit 6d8c0a50bc.

The switchover to lld appears to be making adb crash on exit for unclear
reasons. Revert it as a quick fix pending further investigation.

Bug: http://b/134613180
Test: adb.exe under windbg
Change-Id: Ibdf5981c3c6828b3684974b7c30a7c96449c64c5
2019-06-07 12:34:18 -07:00
Pete Gillin
8db09b5fff Merge "Disable the system-modules plugin for jlink invocations."
am: 14bb14e0c3

Change-Id: Ie9146f858b25575e0673519928e5f1407311f27c
2019-06-07 03:43:41 -07:00
Pete Gillin
14bb14e0c3 Merge "Disable the system-modules plugin for jlink invocations." 2019-06-07 10:35:56 +00:00
Elliott Hughes
e9f471635f Switch to toybox timeout.
Test: treehugger
Change-Id: Ieea84deac5d0ccef0f3d4949aa1ba870d406e482
2019-06-06 21:41:48 -07:00
Colin Cross
0ea8ba82fc Consolidate baseContext, BaseContext, and BaseModuleContext
blueprint.BaseModuleContext is the set of methods available to all
module-specific calls (GenerateBuildActions or mutators).  The
android package split the same functionality across baseContext (nee
androidBaseContext), BaseModuleContext, and BaseContext.
Consolidate all of them into android.BaseModuleContext.

Test: m checkbuild
Change-Id: I2d7f5c56fd4424032cb93edff6dc730ff33e4f1e
2019-06-06 20:01:31 -07:00
Colin Cross
4157e88427 Rename ModuleBase receivers
I3b23590b8ce7c8a1ea1139411d84a53163288da7 renamed AndroidModuleBase
to ModuleBase, but left the receivers called 'a'.  Rename them to
'm' to match the type.

Test: m checkbuild
Change-Id: I0ebb738152febfd9a2a56ac0b197f19f9e01a1e7
2019-06-06 20:01:23 -07:00
Colin Cross
25de6c30d3 Remove repetition in android package names
Types in the android package don't need to be prefixed with 'android'.

Test: m checkbuild
Change-Id: Ieefcfc1a2c4161d9c412f40ef31867149ec21aec
2019-06-06 17:24:01 -07:00
Roland Levillain
d0814ca920 Merge "Allow arch-specific symlink_preferred_arch properties."
am: 42729b481a

Change-Id: Id0ac2b75615eca560a25494b699b530a68b3b2fe
2019-06-06 12:19:19 -07:00
Treehugger Robot
42729b481a Merge "Allow arch-specific symlink_preferred_arch properties." 2019-06-06 19:10:41 +00:00
Pete Gillin
4eb6be32f6 Disable the system-modules plugin for jlink invocations.
This jlink plugin is intended to optimise startup times for Java
runtimes by embedding a pre-processed and pre-validated module graph
in the system image.

This provides no benefit on Android, since the Android runtime does
not make use of the module graph it produces. (It doesn't seem useful
on Android anyway, since the system image only contains one module,
namely java.base.)

Furthermore, the plugin causes the jlink invocation to fail when using
the jlink tool from OpenJDK 11. The issue here is the plugin uses
classes in the jdk.internal.module package to describe the module
graph; that package is not part of libcore and therefore not listed in
the module-info.java for java.base on Android; but the plugin has the
side-effect of adding the package to java.base; this causes jlink to
subsequently fail with an error "Module java.base's descriptor
indicates the set of packages is : <lots of packages>, but module
contains packages: <same packages plus jdk.internal.module>". (The
implementation of the plugin changed significantly in OpenJDK 10,
which is presumably why this issue does not occur using OpenJDK 9's
jlink.)

Therefore, it is safe and beneficial to disable the plugin.

Test: EXPERIMENTAL_JAVA_LANGUAGE_LEVEL_9=true make core-all-system-modules, using an OpenJDK 11 toolchain via OVERRIDE_ANDROID_JAVA_HOME and changing the jmod create invocation to use --module-version 11
Test: EXPERIMENTAL_JAVA_LANGUAGE_LEVEL_9=true make droid, flash to device & sanity check
Bug: 131683177
Change-Id: I52333f32c88aa85cd3652ad91d50d9927ff61daf
2019-06-06 18:59:46 +01:00
Neil Fuller
c9d38ec5e0 Merge "Use correct system_modules with core.current.stubs"
am: 6d376a0de8

Change-Id: I20ab5aaeb24ee63f8fd7019c4c71a482560c036c
2019-06-06 09:14:02 -07:00
Treehugger Robot
6d376a0de8 Merge "Use correct system_modules with core.current.stubs" 2019-06-06 16:05:16 +00:00
Jaewoong Jung
c831a0a895 Merge "Touch up manifest if there's no source code."
am: 96eac767df

Change-Id: Ia83362ef4d234f0fc6c41919490fe607deaa6bb0
2019-06-06 07:12:51 -07:00
Jaewoong Jung
96eac767df Merge "Touch up manifest if there's no source code." 2019-06-06 13:52:37 +00:00
Neil Fuller
ba88c41274 Use correct system_modules with core.current.stubs
The system_modules defn used with core.current.stubs
was core-system-modules which doesn't match. Instead,
this change uses core-current-stubs-system-modules.

Test: build
Change-Id: Ifb9e77b02bbb04c1cb39c6b9f97932c20d44d8ba
2019-06-06 14:15:00 +01:00