Commit graph

14283 commits

Author SHA1 Message Date
Mikhail Naganov
69e10fbcfa Perform TERM check for file writers only
am: 9d42425f25

Change-Id: I2b1a4d5786c66c99dab541d9556f8b4a07e64fdd
2019-07-02 15:13:58 -07:00
Paul Duffin
3916153c86 [automerger skipped] Allow neverallow rules to be defined by custom bootstrap_go_packages
am: aebc02ab29 -s ours
am skip reason: change_id Ie3a4456d1f6bc12c5b4931bf698333275347fdf0 with SHA1 730f2a57e3 is in history

Change-Id: I72d31a46dbe6207f131cc71f6efef033981ab2b4
2019-07-02 14:43:58 -07:00
Mikhail Naganov
9d42425f25 Perform TERM check for file writers only
Tests use fakeSmartTerminal, this case must not be affected
by the TERM setting.

Test: TERM=dumb make
Change-Id: Ib926a1c6ba2d8c4117d412fe351d872ccfc1c799
2019-07-02 09:51:42 -07:00
Paul Duffin
730f2a57e3 Allow neverallow rules to be defined by custom bootstrap_go_packages
* Adds a Rule interface to hide the rule struct and expose the mutator
functions.
* Makes the neverallow() function public as NeverAllow().
* Adds AddNeverAllowRules func to add more rules.
* Moves the population of the builtin rules to init() function.

Bug: 136159343
Test: m droid
      - changed a built in rule to cause build failure to ensure the
	    rules were still being applied, then reverted the change and
		ran 'm droid' again.

Change-Id: Ie3a4456d1f6bc12c5b4931bf698333275347fdf0
Merged-In: Ie3a4456d1f6bc12c5b4931bf698333275347fdf0
(cherry picked from commit 18af090842)
(cherry picked from commit b1cacba022)
2019-07-02 16:21:51 +00:00
Xin Li
88152dd365 DO NOT MERGE - Merge qt-dev-plus-aosp-without-vendor (5699924) into stage-aosp-master
Bug: 134405016
Change-Id: I6154b5b1dc252979cb0f05c8bfafe15fcdd63569
2019-07-01 20:58:36 +00:00
Paul Duffin
aebc02ab29 Allow neverallow rules to be defined by custom bootstrap_go_packages
* Adds a Rule interface to hide the rule struct and expose the mutator
functions.
* Makes the neverallow() function public as NeverAllow().
* Adds AddNeverAllowRules func to add more rules.
* Moves the population of the builtin rules to init() function.

Bug: 136159343
Test: m droid
      - changed a built in rule to cause build failure to ensure the
	    rules were still being applied, then reverted the change and
		ran 'm droid' again.

Change-Id: Ie3a4456d1f6bc12c5b4931bf698333275347fdf0
Merged-In: Ie3a4456d1f6bc12c5b4931bf698333275347fdf0
2019-07-01 16:15:07 +01:00
Jeongik Cha
218964e76e Merge "Enforce hidden api usage in vendor (soong)" am: e65d84c84c
am: 7a22534a47

Change-Id: Iffbacc0f98fb208e6f71919bcefa19cb0e57efca
2019-06-30 19:53:19 -07:00
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
e34e7eacd1 Merge "Improve dumb terminal detection" am: a3ded95424
am: 6be3939c68

Change-Id: I81fabe43666bc09c537223abb2dc7ed6b46d5e5b
2019-06-28 20:51:42 -07: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
3cb1f6a532 Merge "Disabled avx avx2 avx512 compiler flags by default. Library components can enable the flags based on performance impact" am: dd5cf7574b
am: 1b4699a2cf

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

Change-Id: Ib62c7134007c7e7ed9d838a377261c9b3d169213
2019-06-28 14:27:47 -07: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
cbcb8675bc Merge changes from topic "package default_visibility" am: 4190926e61
am: b915658436

