Commit Graph

12014 Commits

Author SHA1 Message Date
Jeongik Cha
7a22534a47 Merge "Enforce hidden api usage in vendor (soong)"
am: e65d84c84c

Change-Id: I53bf34f85ef25d57b0af585344c55733463b091e
2019-06-30 19:32:16 -07:00
Treehugger Robot
e65d84c84c Merge "Enforce hidden api usage in vendor (soong)" 2019-07-01 02:06:57 +00:00
Mikhail Naganov
6be3939c68 Merge "Improve dumb terminal detection"
am: a3ded95424

Change-Id: I8e602bcfd343f6d7ec2163460c89956d0eccdbbc
2019-06-28 20:24:43 -07:00
Treehugger Robot
a3ded95424 Merge "Improve dumb terminal detection" 2019-06-29 02:45:43 +00:00
jaishank
1b4699a2cf Merge "Disabled avx avx2 avx512 compiler flags by default. Library components can enable the flags based on performance impact"
am: dd5cf7574b

Change-Id: I123a807852e84a6fe9a25360d10bab4c0de37a28
2019-06-28 14:22:05 -07:00
Colin Cross
6598f20be5 Merge "Treat .cxx files as c++"
am: 35bb770e0e

Change-Id: I18b67e43e531aa989bd1f5312808c98bc619063a
2019-06-28 14:21:47 -07:00
Treehugger Robot
dd5cf7574b Merge "Disabled avx avx2 avx512 compiler flags by default. Library components can enable the flags based on performance impact" 2019-06-28 21:14:33 +00:00
Treehugger Robot
35bb770e0e Merge "Treat .cxx files as c++" 2019-06-28 20:43:33 +00:00
Paul Duffin
b915658436 Merge changes from topic "package default_visibility"
am: 4190926e61

Change-Id: I2ef9bbf783a62a491af0fcf2e9969946158b69ff
2019-06-28 07:37:32 -07:00
Paul Duffin
4190926e61 Merge changes from topic "package default_visibility"
* changes:
  Inherit default_visibility from parent package
  Allow default visibility to be set per package
2019-06-28 09:24:57 +00:00
Jeongik Cha
6bd33c13bb Enforce hidden api usage in vendor (soong)
From aosp/588578, if vendor app doesn't fill sdk_version, build scirpt overwrites system_current to sdk_version.
But there is no similar enforcement in soong.

So, as make does, sdkVersion() returns "system_current" if it is device-specific or soc-specific module. and sdk_version is not filled.

Test: pass soong test
Bug: 132780927

Change-Id: I69bb3d7bfcf7c27c2db4d0efbe046f9c7879b4bc
2019-06-28 14:56:59 +09:00
Colin Cross
d34ab7c6b2 Treat .cxx files as c++
Fixes: 135749365
Fixes: 135667566
Test: m checkbuild
Change-Id: If47274812dfe781ebbb9f8a60a395650573727d5
2019-06-27 14:46:10 -07:00
Mikhail Naganov
b073581441 Improve dumb terminal detection
When figuring out terminal type, check whether TERM=dumb is set.

Test: m nothing
Test: TERM=dumb m nothing
Test: m nothing | tee log
Change-Id: Ie13ca99eb84b798644d618ad1c8c1fb8ec8bb049
2019-06-27 10:54:53 -07:00
Mathieu Chartier
abbcf54625 Merge "Revert "Revert "Remove option to create boot image based on preloaded classes"""
am: 8a255acae2

Change-Id: Iaa48cb73170c43f36e2a6872599ebc703bf5b8ce
2019-06-27 09:22:44 -07:00
Mathieu Chartier
8a255acae2 Merge "Revert "Revert "Remove option to create boot image based on preloaded classes""" 2019-06-27 15:56:52 +00:00
Paul Duffin
e484f47a63 Inherit default_visibility from parent package
Enhances the visibility mechanism to use the default_visibility
property of the closest ancestor package that has the property
specified.

Bug: 133290645
Test: m droid
Change-Id: I7248e9034a73894ac8d514f913316438c4d7c079
2019-06-27 13:24:59 +01:00
Paul Duffin
e2453c705f Allow default visibility to be set per package
Adds a package module type with a default_visibility property. The
package module type can only be specified once per package.

