Commit graph

11084 commits

Author SHA1 Message Date
Treehugger Robot
33548f07a8 Merge "Soong: Update the filegroup's synopsis documentation." 2019-03-13 20:44:49 +00:00
Patrice Arruda
8958a942d1 Soong: Update the filegroup's synopsis documentation.
Cleaned up the synopsis of filegroups module under android package.

Bug: b/128337482
Test: built the documentation manually and verified that the changes
took place.

Change-Id: Ib5544125e5462fca7c7aebc4bed4647bba11d56b
2019-03-13 10:53:36 -07:00
Jaewoong Jung
dde127fdb6 Build doc improvements.
am: 12c02a63d0

Change-Id: I76036f99a5140ddd4c6d7ecb86d4a01ca62a31a8
2019-03-13 10:31:51 -07:00
Adam Vartanian
fa62cfc2aa Add Conscrypt to coverage
Bug: 73156932
Test: manual coverage run
Change-Id: I20dc1595ba55d8425bf16770c1f2e6e4fa8bffae
2019-03-13 13:46:14 +00:00
Shalini Salomi Bodapati
4a0459dd03 Add AVX/AVX2 supported archs in build system
This patch adds new arch features avx2 and avx512 and
their supported archictectures for x86 and x86_64

Bug: 123376719
Test: m checkbuild

Change-Id: I3c079741815b39d7dbb4072e12ef7c9c2c15f5fe
Signed-off-by: Shalini Salomi Bodapati <shalini.salomi.bodapati@intel.com>
2019-03-13 03:48:45 +00:00
Jaewoong Jung
12c02a63d0 Build doc improvements.
Bring property type strings to the start of property comments. This is
how source.android.com shows variables and paratemeters, and it is also
easier to read, especially when a comment ends with a code example.

Test: m soong_docs
Change-Id: Ic3e9db3a3711495998919ee95bbef6c7cb33b215
2019-03-12 13:31:11 -07:00
Patrice Arruda
a3864b9ad8 Merge "Soong: Add documentation to sh_binary[_host] module."
am: 66184450d5

Change-Id: I697d998be8b1776f9dd52c661754234034ae388c
2019-03-12 09:38:50 -07:00
Patrice Arruda
66184450d5 Merge "Soong: Add documentation to sh_binary[_host] module." 2019-03-12 16:21:36 +00:00
Patrice Arruda
61bb94811c Merge "Soong: Update documentation on prebuilt* modules."
am: 9dd4b38c40

Change-Id: I225d3689a57d99391a8e1d06e7bf5a71e9780862
2019-03-12 07:55:25 -07:00
Treehugger Robot
9dd4b38c40 Merge "Soong: Update documentation on prebuilt* modules." 2019-03-12 14:47:36 +00:00
Jaewoong Jung
7c8d1b2400 Merge "Change module type text to HTML in build docs."
am: 0d2c1d1e23

Change-Id: I2e51a3005fe8a9d84f60536cae9d51f04b16abac
2019-03-11 18:59:34 -07:00
Treehugger Robot
0d2c1d1e23 Merge "Change module type text to HTML in build docs." 2019-03-12 01:48:23 +00:00
Patrice Arruda
9e14b96f29 Soong: Update documentation on prebuilt* modules.
The prebuilt_etc_host is missing synopsis. Also, cleaned up the
synopsis of the remaining prebuilt* module to be clearer.

Bug: b/128337482
Test: Built the documentation and verified that the output is correct.
Change-Id: I64593970a44b548ac841de79aa0e4aa1699c6c9b
2019-03-11 16:14:07 -07:00
Sasha Smundak
73b5551a8d Fix crash in mergeListProperties
am: 177a1a589d

Change-Id: I8818a740f0beb5fb150937bd45af9f50b43b8562
2019-03-11 15:03:00 -07:00
Jaewoong Jung
238be3807c Change module type text to HTML in build docs.
To add code format (<pre>...</pre>) support to module type texts.

Fixes: 124332708
Test: m soong_docs
Change-Id: Ibe9d3845a8f952fdef5007893d4af5836809ce1f
2019-03-11 14:35:41 -07:00
Patrice Arruda
e103419483 Soong: Add documentation to sh_binary[_host] module.
Synopsis was missing to the sh_binary[_host] module.

Bug: b/128337482
Test: Ran m soong_docs and verified that sh_binary[_host] module
had a synopsis.

Change-Id: I0bb702ab2d8e4168664e7bba397e0e26af7f03ab
2019-03-11 14:26:47 -07:00
Sasha Smundak
177a1a589d Fix crash in mergeListProperties
The value of a property to be merged may be a reference to a variable.
When we first create an attribute for a makefile variable (e.g. we
create 'android_static_libs' from LOCAL_STATIC_ANDROID_LIBRARIES), we
set its type correctly. However, reparse in bpfix erases this
information, so by the time 'android_static_libs' attribute is to be
merged with 'static_libs', it has no type and merge occurs. It isn't
easy to fix properly, so just don't merge in such case, Soong will
complain and it will be fixed manually.

