Commit graph

1938 commits

Author SHA1 Message Date
Colin Cross
154ea1bd45 Remove boolean arguments from NewLibrary()
am: ab3b7323c4

Change-Id: I6d7e147308655a0259d613f5911f8283effc8da9
2016-12-14 18:39:54 +00:00
Colin Cross
37047f1c7e Pass DepsContext to dependency methods
Pass a DepsContext that embeds android.BottomUpMutatorContext
instead of android.BaseContext so that dependency methods can
directly add dependencies.

Test: m -j
Change-Id: Id4c157975d3d6f03efd99785d217bef486a76139
2016-12-13 17:32:29 -08:00
Colin Cross
5950f3827c Support explicit header-only libraries
To date we have been using static libraries with no source files as
header-only libraries.  Switch to using header_libs to make the user's
expectations clear, in case we need to differentiate the semantics of
static libraries and header-only libraries when we enable transitive
static library dependencies.

Test: mma -j external/llvm
Change-Id: I3ce16df11076b637bd192880e86ec9027738b9e7
2016-12-13 15:03:42 -08:00
Colin Cross
ab3b7323c4 Remove boolean arguments from NewLibrary()
NewLibrary is going to be used for header only libraries.  Instead
of adding more boolean arguments, replace the existing ones with
BuildOnlyStatic and BuildOnlyShared calls on the libraryDecorator
returned by NewLibrary.

Test: m -j, compare build.ninja
Change-Id: Id390b66cbf2a5f0932b32f40a5e18eb9e3852ee7
2016-12-13 14:50:51 -08:00
Colin Cross
0d9a81a931 Merge "Allow disabled dependencies when SOONG_ALLOW_MISSING_DEPENDENCIES is set" am: 3b72295e02 am: dd4c79324c
am: e3c99af285

Change-Id: I674251e81dacddd32ca671139c61ab1862c1c3c6
2016-12-13 22:48:38 +00:00
Colin Cross
e3c99af285 Merge "Allow disabled dependencies when SOONG_ALLOW_MISSING_DEPENDENCIES is set" am: 3b72295e02
am: dd4c79324c

Change-Id: Ie0a21cef995d2bf747661660a43105d3ea0afbd1
2016-12-13 22:42:06 +00:00
Colin Cross
dd4c79324c Merge "Allow disabled dependencies when SOONG_ALLOW_MISSING_DEPENDENCIES is set"
am: 3b72295e02

Change-Id: I302841f1a97f91496678b3aac576c69952cc3f30
2016-12-13 22:34:36 +00:00
Treehugger Robot
3b72295e02 Merge "Allow disabled dependencies when SOONG_ALLOW_MISSING_DEPENDENCIES is set" 2016-12-13 22:30:22 +00:00
Colin Cross
a8f5e9a8b2 Allow disabled dependencies when SOONG_ALLOW_MISSING_DEPENDENCIES is set
Push the "depens on a disabled module" dependency to runtime when
SOONG_ALLOW_MISSING_DEPENDENCIES is set so that subsets of the tree
can build when some modules are disabled.

Test: external/clang/build.py on llvm branch
Change-Id: I47e4f41d04aa3df173757f03a0c581b0bafb93f0
2016-12-13 12:53:47 -08:00
Zhuoyao Zhang
8c93af62bc Add test/vts into soong build target. am: 14ed26d6cd am: 0934d447f6
am: c8cdb9f146

Change-Id: I5e7e2e1fe7fc15b7816d769d86004484f4a9cb08
2016-12-13 00:35:20 +00:00
Zhuoyao Zhang
c8cdb9f146 Add test/vts into soong build target. am: 14ed26d6cd
am: 0934d447f6

Change-Id: I94ebfc5510047493e9d5dbcacd13a77bae2b2111
2016-12-13 00:29:20 +00:00
Zhuoyao Zhang
0934d447f6 Add test/vts into soong build target.
am: 14ed26d6cd

Change-Id: I489ab8bf7b53124e455d61c0c1e3bb5476fa255f
2016-12-13 00:23:49 +00:00
Zhuoyao Zhang
14ed26d6cd Add test/vts into soong build target.
Bug: 31930023
Test: make vts
Change-Id: Ibd3ed5e56a2ce925d509dfd95a00e3961a433850
(cherry picked from commit b003d0537f)
2016-12-12 14:28:34 -08:00
Colin Cross
3fe98603e7 Support arm_on_x86 properties am: bb2e2b7d7f am: 8d2d70313a
am: af81e147ea

Change-Id: Ib75eddaa408f89340b706427bd098157e53a4c0f
2016-12-09 22:28:17 +00:00
Colin Cross
af81e147ea Support arm_on_x86 properties am: bb2e2b7d7f
am: 8d2d70313a

