Commit Graph

36566 Commits

Author SHA1 Message Date
Dan Willemsen bfdfb66954 Merge "Support split /system and /vendor modules from Soong" am: 4e789c2e57 am: 9fc091f756
am: 6ac7ce63e5

Change-Id: I66f86a4215010f0861ea77ee53a5db7fb3153c90
2017-04-12 00:21:59 +00:00
Dan Willemsen 6ac7ce63e5 Merge "Support split /system and /vendor modules from Soong" am: 4e789c2e57
am: 9fc091f756

Change-Id: I54780496af5c749ea441b9909c467900936b2da6
2017-04-12 00:18:26 +00:00
Dan Willemsen 9fc091f756 Merge "Support split /system and /vendor modules from Soong"
am: 4e789c2e57

Change-Id: I877f4898e035bf50f4a7e59d1216e00ba14a3ffd
2017-04-12 00:13:27 +00:00
Dan Willemsen 4e789c2e57 Merge "Support split /system and /vendor modules from Soong" 2017-04-12 00:06:52 +00:00
Colin Cross c9ff2388a9 Merge changes from topic 'anno' am: 0f8767e535 am: 004295d3da
am: c5a59d0ab8

Change-Id: I6bdb4b7c292c946ca30b608282aab42816dddedc
2017-04-11 19:25:32 +00:00
Colin Cross e8ee68bb9b Support java annotation proccessors
The codebase is growing more uses of annotation processors,
through a mixture of LOCAL_ADDITIONAL_DEPENDENCIES and
LOCAL_JACK_FLAGS.  Add LOCAL_ANNOTATION_PROCESSORS and handle
the rest in the build system.

For now we also need LOCAL_ANNOTATION_PROCESSOR_CLASSES to
work around bad behavior in grok (b/25860419).

Test: m -j java
Change-Id: I465b021e65d25ed3ea517333a82ec4ebd63fc038
(cherry picked from commit cde14987ba)
2017-04-11 12:22:53 -07:00
Colin Cross c5a59d0ab8 Merge changes from topic 'anno' am: 0f8767e535
am: 004295d3da

Change-Id: I2a69432b5d2d5f20b8a2df42d70c71580e12a885
2017-04-11 18:38:56 +00:00
Colin Cross 004295d3da Merge changes from topic 'anno'
am: 0f8767e535

Change-Id: I00c56c207928056d4c56fe2531615cff6342a955
2017-04-11 18:33:58 +00:00
Treehugger Robot 0f8767e535 Merge changes from topic 'anno'
* changes:
  Support java annotation proccessors
  Add support for LOCAL_ERROR_PRONE_FLAGS
2017-04-11 18:26:16 +00:00
Colin Cross cde14987ba Support java annotation proccessors
The codebase is growing more uses of annotation processors,
through a mixture of LOCAL_ADDITIONAL_DEPENDENCIES and
LOCAL_JACK_FLAGS.  Add LOCAL_ANNOTATION_PROCESSORS and handle
the rest in the build system.

For now we also need LOCAL_ANNOTATION_PROCESSOR_CLASSES to
work around bad behavior in grok (b/25860419).

Test: m -j java
Change-Id: I465b021e65d25ed3ea517333a82ec4ebd63fc038
2017-04-11 09:56:09 -07:00
Dan Willemsen 9d2b3280e8 Support split /system and /vendor modules from Soong
Soong modules may be split into both /system and /vendor variants.
Ensure that Make libraries link against the correct version based on
whether LOCAL_USE_VNDK is set.

Bug: 36426473
Bug: 36079834
Test: build-aosp_arm64.ninja files are the same before/after
Test: attempt building with BOARD_VNDK_VERSION:=current
Change-Id: I229bc290373743406275f3ca16081eae04c27987
2017-04-10 15:54:50 -07:00
Steven Moreland 9348d38d20 Merge "Add LLNDK support for the VNDK" into oc-dev
am: 5643689385

