Commit Graph

6406 Commits

Author SHA1 Message Date
Colin Cross
069ebe6692 Remove references to SourceDepTag in module types
am: 2d24c1b654

Change-Id: I3980d3de77368ca4873ddb08868c06ca23b490b9
2018-06-06 13:33:07 -07:00
Colin Cross
2d24c1b654 Remove references to SourceDepTag in module types
SourceDepTag is going to become a set of tags of the same type
instead of a single tag, remove references to it outside the
android module.

Bug: 80144045
Test: soong tests
Change-Id: I00b2ea5040e4fc95dfbfdd79e21579853c478fcb
2018-06-06 17:05:20 +00:00
Colin Cross
3d88f297d2 Merge "Add kotlin stdlib to javac classpath"
am: dd0b4e06f5

Change-Id: Idac77630835658f7b2bcfa6175073b213e8693a4
2018-06-05 22:53:16 -07:00
Nan Zhang
ca96388e60 Merge "Integrate Metalava to Soong Build"
am: f181bc9733

Change-Id: I7698b92bc8a8cee60dfe898213d2ec5abcebfe5f
2018-06-05 22:45:51 -07:00
Colin Cross
dd0b4e06f5 Merge "Add kotlin stdlib to javac classpath" 2018-06-06 04:42:26 +00:00
Treehugger Robot
f181bc9733 Merge "Integrate Metalava to Soong Build" 2018-06-06 04:36:53 +00:00
Colin Cross
49da2757cd Add kotlin stdlib to javac classpath
Java modules that have .kt sources may also use kotlin stdlib types
in their .java sources.

Bug: 78245848
Test: m checkbuild
Change-Id: I064cb76b8a641ad92d648febaa400bc01549a9c5
2018-06-06 00:32:24 +00:00
Kevin Rocard
2d08aa5440 Revert "Add external projects only CFlags option"
am: a9ccbb7b87

Change-Id: I698ea286d677f9146d5b05445d7be5653a59d848
2018-06-05 15:44:32 -07:00
Nan Zhang
79614d1c14 Integrate Metalava to Soong Build
Test: Manually checked-in prebuilt metalava.jar to my local src tree and
      compare the doclava based api file and metalava based api file.
Bug: b/78245848

Change-Id: Ib434f1e15403a78a0ccf89d9aacb70a6f8b05b2b
2018-06-05 14:44:43 -07:00
Kevin Rocard
a9ccbb7b87 Revert "Add external projects only CFlags option"
This reverts commit 6a350878d8.

Reason for revert: Breakage of many AOSP targets

Change-Id: I917e6daa04ac02ecb98c7bb1816f9bdaf46429f5
2018-06-05 21:43:46 +00:00
Yi Kong
92e4e46184 Add external projects only CFlags option
am: 6a350878d8

Change-Id: I002a196d1b9b02f226537ddaf8b0a96c98bfbb5a
2018-06-05 13:55:19 -07:00
Yi Kong
6a350878d8 Add external projects only CFlags option
Every time the toolchain adds a new warning, we had to suppress the
warning in every external projects that violates it, or disable it
globally -- which we end up doing most of the time since the first
option is way too time consuming.

Add a separate cflags option for external projects and move existing
-Wno-* flags there so that we can enforce better code quality for
internal projects.

TODO: Move more -Wno-* flags to ClangExtraExternalCflags

Test: m checkbuild
Change-Id: If3dee491616a1e7ba6223c2f522d100e10c5ee76
2018-06-05 19:32:02 +00:00
Dan Willemsen
793791e6bc Merge "Fix mac sdk build"
am: 85b1e39ffe

Change-Id: I1df69a90e23bd27017131d89d8d15f917fc9076f
2018-06-04 18:21:06 -07:00
Treehugger Robot
85b1e39ffe Merge "Fix mac sdk build" 2018-06-05 00:47:16 +00:00
Nan Zhang
2e31d953f0 Merge "Fix droiddoc date error on Darwin"
am: d9e8b8c40c

Change-Id: I34eff63f5705cf1ec744791f40141dad28fcc578
2018-06-04 17:07:10 -07:00
Dan Albert
25cb14eb52 Merge "Add a preprocessed_ndk_headers module type."
am: 1efd4a9c81

Change-Id: Id20ae5e20ad078345768b4d5b2e338f98555d15c
2018-06-04 17:06:14 -07:00
Treehugger Robot
d9e8b8c40c Merge "Fix droiddoc date error on Darwin" 2018-06-05 00:00:12 +00:00
Treehugger Robot
1efd4a9c81 Merge "Add a preprocessed_ndk_headers module type." 2018-06-04 23:40:03 +00:00
Nan Zhang
a04a2ce518 Fix embedded_launcher can't find files
am: bea0975f18

