Commit graph

12976 commits

Author SHA1 Message Date
Sasha Smundak
fc22e4eeba Treat stl: "system" the same way as default.
Test: verify that adding `stl: "system"` does not change the module
build.

Change-Id: I55fbde223e4a4695df7524213e1bf3671da84e8e
2019-03-24 14:17:56 -07:00
yelinhsieh
e586db7d37 Merge "ATest: GTest auto gen config support run_test_as in Android.bp ." am: 789b84b12f am: 7408bd6dc1
am: 5aacb61aec

Change-Id: I5787c4b630a69a56034365c6ceb361fab9958db9
2019-03-23 08:02:27 -07:00
Colin Cross
235810e510 Merge "Don't visit disabled modules with SOONG_COLLECT_JAVA_DEPS=true" am: 6d75c9d18e am: 4e976b56be
am: d139b8037c

Change-Id: I2007374b40673f07085a94d110cf65cfeda9570e
2019-03-23 08:01:59 -07:00
yelinhsieh
5aacb61aec Merge "ATest: GTest auto gen config support run_test_as in Android.bp ." am: 789b84b12f
am: 7408bd6dc1

Change-Id: Ie988da515fb7dc00acec3801409fb97a8c398bc8
2019-03-23 07:58:20 -07:00
Colin Cross
d139b8037c Merge "Don't visit disabled modules with SOONG_COLLECT_JAVA_DEPS=true" am: 6d75c9d18e
am: 4e976b56be

Change-Id: Iaf4eb4f53855ce92e9b4c808a8ca87a10fea66d6
2019-03-23 07:57:56 -07:00
yelinhsieh
7408bd6dc1 Merge "ATest: GTest auto gen config support run_test_as in Android.bp ."
am: 789b84b12f

Change-Id: I87f3520d5bda43abde35246cd6a300f7292d7061
2019-03-23 07:53:22 -07:00
Colin Cross
4e976b56be Merge "Don't visit disabled modules with SOONG_COLLECT_JAVA_DEPS=true"
am: 6d75c9d18e

Change-Id: I01640217a3b8d7fb805fc1ca64b44441a07d248f
2019-03-23 07:52:54 -07:00
Treehugger Robot
789b84b12f Merge "ATest: GTest auto gen config support run_test_as in Android.bp ." 2019-03-23 14:45:45 +00:00
Treehugger Robot
6d75c9d18e Merge "Don't visit disabled modules with SOONG_COLLECT_JAVA_DEPS=true" 2019-03-23 14:41:37 +00:00
Colin Cross
593bb1c16c Merge "Rename jetifier property and add it to androidmk" am: 4ada982da9 am: 33938d3188
am: eb1cebad0d

Change-Id: I6ae03146be0e84ac0391c5db2a944eb054b8a9e9
2019-03-22 23:32:57 -07:00
Colin Cross
eb1cebad0d Merge "Rename jetifier property and add it to androidmk" am: 4ada982da9
am: 33938d3188

Change-Id: If3091a403e82cb0ca19d87f812e51d3257a119ed
2019-03-22 23:28:53 -07:00
Colin Cross
33938d3188 Merge "Rename jetifier property and add it to androidmk"
am: 4ada982da9

Change-Id: I2bdca07d471ec4e603c5b6eb09213eb48717e3e2
2019-03-22 23:24:52 -07:00
Treehugger Robot
4ada982da9 Merge "Rename jetifier property and add it to androidmk" 2019-03-23 06:09:25 +00:00
Colin Cross
c48428a6bb Don't visit disabled modules with SOONG_COLLECT_JAVA_DEPS=true
Calling AndroidMk() on a disabled module may not be safe because
the module will not have had GenerateAndroidBuildActions() called
on it to initialize the data structures that AndroidMk() expects
to exist.  Check module.Enabled() before generating IDE info.

Fixes: 129089976
Test: SOONG_COLLECT_JAVA_DEPS=true m nothing
Change-Id: Icd79088c532c1842801f2bf89d92bc1a67109936
2019-03-23 04:42:57 +00:00
yelinhsieh
9fc6040efe ATest: GTest auto gen config support run_test_as in Android.bp .
Feature request from developer, support setting uid in Android.bp.

This relands I5604af5f20c45728d19f4c01396a20a74997f8a8 on top of
I2210c15b84f9b30e1cc23b426d463b34cf9ef94f.

Bug: 113359343

Test: source build/envsetup.sh ; lunch
    vim platform_testing/tests/example/native/Android.bp
    add
    test_options: {
        run_test_as: "1234",
    },
    in cc_test
    make hello_world_test
    cat out/target/product/xxxx/testcases/hello_world_test/hello_world_test.config
    Will see  <option name="run-test-as" value="1234" />
    below <test class="com.android.tradefed.testtype.GTest" >