Change-Id: Id911e5e9f9b98a2c7fe2ad1124a705d5ff3bdccf
2017-04-10 16:22:48 +00:00
Steven Moreland 5643689385 Merge "Add LLNDK support for the VNDK" into oc-dev 2017-04-10 15:30:04 +00:00
Dan Willemsen e0b40f6368 Add LLNDK support for the VNDK
Instead of using the NDK headers and libraries, add LL-NDK specific
headers and library stubs for VNDK users. This allows us to provide an
expanded liblog interface.

Test: aosp_arm; m -j
Test: Enable BOARD_VNDK_VERSION on aosp_arm; m -j
Change-Id: I0197f44c91218c73b9567a05320c91a2baaae39b
(cherry picked from commit ffa3258f6c)
2017-04-07 20:35:09 -07:00
Colin Cross 0b1de05d3c Merge "Specialize oc-dev into OPR1" into oc-dev
am: b70a93465a

Change-Id: I488e308e863e7ea8ddbfe6f4d1a0588ebec016d5
2017-04-08 02:13:51 +00:00
TreeHugger Robot b70a93465a Merge "Specialize oc-dev into OPR1" into oc-dev 2017-04-08 02:05:22 +00:00
Colin Cross 5e58793731 Add support for LOCAL_ERROR_PRONE_FLAGS
This will allow individual modules to enable error prone checks
as needed so that the change to treat an error prone check as a
compiler error can be done atomically with the changes to fix
the issues that check reveals.

Tested with the following steps, cleaning up the targets in
between to ensure that it was rebuilt everytime.

Set LOCAL_ERROR_PRONE_FLAGS := -Xep:ClassCanBeStatic:WARN
compiler error in junit-params-test target. Built
javac-check-junit-params-test with RUN_ERROR_PRONE=true to make
sure that compilation failed.

Built the javac-check-junit-params-test without RUN_ERROR_PRONE
set to make sure that the flag is not included unless explicitly
requested.

Built the junit-params-test as normal to make sure it still
worked properly.

Bug: 31507496
Test: See above
Change-Id: I88b5800dacd0e30dd9dcfa5f42e89d1428957365
Merged-In: I88b5800dacd0e30dd9dcfa5f42e89d1428957365
(cherry picked from commit 3ca9298d99)
2017-04-07 17:46:40 -07:00
Dan Willemsen 864955d152 Merge "Add LLNDK support for the VNDK" am: 2d6e79d268 am: 67eb8bb766
am: 7bc488c0ec

Change-Id: I6717b28deac9e8fea5bcfe53885aeea90ca04732
2017-04-07 21:39:01 +00:00
Dan Willemsen 7bc488c0ec Merge "Add LLNDK support for the VNDK" am: 2d6e79d268
am: 67eb8bb766

Change-Id: I77343282f1e7d23677950a037754d30dfa5d7cc6
2017-04-07 21:35:25 +00:00
Dan Willemsen 67eb8bb766 Merge "Add LLNDK support for the VNDK"
am: 2d6e79d268

Change-Id: I659186edcf49180ecd18709be901145a55e9021c
2017-04-07 21:31:27 +00:00
Dan Willemsen 2d6e79d268 Merge "Add LLNDK support for the VNDK" 2017-04-07 21:21:32 +00:00
Dan Willemsen ffa3258f6c Add LLNDK support for the VNDK
Instead of using the NDK headers and libraries, add LL-NDK specific
headers and library stubs for VNDK users. This allows us to provide an
expanded liblog interface.

Test: aosp_arm; m -j
Test: Enable BOARD_VNDK_VERSION on aosp_arm; m -j
Change-Id: I0197f44c91218c73b9567a05320c91a2baaae39b
2017-04-07 21:21:24 +00:00
Martijn Coenen 01371056bb Add 'vndservice' to default builds.
am: 1fe4f23a04

Change-Id: Ib6015b8ce6abb634963e251aea825d660bf59968
2017-04-07 20:07:14 +00:00
Martijn Coenen 1fe4f23a04 Add 'vndservice' to default builds.
To query vndservicemanager and its services.