Change-Id: I8b2ec3e2a1b90b1376d5ecd9a344b4b15b3e74e7
2018-06-04 16:18:45 -07:00
Nan Zhang
46130975ab Fix droiddoc date error on Darwin
Bug: b/109579193
Test: m -j all-docs
Change-Id: I708f200c8dbd5a135767d0ffb10786f223471850
2018-06-04 15:19:40 -07:00
Nan Zhang
bea0975f18 Fix embedded_launcher can't find files
The problem came from Python libraries doesn't know the information that
we enabled embedded_launcher (only Python binary knows about that). And
we can't simply remove runfiles dir for Python libraries since host
Python mode need this.

Bug: b/80441699
Test: m perf_profo_flames
Change-Id: I73ffc4d7504f95a708ae7cca47bc6c15a673aa31
2018-06-04 12:32:55 -07:00
Dan Willemsen
fdb20d05bc Fix mac sdk build
Use the host platform "strip", and also expose "nm" and "otool" used for
toc.

Test: `m PRODUCT-sdk-sdk` on Mac
Change-Id: I7a6d127f479d3e563385ead46bc3a4b49b99776b
2018-06-03 16:19:56 -07:00
Dan Willemsen
fe3f651a8c Merge "Allow more PATH tools, expose HOST_STRIP"
am: 1d2318d6cd

Change-Id: I59018ba782bff3cad74eaacd6306c77c4953a40c
2018-06-01 17:09:17 -07:00
Treehugger Robot
1d2318d6cd Merge "Allow more PATH tools, expose HOST_STRIP" 2018-06-01 23:58:15 +00:00
Chih-hung Hsieh
7bc0f8dbd6 Merge "Handle pack_relocations in linker.cc"
am: a4181126ee

Change-Id: I207d0761ca6d90208911fb838a7b8038e87b291b
2018-06-01 13:55:21 -07:00
Chih-hung Hsieh
a4181126ee Merge "Handle pack_relocations in linker.cc" 2018-06-01 20:43:11 +00:00
Dan Willemsen
f6d300662e Allow more PATH tools, expose HOST_STRIP
atree was using the host's strip tool during sdk generation, so expose
the prebuilt for use instead.

`id` was used with a test running minijail0 during the build

`sha1sum` is used by development/build/tools/mk_sdk_repo_xml.sh

`rmdir` was being used to remove some tmp files

Test: m PRODUCT-sdk_arm64-sdk dist sdk_repo
Test: Run other builds through forrest
Change-Id: I49c756a3e9497c0bbd9030754e6aa193a2d989a4
2018-06-01 12:48:41 -07:00
Dan Albert
cb1b4b2d53 Add a preprocessed_ndk_headers module type.
Unlike the old version of this (which has been renamed to
verioned_ndk_headers), this module includes a property to specify the
preprocessor to be used.

This is going to be used for preprocessing ICU4C's unicode/uconfig.h
to alter a config value that needs to differ between the platform and
the NDK.

