Commit Graph

1487 Commits

Author SHA1 Message Date
Dan Willemsen fde0bb4aba Remove shared lib name checks am: 27279ece28
am: 40570b9fc4

Change-Id: I0669f867e416d76acf6c46b1cd451f63314aacc6
2016-09-29 05:47:07 +00:00
Dan Willemsen 9aa20fa06f Add export_generated_headers am: b3454ab24d
am: db22db3473

Change-Id: Ibedd6b8a934e51d4d16ed3579b99f91a5d86a63e
2016-09-29 05:47:06 +00:00
Dan Willemsen 3ca1d9ccbb Support multiple outputs for genrule am: 9c8681f4f9
am: 6966d7071f

Change-Id: Iab1dc0b7e789eac9f1e5a7c7e8e45a7d52d337d1
2016-09-29 05:47:06 +00:00
Dan Willemsen c7a673f16d Parse genrule's cmd property am: 3f4539b035
am: 392499e757

Change-Id: Iebd6c47dd0998fb74fbd46dd35e843d92d930a68
2016-09-29 05:47:05 +00:00
Dan Willemsen d04c49768b Expose HostToolPath on the cc module to fix genrule.tool am: 4aa75ca244
am: 2658e9b516

Change-Id: If6cc08dfcde698af955d2ca2d76f6e0992546d99
2016-09-29 05:47:04 +00:00
Dan Willemsen 2a44260f73 Merge changes from topic 'genrule-multi-out'
am: 81ef084a00

Change-Id: Id449809a0258c075de33923517a4b2b32670ec7e
2016-09-29 05:42:37 +00:00
Dan Willemsen 40570b9fc4 Remove shared lib name checks
am: 27279ece28

Change-Id: I2c81c7ca8989a1a8d40d87d5da8f6de97c906bc4
2016-09-29 05:42:37 +00:00
Dan Willemsen db22db3473 Add export_generated_headers
am: b3454ab24d

Change-Id: I3c893df045a5bfcd5e4bac87a0314f197fe3bd8b
2016-09-29 05:42:36 +00:00
Dan Willemsen 6966d7071f Support multiple outputs for genrule
am: 9c8681f4f9

Change-Id: If0306db6c56748faf86164a3df8a72d7ea4d656b
2016-09-29 05:42:35 +00:00
Dan Willemsen 392499e757 Parse genrule's cmd property
am: 3f4539b035

Change-Id: I3abea62996d38febc44d9afc0719705de0a54469
2016-09-29 05:42:35 +00:00
Dan Willemsen 2658e9b516 Expose HostToolPath on the cc module to fix genrule.tool
am: 4aa75ca244

Change-Id: I1664e5f50df8a22bf91eba1f91af0c8ca41bae79
2016-09-29 05:42:34 +00:00
Treehugger Robot 81ef084a00 Merge changes from topic 'genrule-multi-out'
* changes:
  Remove shared lib name checks
  Add export_generated_headers
  Support multiple outputs for genrule
  Parse genrule's cmd property
  Expose HostToolPath on the cc module to fix genrule.tool
2016-09-29 05:33:04 +00:00
Dan Willemsen 27279ece28 Remove shared lib name checks
Now that we're no longer using -l, we don't need to strip off the "lib"
prefix and ".so" suffix. Therefore we don't need to make sure the prefix
and suffix exists.