Bug: 36987120
Test: vndservice present and works
Change-Id: Ic65acbde17a1be5b728eeeac0f799a86c1d8c1fa
2017-04-07 10:49:22 -07:00
Tao Bao f859165bd1 Merge "releasetools: Add validate_target_files.py." am: 6cb177f15c am: c23d275d02
am: d5244a593f

Change-Id: I2f4e4473ffbe1e1802ec31a0e95d1247634ff2ea
2017-04-06 21:07:01 +00:00
Tao Bao d5244a593f Merge "releasetools: Add validate_target_files.py." am: 6cb177f15c
am: c23d275d02

Change-Id: I3e52e540eacc76fa43fa1c0fe62b83a69b2bdc89
2017-04-06 21:03:30 +00:00
Tao Bao c23d275d02 Merge "releasetools: Add validate_target_files.py."
am: 6cb177f15c

Change-Id: I43fcdc12e713a6e66dff624e1dd3d6d07ee86c99
2017-04-06 21:00:01 +00:00
Tao Bao 6cb177f15c Merge "releasetools: Add validate_target_files.py." 2017-04-06 20:50:09 +00:00
Colin Cross 5cc452de64 Merge "Fix duplicate and dangling rules" am: f9f8b21af3 am: 50d2ffdfe3
am: 348d20bcce

Change-Id: I495a6d0a8c733c942248e1d378c9f660e1cc7322
2017-04-06 20:07:31 +00:00
Colin Cross 348d20bcce Merge "Fix duplicate and dangling rules" am: f9f8b21af3
am: 50d2ffdfe3

Change-Id: I20b39bbaf3ba642b10f4364beb4b580d2a5a7ac1
2017-04-06 20:03:30 +00:00
Colin Cross 50d2ffdfe3 Merge "Fix duplicate and dangling rules"
am: f9f8b21af3

Change-Id: I7da59735bf22dbf54cdadfb45e01e21693e4054b
2017-04-06 20:00:31 +00:00
Treehugger Robot f9f8b21af3 Merge "Fix duplicate and dangling rules" 2017-04-06 19:49:45 +00:00
Colin Cross 96476c1d50 Fix duplicate and dangling rules
I6730e2d3ec38004874265b2a690442dec57b33f4 introduced duplicate rules
to build classes.jar for static java library prebuilts, and left rules
to copy $(built_dex_intermediates) to $(built_dex) for modules that
don't build dex files.

Move prebuilts LOCAL_BUILT_MODULE back to javalib.jar to match
non-prebuilt modules, and remove the manual building of javalib.jar.

Add a check around $(built_dex_intermediates) for static java libraries.

Bug: 36901093
Test: m -j ANDROID_COMPILE_WITH_JACK=false
Change-Id: I291510b56162f0d35553e3c7ccd59b1382224d62
2017-04-06 10:23:04 -07:00
Colin Cross 99c83f2bda Merge "Rearrange java library outputs" am: 7b7363fffb am: a4435a5025
am: 09018269a8

Change-Id: I35b5527c4142f9486c6d57498789ba2249d0a4a3
2017-04-06 15:52:26 +00:00
Colin Cross 09018269a8 Merge "Rearrange java library outputs" am: 7b7363fffb
am: a4435a5025

Change-Id: I9185bea7f0233cf2007714ef5f787281972889d7
2017-04-06 15:45:24 +00:00
Colin Cross a4435a5025 Merge "Rearrange java library outputs"
am: 7b7363fffb

Change-Id: Ia0f975785542973a052cd0b24ee9c1b756babfe6
2017-04-06 15:37:52 +00:00
Colin Cross 7b7363fffb Merge "Rearrange java library outputs" 2017-04-06 15:30:45 +00:00
Colin Cross 1ed4235172 Merge "Move proguard before classes.jar" am: 41d5cd7420 am: c40073c77f
am: 6ade789f59

Change-Id: I9ac539f18a998c3a85960526a77cfdebef9ca641
2017-04-06 02:50:55 +00:00
Colin Cross 6ade789f59 Merge "Move proguard before classes.jar" am: 41d5cd7420
am: c40073c77f