Test: make checkbuild
Bug: https://github.com/android-ndk/ndk/issues/548
Change-Id: If5c6f54f90cf5a4187693a941748d72f39b0d797
2018-06-01 11:02:38 -07:00
Dan Willemsen
a1e8f9a15d Merge "Revert "Revert "Revert "Revert "Add path interposer"""""
am: 4972f88699

Change-Id: Icd3ad3f445ffb03cad53f27c39fa5e4d82d78297
2018-05-31 23:45:15 -07:00
Dan Willemsen
4972f88699 Merge "Revert "Revert "Revert "Revert "Add path interposer""""" 2018-06-01 02:14:44 +00:00
Dan Willemsen
184901135c Revert "Revert "Revert "Revert "Add path interposer""""
This reverts commit 09f4540d66.

Fixes the raw call to net.Listen in the tests to go through the listen()
helper and use the long socket path fallbacks.

Removes the use of timeouts from the tests -- the behaviors being tested
did not rely on timeouts, so removing them will reduce the flakiness if
the build is heavily loading the machine at the same time the test is
running.

Also fixes some potential nil pointer dereferences.

Test: OUT_DIR=<really long> m blueprint_tools
Test: `while .../soong-ui-build-paths/test/test; do sleep 0.01; done` with a build running
Change-Id: I16d44be7517bc415f1c808284088f4ba40df3bfa
2018-05-31 14:59:33 -07:00
Vishwath Mohan
dc55e621bb Don't enable diagnostics for CFI when setting the CFI sanitizer.
am: 05b002dea0

Change-Id: I7eb2785678d4706e0da8cf22da2479ce512852ac
2018-05-31 10:20:06 -07:00
Vishwath Mohan
05b002dea0 Don't enable diagnostics for CFI when setting the CFI sanitizer.
The SetSanitizer() method in cc/sanitize.go was also enabling
diagnostics for CFI when invoked from the sanitizer mutator. We
shouldn't be doing this, so this CL disables that.

Bug: 79785496
Test: strings libziparchive.so | grep 'ubsan'
Change-Id: Iffe0d4e9c333ac5dfbec3f48e381c232ce5d4463
2018-05-30 20:52:39 -07:00
Colin Cross
d4ef9dd148 Add core-lambda-stubs to classpath
am: 86a60ae6fa

Change-Id: If6db07e1f33e35015f13b443c9619f34f03552b5
2018-05-30 15:55:56 -07:00
Colin Cross
86a60ae6fa Add core-lambda-stubs to classpath
Add core-lambda-stubs to the bootclasspath for modules with no
sdk_version or with sdk_version: "current", and to the classpath
for modules that specify a specific sdk_version number.  Use the
prebuilt sdk-core-lambda-stubs when using a prebuilt SDK.

Fixes compiling modules with lambdas against the SDK.

This reapplies I5e700f2dd86f1a6b84b7a55dd9bfe21a448d3fb6 with fixes
and tests for unbundled builds.

Bug: 80428539
Test: java_test.go
Change-Id: Ib7aaeebb93137270d7336a7293a08ed7064a3184
2018-05-30 16:47:00 +00:00
Colin Cross
0668619db7 Merge "Revert "Add core-lambda-stubs to classpath""
am: 6c2e97364e

Change-Id: I4085c7fccfdcb0cf79f1300d53bd3f83d8b781b7
2018-05-30 00:30:50 -07:00
Treehugger Robot
6c2e97364e Merge "Revert "Add core-lambda-stubs to classpath"" 2018-05-30 07:23:09 +00:00
Colin Cross
7cdc22edb9 Revert "Add core-lambda-stubs to classpath"
This reverts commit d9d7be0617.

Reason for revert: Broke unbundled builds.

Bug: 80428539
Change-Id: I2279dbd2b11a2f63e70ad89d0b3bc42bca2b676b
2018-05-30 05:45:09 +00:00
Jiyong Park
28f6db54f4 Merge "LOCAL_SDK_VERSION is not emitted for recovery variant"
am: f3c251c5de

Change-Id: I33be9c99077e1ca2903e3dbda5860c1e90799e7d
2018-05-29 21:18:47 -07:00
Treehugger Robot
f3c251c5de Merge "LOCAL_SDK_VERSION is not emitted for recovery variant" 2018-05-30 03:29:51 +00:00
Colin Cross
8df5d463fb Merge "Add bpf module type"
am: 9c75391168

Change-Id: I0c62f6c11b11229446a081d7b6be0a7a934cabfc
2018-05-29 19:52:13 -07:00
Treehugger Robot
9c75391168 Merge "Add bpf module type" 2018-05-30 02:43:03 +00:00
Sundong Ahn
d7d90f89c2 Merge "Add aidl properties"
am: c550ed5833

Change-Id: I1f0f746bafbc7a18f328b446dbcef6d436211109
2018-05-29 19:07:03 -07:00
Colin Cross
417824868d Add core-lambda-stubs to classpath
am: d9d7be0617

Change-Id: Id7870967a7c39855beb880ce27d792f80630dd96
2018-05-29 19:06:49 -07:00
Treehugger Robot
c550ed5833 Merge "Add aidl properties" 2018-05-30 01:52:57 +00:00
Jiyong Park
97686288dd LOCAL_SDK_VERSION is not emitted for recovery variant
recovery variants are not built with NDK (useSdk() is false for
recovery). So LOCAL_SDK_VERSION shouldn't be emitted for the recovery
variants as well.

Test: m -j liblzma.recovery does not show any link type check error

Change-Id: Icb6c4fc766060e3f1555c405d5785ef5a015c629
2018-05-30 10:37:25 +09:00
Colin Cross
3840659243 Add bpf module type
Add a module type for compiling .c to .o using clang --target=bpf.

Bug: 72981744
Test: m
Change-Id: Ie5712bfabe34901a84ed33737053306ca56ebeb4
Merged-In: Ie5712bfabe34901a84ed33737053306ca56ebeb4
(cherry picked from commit 3ba736a7e1)
2018-05-29 17:05:23 -07:00
Colin Cross
d9d7be0617 Add core-lambda-stubs to classpath
Add core-lambda-stubs to the bootclasspath for modules with no
sdk_version or with sdk_version: "current", and to the classpath
for modules that specify a specific sdk_version number.

Fixes compiling modules with lambdas against the SDK.

Bug: 80428539
Test: java_test.go
Change-Id: I5e700f2dd86f1a6b84b7a55dd9bfe21a448d3fb6
2018-05-29 23:47:50 +00:00
Chih-Hung Hsieh
8681471e70 Handle pack_relocations in linker.cc
When pack_relocations is false and clang lld is used,
pass --pack-dyn-relocs=none to lld.

Bug: 80093890
Test: build and boot with USE_CLANG_LLD=true
Change-Id: I0ffe77a111d7fbab5afaa1395d09734a8a390e09
2018-05-29 15:39:47 -07:00
Sundong Ahn
1b92c824f3 Add aidl properties
The aidl files are allowed when creating the droiddoc module in
java_sdk_library. But The properties of AIDL, local_include_dir
and include_dir, are not passed to the droiddoc module.
These properties are add because they are needed to generate the
java files.

Bug: 77575606
Test: build && java_test.go
Change-Id: I1006c9ce7a5c7e424416d39fb921c27a3fa86afa
2018-05-29 04:25:02 +00:00