Change-Id: Id266a261bdb73f032a46a6529ab652d4dfdea2f3
2016-12-09 22:22:47 +00:00
Colin Cross
8d2d70313a Support arm_on_x86 properties
am: bb2e2b7d7f

Change-Id: I6e14207cbbdef52bf5eb46414390ed153b97e383
2016-12-09 22:17:47 +00:00
Colin Cross
4880c8ea8e Add frameworks/compile/* to root Android.bp am: 1d03711827 am: 50bd514f1a
am: 5d79585138

Change-Id: Ie5c9521068ff084be6e6318778fe68539bdf0721
2016-12-09 01:43:05 +00:00
Colin Cross
5d79585138 Add frameworks/compile/* to root Android.bp am: 1d03711827
am: 50bd514f1a

Change-Id: If137616c2d2315934a4a7507d35de4121b135082
2016-12-09 01:38:04 +00:00
Colin Cross
50bd514f1a Add frameworks/compile/* to root Android.bp
am: 1d03711827

Change-Id: I3cefb9ed99dadc1848de3fc34e7cb9ba4da88cdf
2016-12-09 01:33:03 +00:00
Colin Cross
bb2e2b7d7f Support arm_on_x86 properties
Allow Android.bp files to set properties when an x86 device supports
arm abis.

Test: lunch aosp_fugu-userdebug && mmma -j frameworks/compile/libbcc
Change-Id: Ic142a3f93175924a826dea9908b2e5183a486184
2016-12-08 17:27:25 -08:00
Colin Cross
004788acbf Support eng product variable am: 6bc59ef731 am: 49cee3af30
am: d99511fc78

Change-Id: If88381947306c4452f79e19e83c0aa380d44f68e
2016-12-08 23:56:37 +00:00
Colin Cross
9fe87f6bba Permit allow_undefined_symbols inside arch blocks am: be360ae4c1 am: cdcb874bf5
am: 6d48ed45b7

Change-Id: I573ffab6aaccd4b55b51b5360ad1924b7dca77a8
2016-12-08 23:56:35 +00:00
Colin Cross
793dc11b32 Use toolchain to get binary extension for symlinks am: 989c66e370 am: 5ecfc07284
am: 9060fccad8

Change-Id: I6390cfc03585b548dd241c22d84fd15a092ba8f3
2016-12-08 23:56:34 +00:00
Colin Cross
d99511fc78 Support eng product variable am: 6bc59ef731
am: 49cee3af30

Change-Id: Ifbca1925992f09b686f3ec460fc68c2e22c88431
2016-12-08 23:52:05 +00:00
Colin Cross
6d48ed45b7 Permit allow_undefined_symbols inside arch blocks am: be360ae4c1
am: cdcb874bf5

Change-Id: I53ea424f9b0203c766c5ef902f08d8ea955a75d1
2016-12-08 23:52:04 +00:00
Colin Cross
9060fccad8 Use toolchain to get binary extension for symlinks am: 989c66e370
am: 5ecfc07284

Change-Id: I58b7687ac595d152e654126406856a77cd11908d
2016-12-08 23:52:03 +00:00
Colin Cross
49cee3af30 Support eng product variable
am: 6bc59ef731

Change-Id: Idf40cf45e39333e215abbb06e5982a76b4b4e0f6
2016-12-08 23:47:10 +00:00
Colin Cross
cdcb874bf5 Permit allow_undefined_symbols inside arch blocks
am: be360ae4c1

Change-Id: I4f794d677332e8edacf1e73bdd4f9d66a5b96050
2016-12-08 23:47:09 +00:00
Colin Cross
5ecfc07284 Use toolchain to get binary extension for symlinks
am: 989c66e370

Change-Id: Ic1f4864862fc5a03eb5805cee1c5e94eef0423a2
2016-12-08 23:47:07 +00:00
Colin Cross
1d03711827 Add frameworks/compile/* to root Android.bp
Test: mmma -j frameworks/compile/libbcc
Change-Id: I114a1b97e8b3cff98073abf621750a1300110f54
2016-12-08 09:47:27 -08:00
Colin Cross
6bc59ef731 Support eng product variable
The eng product variable will be true for builds where
TARGET_BUILD_VARIANT==eng.

Test: mmma -j frameworks/compile/libbcc
Change-Id: I808129740643495370bea64df3fe5bcf01eb9915
2016-12-08 09:46:35 -08:00
Colin Cross
be360ae4c1 Permit allow_undefined_symbols inside arch blocks
Renderscript builds need to allow undefined symbols only for linux
host builds.

Test: mmma -j frameworks/compile/libbcc
Change-Id: Ieb83fc13fed16ae386261e0a1855fdd9c4fdf9bd
2016-12-08 09:45:21 -08:00
Colin Cross
989c66e370 Use toolchain to get binary extension for symlinks
Get the binary extension directly from the toolchain instead of
computing it from the target.

Test: mmma -j external/clang
Change-Id: Ib181bc60d0617ad50529791e7b9fc61268376819
2016-12-08 09:44:58 -08:00
Colin Cross
f9042b5ffb Install symlinks with same suffix and extension as installed file am: 9b09f248d8 am: 4f9ccb68dd
am: 4658d8cf34

Change-Id: I48ac2516b93d3bad3ee58e2187440a55ea0bad26
2016-12-08 17:17:12 +00:00
Colin Cross
4658d8cf34 Install symlinks with same suffix and extension as installed file am: 9b09f248d8
am: 4f9ccb68dd

Change-Id: Ic4b6a4aa2ccbbce18123bfbaee1b44f8f5e95e04
2016-12-08 17:07:39 +00:00
Colin Cross
4f9ccb68dd Install symlinks with same suffix and extension as installed file
am: 9b09f248d8

Change-Id: Ice9bfc4d5060bfc48ef5bb3891db9b140b546077
2016-12-08 16:58:41 +00:00
Colin Cross
9b09f248d8 Install symlinks with same suffix and extension as installed file
Move symlink installation into the binaryDecorator so that it can
access the suffix and extension when installing symlinks.  Also
consolidates the symlink and symlink_preferred_arch handling.

Test: m -j clang, ls -l out/host/windows-x86/bin/clang++.exe
Change-Id: I1204afb71fac87b276bd6b625b52ee21274855a0
2016-12-07 17:35:37 -08:00
Colin Cross
5c7c7fad9f Merge "Always check tidy properties" am: 394cf47ac4 am: 8cc1cb68cd
am: 6a1c5f688d

Change-Id: If8da2f4003d37f4cae9ad99a72473918f3cdcc92
2016-12-06 19:45:53 +00:00
Colin Cross
6a1c5f688d Merge "Always check tidy properties" am: 394cf47ac4
am: 8cc1cb68cd

Change-Id: I7840ea32af9aaae1bcf4499ff9b58ab85c7c512e
2016-12-06 19:41:24 +00:00
Colin Cross
8cc1cb68cd Merge "Always check tidy properties"
am: 394cf47ac4

Change-Id: Ibdcf53abc01ec0533932059b2e5070fd5d9f1139
2016-12-06 19:37:54 +00:00
Treehugger Robot
394cf47ac4 Merge "Always check tidy properties" 2016-12-06 19:32:29 +00:00
Colin Cross
4ce8f9c4d4 Merge "Fix mac build" am: b278a58325 am: 5eb6315022
am: 964b062941

Change-Id: I84cba26b5d895d1f92f062f4899c6b8071fad87e
2016-12-06 04:52:06 +00:00
Colin Cross
964b062941 Merge "Fix mac build" am: b278a58325
am: 5eb6315022

Change-Id: I4acd473fd43cab7434a7f520d73ae2c844c76287
2016-12-06 04:48:38 +00:00
Colin Cross
5eb6315022 Merge "Fix mac build"
am: b278a58325

Change-Id: I075c6fb3e670e7de56d47a7ecc708a12229c9219
2016-12-06 04:45:05 +00:00
Treehugger Robot
b278a58325 Merge "Fix mac build" 2016-12-06 04:39:01 +00:00
Dan Willemsen
ef5c6a0ca4 Merge changes from topic 'proprietary-soong' am: 503f8b0262 am: 8c6502017d
am: ceb71a4f1b

Change-Id: I0b5edf67d381a32853d6ffd49a18c0a570a14d90
2016-12-06 03:41:23 +00:00
Dan Willemsen
474bef4d21 Support system/vendor for devices without a vendor partition am: 4353bc4422 am: 96a3ccc765
am: 518568c36f

Change-Id: I933e9baafdb6cd8c3b43541f7f96d73ab00ac0fe
2016-12-06 03:40:38 +00:00
Dan Willemsen
fe940dbfe7 Import/Export LOCAL_PROPRIETARY_MODULE am: 7ed1ae3fa4 am: dbd80c2181
am: 7288a87372

Change-Id: I6997b3894d843aba8c6a7f7f75e27100c5fc9c60
2016-12-06 03:40:37 +00:00
Dan Willemsen
ceb71a4f1b Merge changes from topic 'proprietary-soong' am: 503f8b0262
am: 8c6502017d

Change-Id: Iedb9847d8c8bfe23e1723f39dca7d5aee24deb95
2016-12-06 03:37:27 +00:00
Dan Willemsen
518568c36f Support system/vendor for devices without a vendor partition am: 4353bc4422
am: 96a3ccc765

Change-Id: Icbe22af6e8e896e926063e8865da52c467375709
2016-12-06 03:36:39 +00:00