Bug: 31742855
Test: Attempt to link android.hardware.* (hardware/interfaces/*)
Change-Id: I38555014cdc0e430f94359e173bb09e35d45c44e
2016-09-28 20:58:38 -07:00
Stephen Hines 24717cae87 Switch to using clang-3289846. am: fdab996f64 am: 21beaa0a69
am: 96a4c2f955

Change-Id: I23937172ceb6f9b7c5405e03884b86cb4f4a2fa5
2016-09-29 03:12:00 +00:00
Stephen Hines 96a4c2f955 Switch to using clang-3289846. am: fdab996f64
am: 21beaa0a69

Change-Id: Ic4540c215014ee39a237dc737b6b7626c6eafedc
2016-09-29 03:07:58 +00:00
Stephen Hines 21beaa0a69 Switch to using clang-3289846.
am: fdab996f64

Change-Id: I8f5d48cfcf16e375396395c241b74a77bcc9aed7
2016-09-29 03:03:57 +00:00
Dan Willemsen b3454ab24d Add export_generated_headers
Similar to export_shared_library_headers, this will export headers
imported from a gensrcs or genrule.

Bug: 31742855
Test: Add export_generated_headers, ensure it's in out/soong/Android-*.mk
Change-Id: Ieadefd007ece8b249f011a258a9c5b27f5d3f594
2016-09-28 18:31:04 -07:00
Dan Willemsen 9c8681f4f9 Support multiple outputs for genrule
The underlying code to expose outputs to other modules has suppported
this already for gensrcs (which runs the command multiple times to
create multiple outputs). This allows a genrule to run a command once,
and output multiple files.

Bug: 31742855
Test: Add multi-output genrule; Inspect build.ninja
Change-Id: I72054cc39c0d0e3e44feebba72005e5af1a1709a
2016-09-28 18:31:04 -07:00
Dan Willemsen 3f4539b035 Parse genrule's cmd property
Instead of just passing this to ninja, use os.Expand to parse the
variable substitutions. While we're here, define a new "genDir" variable
that is the root of this module's generated directory.

Bug: 31742855
Test: Ensure invalid variables cause error
Test: Inspect commands in build.ninja
Change-Id: Iff6d0499ab57367669e73df52ab7c647358da13b
2016-09-28 17:38:57 -07:00
Dan Willemsen 4aa75ca244 Expose HostToolPath on the cc module to fix genrule.tool
Bug: 31742855
Test: Use `tool` in a genrule, ensure it runs properly.
Change-Id: Ib9ff35125edd66cdba8ede4f28aa6b753de0689b
2016-09-28 17:38:02 -07:00
Stephen Hines fdab996f64 Switch to using clang-3289846.
Bug: http://b/30252254
Test: Built/boot platform using latest prebuilts.
Change-Id: I47c5e8255f84b6f41d1d3e1f3c986e8699ac573a
2016-09-28 08:52:48 -07:00
Colin Cross 543d7e6115 Update readme am: 024c32e987 am: 6704ff1b5f
am: 41cfda6c6e

Change-Id: Id0adf9d1b8cf4b553461b438a39acdb49be6c604
2016-09-27 00:34:37 +00:00
Colin Cross 41cfda6c6e Update readme am: 024c32e987
am: 6704ff1b5f

Change-Id: If16227356b008108eddd3a6800f2dff5a93f1db6
2016-09-27 00:32:37 +00:00
Colin Cross 6704ff1b5f Update readme
am: 024c32e987

Change-Id: I8f845403fe8b38ed1514e190a289524f8770ffe1
2016-09-27 00:30:07 +00:00
Colin Cross 024c32e987 Update readme
Use go/Android.bp link, add a little more on androidmk conversions.

Test: none
Change-Id: Ibe2be4ad54b6d9a8954d7efbb40d04dc54c8dbf2
2016-09-26 15:44:29 -07:00
Colin Cross 35885452d2 Merge "Revert "Revert "Move system/core/include from -isystem to -I""" am: 0a249ce498 am: 572b83188c
am: 418e21528f

Change-Id: I453be3d7b7956858deab4c8393954a5a68743017
2016-09-26 01:16:32 +00:00
Colin Cross 418e21528f Merge "Revert "Revert "Move system/core/include from -isystem to -I""" am: 0a249ce498
am: 572b83188c

Change-Id: I1e3a0ff45ca0b61662d1d682b44935a1d5785a9f
2016-09-26 01:14:29 +00:00
Colin Cross 572b83188c Merge "Revert "Revert "Move system/core/include from -isystem to -I"""
am: 0a249ce498

Change-Id: I2152602aced4232258c027c4b5b513aad53dc8b3
2016-09-26 01:11:59 +00:00
Colin Cross 0a249ce498 Merge "Revert "Revert "Move system/core/include from -isystem to -I""" 2016-09-26 01:07:09 +00:00
Colin Cross 81b4ca6817 Revert "Revert "Move system/core/include from -isystem to -I""
This reverts commit 763a26cef5.

Bug: 31492149
Change-Id: I322f5e31da306951ac13131f5113730e945dedd5
2016-09-23 19:20:54 +00:00
Colin Cross 8c423c7522 Merge "Revert "Move system/core/include from -isystem to -I"" am: d85c0740e1 am: cd2f6df8ab
am: 3b28290a36

Change-Id: I0d3908c5390849a0c195e7994aa3c88687448524
2016-09-23 16:02:50 +00:00
Colin Cross 3b28290a36 Merge "Revert "Move system/core/include from -isystem to -I"" am: d85c0740e1
am: cd2f6df8ab

Change-Id: I856effae99a72cd57ef5e92085a28e2931136dfd
2016-09-23 16:00:50 +00:00
Colin Cross cd2f6df8ab Merge "Revert "Move system/core/include from -isystem to -I""
am: d85c0740e1

Change-Id: I39f35da8fe9e260971a08101e81d08250f565609
2016-09-23 15:58:50 +00:00
Colin Cross d85c0740e1 Merge "Revert "Move system/core/include from -isystem to -I"" 2016-09-23 15:50:55 +00:00
Colin Cross 763a26cef5 Revert "Move system/core/include from -isystem to -I"
This reverts commit e4bba1e835.

Bug: 31492149
Change-Id: If46d240274f1a59ac36579157c575b54f2ffd58f
2016-09-23 15:50:14 +00:00
Colin Cross 3a17dd5449 Merge "Move system/core/include from -isystem to -I" am: fe040c48e6 am: b795aacfef
am: 2f7389cc15

Change-Id: Ie53d0a0ea488802f36d2159202bbcbde45a91774
2016-09-23 14:55:46 +00:00
Colin Cross 2f7389cc15 Merge "Move system/core/include from -isystem to -I" am: fe040c48e6
am: b795aacfef

Change-Id: Id1b3c743b3f2364d3834178b13980a1ff6eef258
2016-09-23 14:53:16 +00:00
Colin Cross b795aacfef Merge "Move system/core/include from -isystem to -I"
am: fe040c48e6

Change-Id: Ieb2d3c357da9dbe7b318c44dbc819c42e72e4311
2016-09-23 14:51:16 +00:00
Colin Cross fe040c48e6 Merge "Move system/core/include from -isystem to -I" 2016-09-23 14:47:52 +00:00
Dan Willemsen c9df4440a2 Add `debuggable` product variable with cflags am: fcebcd5c37 am: eb65b50509
am: 6ce7434b7e

Change-Id: Ie776ffd4056ae7c2e3b57b616982fd217e31cc1a
2016-09-23 00:25:14 +00:00
Dan Willemsen 6ce7434b7e Add `debuggable` product variable with cflags am: fcebcd5c37
am: eb65b50509

Change-Id: I7cbd91b01586d877e6b7408360939da10dded5d3
2016-09-23 00:23:18 +00:00
Dan Willemsen eb65b50509 Add `debuggable` product variable with cflags
am: fcebcd5c37

Change-Id: Ic493640c4ef1168e0c7f5f56a58fe0b605e6f5ce
2016-09-23 00:21:41 +00:00
Colin Cross e4bba1e835 Move system/core/include from -isystem to -I
-isystem hides all warnings.  The warnings in system/core/include have
been cleaned up, so move it from -isystem to -I.

Test: lunch aosp_angler-eng && m -j
Test: lunch aosp_bullhead-eng && m -j
Test: lunch aosp_flounder-eng && m -j
Test: lunch aosp_fugu-eng && m -j
Test: lunch aosp_shamu-eng && m -j
Bug: 31492149
Change-Id: I29967428c2c45f753dabe21b65913fb08fdcabc4
2016-09-22 15:29:50 -07:00
Dan Willemsen fcebcd5c37 Add `debuggable` product variable with cflags
Allows changing cflags based on the build variant being `eng` or
`userdebug`. This is used by some modules to turn on asserts for these
builds, and used by adb to allow root on non-user builds.

Test: Use this flag in an Android.bp, check the ninja file.
Change-Id: I27a5081378e94920482b4a742d65c46065047573
2016-09-22 15:22:15 -07:00
Kenny Root 4cbd257645 Add pthread to Windows allowed ldlibs am: b912349c03 am: b32fbac0ae
am: 37c0006463

Change-Id: I34f85e1ffa54ef3d3b12b5ba3538ca4506dbd19b
2016-09-21 00:07:24 +00:00
Kenny Root 37c0006463 Add pthread to Windows allowed ldlibs am: b912349c03
am: b32fbac0ae

Change-Id: Ic1f7c1fd526335732d1bd36ba9b9f03ccacc196a
2016-09-21 00:05:23 +00:00
Kenny Root b32fbac0ae Add pthread to Windows allowed ldlibs
am: b912349c03

Change-Id: I63489bdffaec1e1c368891f741ac5371a1605044
2016-09-21 00:02:23 +00:00
Kenny Root b912349c03 Add pthread to Windows allowed ldlibs
The MinGW update now includes pthread.

Test: update BoringSSL to use pthreads on Windows and compile
Change-Id: Id85d9fd3e03a310e07e0093ca80cefaf10fe8930
2016-09-20 14:49:33 -07:00
Colin Cross 2949b7f0bb Fix checkbuild for modules with last variant disabled am: 9b1d13db73 am: fed7b92b7e
am: 52e09a79aa

Change-Id: Ie66a8e09d58f3a536c752807bf973810f2b3afbf
2016-09-20 17:14:37 +00:00
Colin Cross 3b838532c0 Support mixed ASAN and non-ASAN host builds am: b0f28957ae am: 1bb040ff67
am: 802470f7c5

Change-Id: I0b77491ebb4642e2e7fe813b1bca9779b5b763b3
2016-09-20 17:14:36 +00:00