Commit Graph

11679 Commits

Author SHA1 Message Date
Colin Cross
38ec6cfbf4 Merge "Port uses-shared library verification and dexpreopting to Soong"
am: 7a1fefc2de

Change-Id: Iae5fec127304a7b06e111a2d054347111dba3fac
2019-05-30 15:00:08 -07:00
Treehugger Robot
7a1fefc2de Merge "Port uses-shared library verification and dexpreopting to Soong" 2019-05-30 21:50:31 +00:00
Sasha Smundak
534d99369c Merge "Print full diagnostics file when Java process crashes."
am: 7b1ca80579

Change-Id: Ib3208a98f4e6a966c892f3b596b8bd8a525b67d7
2019-05-30 14:36:08 -07:00
Treehugger Robot
7b1ca80579 Merge "Print full diagnostics file when Java process crashes." 2019-05-30 21:16:52 +00:00
Colin Cross
50ddcc4b69 Port uses-shared library verification and dexpreopting to Soong
Ports 09f3b97f4b488cd3a7b7d72038b173575b02c162 (Add support for
preopt with uses-libraries) from Make to Soong to support verifying
and preopting shared libraries.

This reapplies Id25f55f07a55120bebe2a9b32c094209efc85c8b with fixes
for unbundled builds and builds with ALLOW_MISSING_DEPENDENCIES=true
set.

Bug: 132357300
Test: app_test.go
Test: m checkbuild
Change-Id: I964309a68ec4ed081f3f3154879c71048ecb5455
2019-05-29 19:11:26 -07:00
Sasha Smundak
9d6df2246c Print full diagnostics file when Java process crashes.
Bug: 132766811
Test: treehugger
Change-Id: I8cca2486f2194a8643007a53e4a695d2a18abbf8
2019-05-29 17:46:22 -07:00
Colin Cross
cc50c0c4de Merge "Revert "Port uses-shared library verification and dexpreopting to Soong""
am: 7d06395f0c

Change-Id: Ieb207f98c88601f6857ed4ab996dfe850568975d
2019-05-29 13:47:12 -07:00
Colin Cross
7d06395f0c Merge "Revert "Port uses-shared library verification and dexpreopting to Soong"" 2019-05-29 20:34:10 +00:00
Colin Cross
c032498336 Revert "Port uses-shared library verification and dexpreopting to Soong"
This reverts commit b66d7b1c20.

Reason for revert: broke unbundled builds

Change-Id: I96ae287885107079de4a26e6b100ad8ed66961c0
2019-05-29 20:28:47 +00:00
Colin Cross
3c8e809052 Merge changes from topic "verify_uses_libraries"
am: 2f4c55e9f7

Change-Id: Id646d819bd33084f0f9f632cc5acd2106c05c234
2019-05-29 11:23:07 -07:00
Colin Cross
16eb45dfae Move verify_uses_libraries.sh out of dexpreopt
am: 38b968555c

Change-Id: I03c450b44d8b3e9d7293cd5d07e8b2506b7207be
2019-05-29 11:23:02 -07:00
Treehugger Robot
2f4c55e9f7 Merge changes from topic "verify_uses_libraries"
* changes:
  Port uses-shared library verification and dexpreopting to Soong
  Move verify_uses_libraries.sh out of dexpreopt
2019-05-29 18:09:01 +00:00
Martin Stjernholm
551438983b Merge "Allow //visibility:public to override other visibility rules."
am: 90e2eef512

Change-Id: I1f59deded1bc3d30cce88dd105460c3bf2c5064c
2019-05-29 08:58:06 -07:00
Martin Stjernholm
90e2eef512 Merge "Allow //visibility:public to override other visibility rules." 2019-05-29 15:46:34 +00:00
Tobias Thierer
9d4e40ea2d Merge "Support defaults properties in java_system_module"
am: 4b06c20215

Change-Id: I65b309705df745b5ea351f1a4af52e9675400f61
2019-05-29 04:21:31 -07:00
Tobias Thierer
4b06c20215 Merge "Support defaults properties in java_system_module" 2019-05-29 11:09:01 +00:00
Colin Cross
2d119ed870 Merge "Document escaping"
am: 89574e0c40

Change-Id: I5a86b42805964fe95e919a35e33ec7c8f9468d16
2019-05-28 18:34:27 -07:00
Colin Cross
89574e0c40 Merge "Document escaping" 2019-05-29 01:28:02 +00:00
Dan Willemsen
df12c1e44c Merge "Remove BUILD_BROKEN_ANDROIDMK_EXPORTS"
am: 20272e1480