Fixes: 125519127
Test: unit tests in androidmk_test.go
Change-Id: Ic66d7ab686a2fdde987f32e2b204c72d9bf0d026
2019-03-11 10:11:17 -07:00
Andrei-Valentin Onea
2af4ac8fa8 Merge "Differentiate system and test apis in whitelist"
am: fdd1457fa6

Change-Id: I1f41c4a7118ec1114bbb5979fe67e2a736935077
2019-03-08 08:43:57 -08:00
Andrei-Valentin Onea
fdd1457fa6 Merge "Differentiate system and test apis in whitelist" 2019-03-08 16:22:11 +00:00
Colin Cross
3e03e9a6bc Fix ALLOW_MISSING_DEPENDENCIES=true builds
am: 1255a561e6

Change-Id: Iffbb090383c0c833a96aaa808709ac83621b6949
2019-03-07 17:36:07 -08:00
Colin Cross
1255a561e6 Fix ALLOW_MISSING_DEPENDENCIES=true builds
Don't error out immediately if a SourceDepTag dependency is missing
if ALLOW_MISSING_DEPENDENCIES=true is set.

Test: forrest on unbundled build
Change-Id: I9077013e09e3ad0e90ae5163b26aace5b263e63a
2019-03-07 21:43:10 +00:00
Steven Moreland
f3467d396b Merge "dumpvars += BOARD_VNDK_VERSION"
am: 38bfc16c18

Change-Id: Iaaf66ba580f948a103431c11a6661fb99aa83973
2019-03-07 13:39:45 -08:00
Treehugger Robot
38bfc16c18 Merge "dumpvars += BOARD_VNDK_VERSION" 2019-03-07 21:23:55 +00:00
Colin Cross
0db2ea38bf Add test for ctx.ExpandSources
am: 937664a50a

Change-Id: I1700d066fa22f9f069a09b044fced5022e6bc36d
2019-03-07 11:05:20 -08:00
Colin Cross
e5f6f175a8 Annotate paths and deprecate ExtractSource(s)Deps
am: 27b922f53e

Change-Id: I6b4bd574d9dabf006e16f67a5212c63a2a0c7550
2019-03-07 11:05:13 -08:00
Colin Cross
ad566c5829 Add path properties mutator
am: 1b48842a4b

Change-Id: Ib7322a2e6a402f9e2e0b833b5e577fa3289df3eb
2019-03-07 11:05:06 -08:00
Colin Cross
937664a50a Add test for ctx.ExpandSources
Test: TestExpandSources
Change-Id: Ib2168b00618a45b2a36c4b158c6c02c4727a960b
2019-03-07 18:36:46 +00:00
Colin Cross
27b922f53e Annotate paths and deprecate ExtractSource(s)Deps
Add `android:"path"` to all properties that take paths to source
files, and remove the calls to ExtractSource(s)Deps, the
pathsDepsMutator will add the necessary SourceDepTag dependency.

Test: All soong tests
Change-Id: I488ba1a5d680aaa50b04fc38acf693e23c6d4d6d
2019-03-07 18:36:35 +00:00
Colin Cross
1b48842a4b Add path properties mutator
Add a mutator pass after DepsMutator that visits every property
struct in every module looking for properties that have a tag
`android:"path"`, and automatically add a SourceDepTag dependency
on any module references (":module-name") found.  Uses a cache to
store the mapping of property struct type to locations of
properties with the tag.

Test: android/path_properties_test.go
Change-Id: I38c0497843dde4890e9342c3a6f0b402c0720742
2019-03-07 18:36:24 +00:00
Steven Moreland
0002028c09 dumpvars += BOARD_VNDK_VERSION
Dump variable in log to track remaining targets which don't set it.

Bug: 122954981
Test: $ grep VNDK out/soong.log
2019/03/07 09:22:04.235604 build/soong/ui/build/dumpvars.go:109: BOARD_VNDK_VERSION current

Change-Id: I34146c752a4bf0d799374bb93cc0d75b0f1b048c
2019-03-07 09:28:35 -08:00
Colin Cross
2124eecd58 Merge "Add neverallow rules for java_device_for_host"
am: 1361449710

Change-Id: I7b60feebd6af1675832ea01d87152a2dabfb28be
2019-03-07 08:23:09 -08:00
Treehugger Robot
1361449710 Merge "Add neverallow rules for java_device_for_host" 2019-03-07 16:14:45 +00:00
Colin Cross
c35c5f9824 Add neverallow rules for java_device_for_host
java_device_for_host and java_host_for_device should rarely be
used and could cause problems if used incorrectly, so restrict them
to only the necessary projects through a neverallow whitelist.