Bug: 133290645
Test: m droid
Change-Id: Ibb2fb499c9ea88ecaa662d3cd2cbde478e4b9a4b
2019-06-27 13:24:50 +01:00
Paul Duffin
3704c26631 Merge "core_current does not include framework libraries"
am: bf46d96c60

Change-Id: I269544959da1f2fcad31c4222042475508a4138a
2019-06-27 05:12:10 -07:00
Paul Duffin
bf46d96c60 Merge "core_current does not include framework libraries" 2019-06-27 11:43:32 +00:00
jaishank
7e84969f96 Disabled avx avx2 avx512 compiler flags by default.
Library components can enable the flags based on
performance impact

Test: run-test gtest
Change-Id: I41c4464cffd2b0e830d4ab1c5a25b378e2a25129
Signed-off-by: jaishank <jaishankar.rajendran@intel.com>
2019-06-27 10:36:23 +05:30
Hsin-Yi Chen
1ee24e40dd Merge "Generate ABI dumps for libraries without source"
am: 30057808e1

Change-Id: I8628ba2e93b32919bdda3d8478db1aadeabf441d
2019-06-26 19:28:16 -07:00
Hsin-Yi Chen
30057808e1 Merge "Generate ABI dumps for libraries without source" 2019-06-27 02:08:34 +00:00
Colin Cross
7b4a190539 Merge "Compute critical path when ninja finishes"
am: 7c9b4cf144

Change-Id: I15325ebebc954a4d6aa4086d69cadccc9796171a
2019-06-26 16:43:02 -07:00
Treehugger Robot
7c9b4cf144 Merge "Compute critical path when ninja finishes" 2019-06-26 23:22:52 +00:00
Mathieu Chartier
6adeee1131 Revert "Revert "Remove option to create boot image based on preloaded classes""
Test: make
Test: build/soong/scripts/build-ndk-prebuilts.sh

This reverts commit d3f688b521.

Change-Id: Ia8898d11d67e5f0c4d8886f13d29f5dbd5f8609b
2019-06-26 14:54:47 -07:00
Colin Cross
7b6245388c Compute critical path when ninja finishes
Keep a running map of the critical path to each edge as it
finishes.  At the end of the build, find the edge with the
longest critical path and print the path to out/soong.log.

Test: critical_path_test.go
Change-Id: Ie01d26b068b768156b166bff00cdc3273e8124ca
2019-06-26 11:31:17 -07:00
Colin Cross
2eda0f6f5d Merge "Don't pass --legacy by default to aapt2 compile"
am: b2e4f475c3

Change-Id: I0949347efc99a2c7d8c358ad7bb76462287863a5
2019-06-26 11:00:31 -07:00
Paul Duffin
ee9d638968 Merge "Remove unused condition in decodeSdkDep(...)"
am: 25bdad9f2c

Change-Id: Ia2217236fc2aff907dd7358d39bcc36de059c49c
2019-06-26 10:22:37 -07:00
Mathieu Chartier
c286a25894 Merge "Revert "Remove option to create boot image based on preloaded classes""
am: a6c4ff2cc8

Change-Id: I7d61481b01ec6c12e92f22734987fd60f368dbcf
2019-06-26 10:19:54 -07:00
Colin Cross
b2e4f475c3 Merge "Don't pass --legacy by default to aapt2 compile" 2019-06-26 17:05:34 +00:00
Treehugger Robot
25bdad9f2c Merge "Remove unused condition in decodeSdkDep(...)" 2019-06-26 16:56:20 +00:00
Mathieu Chartier
a6c4ff2cc8 Merge "Revert "Remove option to create boot image based on preloaded classes"" 2019-06-26 16:52:45 +00:00
Mathieu Chartier
d3f688b521 Revert "Remove option to create boot image based on preloaded classes"
This reverts commit 4a0473175e.

Reason for revert: NDK build broken

Change-Id: Id98bf9d5f82ed72d8c489264cf9d754e8ea1d27e
2019-06-26 16:44:38 +00:00
Mathieu Chartier
26f8e25cc1 Merge "Remove option to create boot image based on preloaded classes"
am: e2a8e7f0ec