Change-Id: I38475ac01867e6c11c40f8526797ddf87968272f
2019-05-28 18:25:35 -07:00
Colin Cross
4bccc0801c Don't build hiddenapi flags or encode dex for unbundled builds
am: 9c74a1ee85

Change-Id: I80ff83a49c809b867acdc2765376da39b1bac70e
2019-05-28 18:25:06 -07:00
Treehugger Robot
20272e1480 Merge "Remove BUILD_BROKEN_ANDROIDMK_EXPORTS" 2019-05-29 01:17:01 +00:00
Colin Cross
9c74a1ee85 Don't build hiddenapi flags or encode dex for unbundled builds
Builds with TARGET_BUILD_APPS shouldn't build the hiddenapi flags
or encode dex files even if frameworks/base exists.

Bug: 133343287
Test: mainline modules build
Change-Id: I0647451420fd09bb680808b35e1ad3b8f514ba46
2019-05-28 21:48:54 +00:00
Colin Cross
667ffa192f Support defaults properties in java_system_module
Test: none
Change-Id: I08e5c39690b3c9960dc5e99c4b866a2523c9eafb
2019-05-28 20:36:46 +00:00
Colin Cross
b66d7b1c20 Port uses-shared library verification and dexpreopting to Soong
Ports 09f3b97f4b488cd3a7b7d72038b173575b02c162 (Add support for
preopt with uses-libraries) from Make to Soong to support verifying
and preopting shared libraries.

Bug: 132357300
Test: app_test.go
Test: m checkbuild
Change-Id: Id25f55f07a55120bebe2a9b32c094209efc85c8b
2019-05-28 11:20:09 -07:00
Colin Cross
38b968555c Move verify_uses_libraries.sh out of dexpreopt
Verifying the <uses-library> tags in the manifest does not need
to be part of dexpreopt, move it out to a separate rule.

Bug: 132357300
Test: m checkbuild
Change-Id: I9d37872953b46f37ae77804819dc4eb8e2da0657
2019-05-28 11:18:51 -07:00
Colin Cross
e4a0584f60 Document escaping
Document that strings can contain double quotes escaped as \", and
the droiddoc args argument can contain a dollar signe escaped as $$.

Test: none
Change-Id: I91d3fa73f484094c9ce8cbecc93189850856de84
2019-05-28 10:19:31 -07:00
Colin Cross
45cc967424 Merge changes If15abf79,Iaae177ef
am: ff3f43857f

Change-Id: If60d55c420d53f976881b92c48f18e440c27b4ca
2019-05-28 09:48:29 -07:00
Colin Cross
ff3f43857f Merge changes If15abf79,Iaae177ef
* changes:
  Add manifest_check tool
  Move manifest_fixer to a python_binary_host module
2019-05-28 16:26:05 +00:00
Dan Willemsen
c841d02e28 Remove BUILD_BROKEN_ENG_DEBUG_TAGS
am: 7101d44442

Change-Id: I336abaf4eb958d3ce77f8a199f85e3643a76e7b0
2019-05-28 08:22:22 -07:00
Dan Willemsen
edff034366 Remove BUILD_BROKEN_ANDROIDMK_EXPORTS
Bug: 73959648
Test: treehugger
Change-Id: I932cc3acc6345f8b1ad8e395235489ae8275e2db
2019-05-25 17:13:55 -07:00
Dan Willemsen
7101d44442 Remove BUILD_BROKEN_ENG_DEBUG_TAGS
All users have been removed.

Test: treehugger
Change-Id: I35e55f3ce79c8e68585be120b5dec810563c7a83
Merged-In: I35e55f3ce79c8e68585be120b5dec810563c7a83
2019-05-25 22:48:12 +00:00
Amin Shaikh
142327d719 Merge "Make soong lock file sync time configurable.."
am: a7a70d5ae6

Change-Id: Ic3455aa64ffe0e5fa20216b76f009b28a6e3e93e
2019-05-24 18:29:51 -07:00
Jooyung Han
e1d405b385 Merge "exports LOCAL_SOONG_VNDK_VERSION for VNDK libs"
am: 75fcf98038

Change-Id: Ia2d8db5089fde6f6baf4fc9f5a8a33cf5f234e5a
2019-05-24 18:25:30 -07:00
Treehugger Robot
a7a70d5ae6 Merge "Make soong lock file sync time configurable.." 2019-05-25 00:36:34 +00:00
Treehugger Robot
75fcf98038 Merge "exports LOCAL_SOONG_VNDK_VERSION for VNDK libs" 2019-05-25 00:16:31 +00:00
Amin Shaikh
de730781d9 Make soong lock file sync time configurable..
- Add SOONG_LOCK_TIMEOUT environmental variable for users to set a
duration (e.g. 1h), which defaults to the current 10 seconds.
- Instead of logging once per second waiting to acquire the lock,
only log once before the first wait