Change-Id: Ib60ca56f292d105bbd873422915d9640463610df
2017-04-06 02:47:23 +00:00
Colin Cross c40073c77f Merge "Move proguard before classes.jar"
am: 41d5cd7420

Change-Id: I65fe576155f9375d4f05f598b62032af1d3e6695
2017-04-06 02:44:23 +00:00
Treehugger Robot 41d5cd7420 Merge "Move proguard before classes.jar" 2017-04-06 02:39:13 +00:00
Colin Cross 941b682099 Rearrange java library outputs
Jack can silently handle using a java library as a static java
library by merging in the java library dex file.  This causes
problems when switching to javac, because dex doesn't support
dex merging with multidex enabled?

Make the output files consistent between java libraries and static
java libraries.  Java libraries will now produce:
classes-pre-proguard.jar: the classes before proguard processing
classes.jar: the final jar file containing classes before dexing
javalib.jar: a jar containing classes.dex

Static java libraries will eventually only produce
classes-pre-proguard.jar and classes.jar.  All inter-library
linking is done with classes.jar, so a java library can be
used as a static java library.

There are too many dependencies outside the build system that
expect javalib.jar to exist for static and host java libraries,
so for now continue to build a javalib.jar that is a copy of
classes.jar.

Test: m -j ANDROID_COMPILE_WITH_JACK=false java
Test: m -j java
Bug: 36901093
Change-Id: I6730e2d3ec38004874265b2a690442dec57b33f4
2017-04-05 18:04:37 -07:00
Chih-hung Hsieh badde95384 Merge "Encode special characters in email addresses." am: c4a7ed3530 am: 1124a1bd01
am: f754ef73a5

Change-Id: I1eb192492a53263182eddce2f1ab86a015400cce
2017-04-06 00:53:15 +00:00
Chih-hung Hsieh f754ef73a5 Merge "Encode special characters in email addresses." am: c4a7ed3530
am: 1124a1bd01

Change-Id: I2745911481dde3317b85e31ec6e2f2758e9b0740
2017-04-06 00:49:44 +00:00
Chih-hung Hsieh 1124a1bd01 Merge "Encode special characters in email addresses."
am: c4a7ed3530

Change-Id: I5b22ee5588388433c82333993bd2ebb25dbd9d52
2017-04-06 00:46:45 +00:00
Colin Cross 950f1efbbc Move proguard before classes.jar
Downstream users of a library always link against javalib.jar, which
is either the dex jar for java libraries or a copy of
proguard.classes.jar for static java libraries.  In preparation for
making java libraries a superset of static java libraries, make
classes.jar always be the final class-containing jar for use
downstream, and always create a classes-pre-proguard.jar for
users that need a jar without shrinking or obfuscation.

Also rename the intermediates to be consitent: classes-<tool>.jar

Test: m -j ANDROID_COMPILE_WITH_JACK=false java
Change-Id: I3df8b9a4edcd5db996f1fedc54c8a782d4f36a92
Merged-In: I3df8b9a4edcd5db996f1fedc54c8a782d4f36a92
(cherry picked from commit 6fabefa88e)
2017-04-06 00:46:23 +00:00
Chih-hung Hsieh c4a7ed3530 Merge "Encode special characters in email addresses." 2017-04-06 00:40:51 +00:00
Dan Willemsen d3d15935f9 Merge "Ensure that BOARD_VNDK_VERSION is current" into oc-dev
am: 8a6d7fabc3

Change-Id: I35dafe7b1f4b3d4181291277adee3cffabd15d98
2017-04-05 22:47:07 +00:00
Dan Willemsen 40837541f5 Merge "Exclude ndk stubs from notice file list" into oc-dev
am: 87bbe36728

Change-Id: I952270140dfb52d40c3a9c30d9acabcf0e7824a5
2017-04-05 22:47:00 +00:00
Dan Willemsen 7c027f4f8a Merge "Add LOCAL_EXPORT_CFLAGS for Soong" into oc-dev
am: 0192aaedad

Change-Id: I6b4e9b171443143b9bb69ef69356902e083ab462
2017-04-05 22:46:53 +00:00