Change-Id: I3df7c1e5949b6435f658484ed82d6e16145929ad
2019-06-26 09:22:31 -07:00
Mathieu Chartier
e2a8e7f0ec Merge "Remove option to create boot image based on preloaded classes" 2019-06-26 15:56:36 +00:00
Paul Duffin
7aae6e7794 core_current does not include framework libraries
Bug: 134566750
Test: m droid
Change-Id: I9496a121e28fabe0c60959ac8ccea60ec4b58544
2019-06-26 14:38:00 +01:00
Paul Duffin
735d03c65c Remove unused condition in decodeSdkDep(...)
The string "core.platform.api.stubs" is never passed to the toModule
function since change I6bb6c1a0ea24437c8253dc5d8fabd37edabc9d3e.

Bug: 134566750
Test: m droid
Change-Id: Ia425a433cd762bba30be72e837fa4199580e5b6c
2019-06-26 14:37:31 +01:00
Dan Willemsen
257400347a Merge "Use prebuilt m4 for bison too"
am: 02f6880c27

Change-Id: Ifdb21d8b2d9693bd1e14ca2de05984c920ba413d
2019-06-25 21:19:26 -07:00
Treehugger Robot
02f6880c27 Merge "Use prebuilt m4 for bison too" 2019-06-26 03:33:43 +00:00
Colin Cross
d7f9313e5b Merge "Uncompress dex in unbundled privileged apps"
am: 49eb5477c7

Change-Id: I84058cb40912486118bb32ee662f2331987af85f
2019-06-25 18:35:53 -07:00
Treehugger Robot
49eb5477c7 Merge "Uncompress dex in unbundled privileged apps" 2019-06-26 00:51:45 +00:00
Dan Willemsen
c4a6aa83e8 Use prebuilt m4 for bison too
Bison is currently looking for m4 directly in `/usr/bin/m4`, instead of
through $PATH, so it hadn't been tracked via the $PATH interposer
checks. But if you don't install m4 at all, it starts failing.

Bug: 117561006
Bug: 130111713
Test: Run on a machine without m4, build passes
Change-Id: I3fbad64127c183de79c17511e979fd5df946eb80
2019-06-25 16:12:12 -07:00
Jaewoong Jung
4ef772eee9 Create test build dir only once for apex_test.
am: c1001ec0c5

Change-Id: Id1cc21b3070a5392e900f38f392c20dacff3475d
2019-06-25 15:47:20 -07:00
Mathieu Chartier
4a0473175e Remove option to create boot image based on preloaded classes
From now on, the only supported approach is to use a boot image profile.

Test: make

Change-Id: Ibd8fbd1dd81db0a7b3f3b3e626a70dcc26510224
2019-06-25 15:38:25 -07:00
Colin Cross
53a87f523b Uncompress dex in unbundled privileged apps
Mainline builds privileged apps unbundled and then uses them as
prebuilts, so they need to respect the privileged flag when
deciding whether or not to uncompress the dex.

Bug: 135772877
Test: TestUncompressDex
Change-Id: I91da7116b779ae35c0617ef77dbcb9788902370c
2019-06-25 13:36:46 -07:00
Jaewoong Jung
c1001ec0c5 Create test build dir only once for apex_test.
Test: apex_test.go
Change-Id: Ib96ea4ec5d5ff0d8e8cf4a9eb479099cf2b1977c
2019-06-25 11:20:53 -07:00
Jaewoong Jung
69f8f238cb Merge changes from topic "apex_notice"
am: 50c744e916

Change-Id: Idbc4061ce0998e2908eb3d9bb6ef362ad20d06f0
2019-06-25 09:59:40 -07:00
Jaewoong Jung
5d48965fed Optionally embed NOTICE files in apks.
am: 5b425e2e20

Change-Id: I0397838781d5ce7ba20778706d3b0ee4936080e8
2019-06-25 09:59:31 -07:00
Jaewoong Jung
50c744e916 Merge changes from topic "apex_notice"
* changes:
  Embed NOTICE output as an APEX asset.
  Optionally embed NOTICE files in apks.
2019-06-25 16:41:16 +00:00
Hsin-Yi Chen
f6a95467e2 Generate ABI dumps for libraries without source
This commit enables ABI diff for libraries without source.
Stub libraries are excluded.

Test: ./create_reference_dumps.py -products aosp_arm64
Test: make
Bug: 135728451
Change-Id: Idbe276db6f5e057175fc098f0226cb38996faa17
2019-06-25 15:06:13 +08:00