Change-Id: Ib207ca13b58e789ea7e545cb99db789cb5d83cfe
2019-06-28 08:51:55 -07: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
f137467b49 Merge "Revert "Revert "Remove option to create boot image based on preloaded classes""" am: 8a255acae2
am: abbcf54625

Change-Id: I65f5927b59ebb4d8999fe4e31a10fd9bcd192063
2019-06-27 09:33:28 -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
eebd76179f Merge "core_current does not include framework libraries" am: bf46d96c60
am: 3704c26631

Change-Id: Ia24a9ceef1cf09fc61f1073e91acfbf7d2d48749
2019-06-27 05:22:14 -07: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
01cc4601fb Merge "Generate ABI dumps for libraries without source" am: 30057808e1
am: 1ee24e40dd

Change-Id: I8fc879a871e43f276b9e9fa4d6ce25be38063dd6
2019-06-26 19:42:08 -07:00
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
a73c8a4e61 Merge "Compute critical path when ninja finishes" am: 7c9b4cf144
am: 7b4a190539

Change-Id: I1f3869fa3d5afb437bab8a4bf77ea03934c1d4ab
2019-06-26 16:53:05 -07: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
6e07ef95ef Merge "Don't pass --legacy by default to aapt2 compile" am: b2e4f475c3
am: 2eda0f6f5d

Change-Id: I3e5a027c57de092e9748ede5fc3366e26f643cc9
2019-06-26 11:36:40 -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
Colin Cross
a650afd23f [automerger skipped] Uncompress dex in unbundled privileged apps
am: 43377eeb38 -s ours
am skip reason: change_id I91da7116b779ae35c0617ef77dbcb9788902370c with SHA1 53a87f523b is in history

Change-Id: Ife37f37640024b5fde6b3ac872f87bad3bad2f0d
2019-06-26 10:59:59 -07:00
Android Build Merger (Role)
a1fe46ab90 Merge changes from topic "am-34a90ca2604f43f08b93fc5a52b3ea03" into qt-dev-plus-aosp
* changes:
  [automerger skipped] Embed NOTICE output as an APEX asset. am: d6585fe6e3 -s ours am skip reason: change_id Ic851b330fe93be1f602907d44ecc7886c3b0171b with SHA1 14f5ff62c9 is in history
  [automerger skipped] Optionally embed NOTICE files in apks. am: 5c6572e53f -s ours am skip reason: change_id I52d92e2fd19b3f5f396100424665c5cc344190d8 with SHA1 5b425e2e20 is in history
2019-06-26 17:56:18 +00:00
Paul Duffin
de24d21f87 Merge "Remove unused condition in decodeSdkDep(...)" am: 25bdad9f2c
am: ee9d638968

Change-Id: Ib5e3b295b3ea7f471da697d22ef6620701225745
2019-06-26 10:56:00 -07:00
Jaewoong Jung
a5cf3d6779 [automerger skipped] Embed NOTICE output as an APEX asset.
am: d6585fe6e3 -s ours
am skip reason: change_id Ic851b330fe93be1f602907d44ecc7886c3b0171b with SHA1 14f5ff62c9 is in history

Change-Id: Ief52daef6c50df87610a853706cc867e9f42485c
2019-06-26 10:55:09 -07:00
Jaewoong Jung
b556119537 [automerger skipped] Optionally embed NOTICE files in apks.
am: 5c6572e53f -s ours
am skip reason: change_id I52d92e2fd19b3f5f396100424665c5cc344190d8 with SHA1 5b425e2e20 is in history

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

Change-Id: I2ea16e342d9bea29cf98ab6ed277a7654861eb29
2019-06-26 10:52:54 -07:00
Paul Duffin
ee9d638968 Merge "Remove unused condition in decodeSdkDep(...)"
am: 25bdad9f2c

Change-Id: Ia2217236fc2aff907dd7358d39bcc36de059c49c
2019-06-26 10:22:37 -07:00