Bug: 117920228
Test: neverallow_test.go
Change-Id: I37dce489c2fb8bca71bd46dbabaaa514bf6f7eee
Merged-In: I37dce489c2fb8bca71bd46dbabaaa514bf6f7eee
2019-03-07 15:23:21 +00:00
Sasha Smundak
5dbf48ee63 Merge "Do not "escape" newline if comment ends with ESC character."
am: e3ca7fd565

Change-Id: I2d206fb24ec74e8e051f83a503fb0cac381796e0
2019-03-06 20:38:24 -08:00
Treehugger Robot
e3ca7fd565 Merge "Do not "escape" newline if comment ends with ESC character." 2019-03-07 04:29:45 +00:00
Jooyung Han
c7da1a6b81 cc_test: emit errors if there's duplicate in srcs
am: a61ff2cec3

Change-Id: Iace7509da2d9bf6cca8f5820ed4e7ac6b93f7316
2019-03-06 18:08:57 -08:00
Jooyung Han
a61ff2cec3 cc_test: emit errors if there's duplicate in srcs
In general "srcs" property allows duplication in the list.
But when cc_test's "test_per_src" property is set "true",
there will be variants according to "srcs" list.
Therefore, it should fail if there is a duplicate entry
in srcs list.

Bug: 113629474
Test: mma
Change-Id: I543624459c30dd296494a3a80e28ce5503a3ea2f
2019-03-07 01:57:57 +00:00
Sasha Smundak
e10952b442 Do not "escape" newline if comment ends with ESC character.
Fixes: 127521510
Test: manual
Change-Id: I88a8eb2ca94b8aa06e2682d2c14f9e74f5ada286
2019-03-06 16:46:23 -08:00
Nicolas Geoffray
4505b9852e Merge "Hardcode in dexopt the information that /system/product should be /product."
am: 7aa5a56bbc

Change-Id: I84649f05b186a87c4511f5086b0b45bbc5339389
2019-03-06 10:34:25 -08:00
Nicolas Geoffray
7aa5a56bbc Merge "Hardcode in dexopt the information that /system/product should be /product." 2019-03-06 17:57:36 +00:00
Jooyung Han
4b75790b30 Merge "Add checks for double_loadable dependencies"
am: f14277fc3a

Change-Id: Ida062e0df66d5cc4c0a6f5f895eff102c0788c76
2019-03-05 19:43:56 -08:00
Colin Cross
d5f25c7685 Merge "Add modules for converting java modules between host and device"
am: e3ad4144db

Change-Id: I4836bea8509dfe3aba78811e38f165b101677e2f
2019-03-05 19:43:10 -08:00
Treehugger Robot
f14277fc3a Merge "Add checks for double_loadable dependencies" 2019-03-06 03:29:20 +00:00
Treehugger Robot
e3ad4144db Merge "Add modules for converting java modules between host and device" 2019-03-06 03:26:44 +00:00
Jaewoong Jung
c9631351b4 Fixe typos in androidmk.
am: b8ba8a5ee8

Change-Id: Ib661b6e3e59986f6f00db2ce9762e84d190ae171
2019-03-05 18:25:38 -08:00
Jooyung Han
a70f067899 Add checks for double_loadable dependencies
Vendor-available libs can be double-loaded if LLNDK libs depend
on them. Currently soong checks only 'direct' dependency bewteen
LLNDK and VNDK lib. With this change, soong checks if every dependencies
from LLNDK is also LLNDK or VNDK-SP or marked as 'double_loadable:true'.
This change causes many libs to be marked as 'double_loadable'.

Bug: 121280180
Test: m -j
Change-Id: Ibc1879b6fd465a3141520abe0150018c3051c0a7
2019-03-06 11:18:21 +09:00
Colin Cross
3d7c9827d5 Add modules for converting java modules between host and device
java_device_for_host and java_host_for_device allow treating a
device module as a host module and vice versa.  They will be useful
for converting layoutlib and robolectric to Soong, as these modules
run device java code on the host.

Bug: 117920228
Test: device_host_converter_test.go
Change-Id: Ia9a371fb41a97bc16338097f3ce8b40099744167
2019-03-05 23:09:45 +00:00
Jaewoong Jung
b8ba8a5ee8 Fixe typos in androidmk.
Replace contitional with conditional.

Test: androidmk_test.go
Change-Id: Ic261701f4588b9b8b6d3560598831368c3422508
2019-03-05 22:29:58 +00:00
Nicolas Geoffray
2464ef4975 Hardcode in dexopt the information that /system/product should be /product.
On-device compilation will always see paths starting with /product. This CL
makes sure preopt does the same.

Test: m && check odex files
Bug: 126415372
Change-Id: I5764e7f22bffb97b7093f351d7b97bbe5fb1f2f1
2019-03-05 14:14:04 +00:00
Inseob Kim
79e980ae5b Merge "Add comment to api_packages property"
am: 5d3e2b70b8

Change-Id: I8e5d3fb21143dc669d560c26bab6edb0f1ec4914
2019-03-05 02:36:00 -08:00