Change-Id: I0b167c44c00ff0eab51443fc93dd8fa2abbe54cf
2019-03-23 04:42:48 +00:00
Yi Kong
630b960fb5 Support LLD ThinLTO cache/threshold option
LLD has different option syntax for specifying ThinLTO cache. Change it
to LLD syntax and drop the support for GOLD, since there aren't many
projects that are linked with it.

Test: USE_THINLTO_CACHE=true m
Change-Id: I5c6c5281a05793414a6387d52ae48d9b43822ee9
2019-03-22 21:32:45 -07:00
Jaewoong Jung
fb96a51b76 Merge "Add synopsis for prebuilt_apis." am: 66f2e8701e am: a04359740d
am: 8dce4b328d

Change-Id: Ic4a3491e288d9d2316d49cbb1bf6c88ee4934988
2019-03-22 10:41:15 -07:00
Jaewoong Jung
8dce4b328d Merge "Add synopsis for prebuilt_apis." am: 66f2e8701e
am: a04359740d

Change-Id: I2850abfa3564bfa711e867b2b7707d2f3b329801
2019-03-22 10:37:10 -07:00
Jaewoong Jung
a04359740d Merge "Add synopsis for prebuilt_apis."
am: 66f2e8701e

Change-Id: I371cd04d327f97f93ef46fa391a6fb43b87887b4
2019-03-22 10:30:14 -07:00
Colin Cross
8e6eb6c660 Merge changes If670f20d,I8cf5f3b8 am: 663716bc35 am: 17f6de0251
am: 7ca08304b8

Change-Id: I5b04cac686bfff0ede25f03197a122479fe89710
2019-03-22 10:22:17 -07:00
Jaewoong Jung
66f2e8701e Merge "Add synopsis for prebuilt_apis." 2019-03-22 17:16:45 +00:00
Colin Cross
7ca08304b8 Merge changes If670f20d,I8cf5f3b8 am: 663716bc35
am: 17f6de0251

Change-Id: Ibe24a6f46459ca00c8b198d564736588fbf0669e
2019-03-22 10:16:05 -07:00
Colin Cross
17f6de0251 Merge changes If670f20d,I8cf5f3b8
am: 663716bc35

Change-Id: I5be513f21166ee465ce5e83144103a178983ed17
2019-03-22 10:12:08 -07:00
Colin Cross
663716bc35 Merge changes If670f20d,I8cf5f3b8
* changes:
  Panic if logging is attempted after Close
  Wait for ninja proto processing to finish when exiting
2019-03-22 16:49:29 +00:00
Colin Cross
1001a7971a Rename jetifier property and add it to androidmk
Rename jetifier_enabled to jetifier since there are no users
yet and it is more consistent with the rest of the Soong
properties.  Also add it to androidmk translation.

Fixes: 123524520
Test: androidmk_test.go
Change-Id: Ib4c688cf3cb171a822ddf7dd49467522c4c1276c
2019-03-22 15:25:30 +00:00
Jaewoong Jung
79e3e79ee8 Merge "Add override_android_app module type." am: e9665723da am: 9874d6abe6
am: c3432e294e

Change-Id: I28638a23c6140ae1775187a2afc61b15db97f487
2019-03-22 07:57:11 -07:00
Jaewoong Jung
c3432e294e Merge "Add override_android_app module type." am: e9665723da
am: 9874d6abe6

Change-Id: I497f4278a972a4388195b1032a349312a200f6fe
2019-03-22 07:53:08 -07:00
Jaewoong Jung
9874d6abe6 Merge "Add override_android_app module type."
am: e9665723da

Change-Id: Ic06e7a630d030b92a7fe24417d9946e75a25c421
2019-03-22 07:49:13 -07:00
Jaewoong Jung
e9665723da Merge "Add override_android_app module type." 2019-03-22 14:36:04 +00:00
Jiyong Park
81a6bc06ac Merge ":module syntax support properties in apex_key" am: ebe2b86cbc am: f04c3cc24c
am: c29204d55b

Change-Id: I3f5a183d5fe63dc67e69eeec801baf57377e1556
2019-03-22 00:17:33 -07:00
Jiyong Park
c29204d55b Merge ":module syntax support properties in apex_key" am: ebe2b86cbc
am: f04c3cc24c

Change-Id: I1195f408aee87686e2ede363c9e06c06f25011da
2019-03-22 00:13:28 -07:00
Jiyong Park
f04c3cc24c Merge ":module syntax support properties in apex_key"
am: ebe2b86cbc

Change-Id: Ia2d5e2ae7dd6a8fe8b29bb624105c165f382dd78
2019-03-22 00:09:26 -07:00
Treehugger Robot
ebe2b86cbc Merge ":module syntax support properties in apex_key" 2019-03-22 06:57:33 +00:00
Colin Cross
1aeb049a54 Panic if logging is attempted after Close
Attempt to catch places where logs are truncated by panicing if
logging is attempted after Close.