Fixes: 131854539
Test: make; open another tab and make
Change-Id: I0a02a1b071964f74473a5f55034f916526e1b309
2019-05-24 17:10:48 -04:00
Colin Cross
7211910fd0 Add manifest_check tool
Add a tool that can check that the <uses-library> tags in an
AndroidManifest.xml file match a list provided by the build.

Bug: 132357300
Test: manifest_check_test
Change-Id: If15abf792282bef677469595e80f19923b87ab62
2019-05-24 13:43:27 -07:00
Colin Cross
4af387c20e Move manifest_fixer to a python_binary_host module
In preparation for making it use multiple files so that some
implementation can be shared with a new tool.

Also make manifest_fixer_test a python_test_host, and add it
to TEST_MAPPING.

Test: m checkbuild
Change-Id: Iaae177efcb978187b126d90359b82cdfd3176857
2019-05-24 13:43:19 -07:00
Colin Cross
a5a6493eaf Merge "Add <uses-library> tags for SDK libraries to AndroidManifest.xml"
am: f0cbace3b2

Change-Id: I06bcac637ed1a660150fe6d2818fd4982a5df6c4
2019-05-24 11:11:56 -07:00
Yi Kong
c0377c2a12 Merge "Enable the experimental LLVM new pass manager"
am: 2adb7eec9a

Change-Id: Ifc09549fc12ac0e28b9973db105d4d83f00588dd
2019-05-24 11:10:11 -07:00
Treehugger Robot
f0cbace3b2 Merge "Add <uses-library> tags for SDK libraries to AndroidManifest.xml" 2019-05-24 17:50:34 +00:00
Yi Kong
2adb7eec9a Merge "Enable the experimental LLVM new pass manager" 2019-05-24 17:33:26 +00:00
Sasha Smundak
5dad251407 Merge "Convert LOCAL_COMPATIBILITY_SUPPORT_FILES to data: attribute in androidmk"
am: 13feeb7b62

Change-Id: Ib05be7cabebae431ca8074b09c8f3374bec5d847
2019-05-24 10:10:28 -07:00
Treehugger Robot
13feeb7b62 Merge "Convert LOCAL_COMPATIBILITY_SUPPORT_FILES to data: attribute in androidmk" 2019-05-24 16:25:48 +00:00
Martin Stjernholm
226b20dc15 Allow //visibility:public to override other visibility rules.
However only allow it when they are merged from different defaults.

Extend the tests to cover that and other cases with visibilities in
defaults.

Also avoid dumping the whole visibility spec in the error message when a
visibility check fails, because it gets noisy for long visibility lists, and
can be confusing when //visibility:public gets merged with other visibility
rules.

Test: Soong self test
Bug: 112158820
Bug: 130796911
Change-Id: I242513975a3f824b9ea2eab5b94b194b9af2481b
2019-05-24 16:33:50 +01:00
Colin Cross
5446e88657 Add <uses-library> tags for SDK libraries to AndroidManifest.xml
Port I4e7a9bdc5bf845af85168abf55f8063900bacc72 and
Ieb7c1429077aaf6899e214a217d9455d95dbfea6 from Make to Soong to
support adding <uses-library> tags to AndroidManifest.xml for
transitive java_sdk_library dependencies and android.test.base
and android.test.mock.

Fixes: 133306356
Test: m checkbuild
Change-Id: I23763bb689c474d25d04a418df1c46e7f0d807af
2019-05-24 13:39:26 +00:00
Dimitry Ivanov
ed0b1aa02f Merge "Fix override for native_bridge modules"
am: acce05a58c

Change-Id: I8033d6b80b28d62cb9ab085f80ca8b89233c9e6d
2019-05-24 06:06:25 -07:00
Dimitry Ivanov
acce05a58c Merge "Fix override for native_bridge modules" 2019-05-24 12:47:24 +00:00
Dimitry Ivanov
158ca2bfa2 Merge "Apply native_bridge suffix to all cc_modules"
am: 7636b362e1

Change-Id: I271439f2533475b074f68ad8119b13432fad5341
2019-05-24 01:42:21 -07:00
Dimitry Ivanov
7636b362e1 Merge "Apply native_bridge suffix to all cc_modules" 2019-05-24 08:28:55 +00:00