Test: m nothing
Change-Id: If670f20d08832ed65b63af5589b548e9815f2f0d
2019-03-21 21:17:04 -07:00
Colin Cross
b98d3bcf4e Wait for ninja proto processing to finish when exiting
Wait for the ninja proto processing goroutine to notice the fifo
has closed and exit before continuing.

Test: m nothing
Change-Id: I8cf5f3b8bf6a91496c6d2bbbd3e811eb7f0c9d21
2019-03-21 21:17:04 -07:00
Dan Willemsen
2039c8ebfb Merge "Tell make that sh_test is a NATIVE_TEST" am: 7446606eeb am: 4204e66c4c
am: 66f363dbff

Change-Id: I5f14565e0ebd1393666199263894764db722617c
2019-03-21 20:28:37 -07:00
Dan Willemsen
66f363dbff Merge "Tell make that sh_test is a NATIVE_TEST" am: 7446606eeb
am: 4204e66c4c

Change-Id: I6430c61b005bafac6310461b9fc6bf8f04a3cfb6
2019-03-21 20:16:29 -07:00
Dan Willemsen
4204e66c4c Merge "Tell make that sh_test is a NATIVE_TEST"
am: 7446606eeb

Change-Id: I1c041820479d0cc2bc090913e6ad7077d49fddae
2019-03-21 20:08:31 -07:00
Treehugger Robot
7446606eeb Merge "Tell make that sh_test is a NATIVE_TEST" 2019-03-22 02:58:42 +00:00
Jiyong Park
6788256d09 :module syntax support properties in apex_key
public_key and private_key properties support :module syntax so that the
key pairs can be dynamically created during the build, which is useful
for one-time keys.

Bug: 128960614
Test: m (apex_test amended)

Change-Id: I249b1d29f247784193b0d733a7b6a20274ece105
2019-03-22 11:41:09 +09:00
Peter Collingbourne
8338297f77 Merge "Pass -fsanitize-hwaddress-abi=platform when building with hwasan." am: df59655fa3 am: 15f0586f86
am: d485165c75

Change-Id: I476bf3798d4eeec998e1f56d5ae5b22ae4481e58
2019-03-21 19:40:22 -07:00
Peter Collingbourne
d485165c75 Merge "Pass -fsanitize-hwaddress-abi=platform when building with hwasan." am: df59655fa3
am: 15f0586f86

Change-Id: I793c7b21a02d2315f84c80a587e09cdfbcbc5dcd
2019-03-21 19:36:18 -07:00
Peter Collingbourne
15f0586f86 Merge "Pass -fsanitize-hwaddress-abi=platform when building with hwasan."
am: df59655fa3

Change-Id: Ib441f3fde7714feb4671d039a9b8ed4d9994ddfe
2019-03-21 19:32:16 -07:00
Peter Collingbourne
df59655fa3 Merge "Pass -fsanitize-hwaddress-abi=platform when building with hwasan." 2019-03-22 02:14:34 +00:00
Inseob Kim
2d99aace46 Merge "Fix checking of empty slice properties" am: 6b200500cc am: 2aad89a882
am: adabb74d08

Change-Id: I2529e13a5310163b22ce41c12e5ab2242c944b4a
2019-03-21 19:00:18 -07:00
Inseob Kim
adabb74d08 Merge "Fix checking of empty slice properties" am: 6b200500cc
am: 2aad89a882

Change-Id: Ia4e1533586ce470b6718950421eb7fcf19fb2ca4
2019-03-21 18:48:14 -07:00
Inseob Kim
2aad89a882 Merge "Fix checking of empty slice properties"
am: 6b200500cc

Change-Id: Iee776c587b66a28e007545e47c35703dc5efdc7a
2019-03-21 18:36:09 -07:00
Treehugger Robot
6b200500cc Merge "Fix checking of empty slice properties" 2019-03-22 01:22:11 +00:00
Jaewoong Jung
5fb5b2a7f5 Add synopsis for prebuilt_apis.
Test: m soong_docs
Change-Id: I0e2cefd3dd24e5c8483d32cc325a37e96d3d495c
2019-03-21 17:44:11 -07:00
Yi Kong
69c1ed91d8 Turn on new pass manager for PGO projects
With new pass manager, dex2oat benchmark showed 1.61% performance
improvement though binary size saw an increase of 3.37%.

For Googlers, detailed benchmark results are in go/android-pgo-npm.

Test: m checkbuild
Bug: 118894695
Change-Id: I1687886acac7f61e67265a9c73997fb241ad31e6
2019-03-21 23:43:42 +00:00