Commit Graph

733 Commits

Author SHA1 Message Date
Dan Willemsen
f104025805 Support no configured device architectures
am: 3f32f03067

Change-Id: I2bce3feca58df2e9682bef04ee39232f58185d52
2016-07-11 22:43:46 +00:00
Dan Willemsen
3f32f03067 Support no configured device architectures
There are some builds where we only want to build host tools, and we may
not have a valid device configuration. Support 0 device architectures
and modules that don't have any configured way to build.

Change-Id: I732251e1cd3cdbfafbc6ef6a550e33e653876f7c
2016-07-11 14:36:48 -07:00
Dan Willemsen
6f4ce93924 Apply export_include_dirs to assembly files
am: 76f0827ce3

Change-Id: Ibe3c32493f6142e241bc5e78c3c31711cec07163
2016-07-11 20:18:05 +00:00
Dan Willemsen
89ae37fb8d Stop exporting NDK prebuilt modules to Make
am: 72d3993c9b

Change-Id: I458ef00fe702a385089d0b9ca784c49899a9931b
2016-07-11 20:18:04 +00:00
Dan Willemsen
76f0827ce3 Apply export_include_dirs to assembly files
Instead of putting these in CFlags, use GlobalFlags instead. This
matches the Make behavior.

The exportFlagProducer could be generic, but for now only has include
directories, so it should be safe for all file types.

Change-Id: I2862f08e7ad473ebacaa88ad2c4510248cad316f
2016-07-09 07:20:59 +00:00
Dan Willemsen
72d3993c9b Stop exporting NDK prebuilt modules to Make
Make isn't going to use any of these anytime soon. So hide them from
make for now, and be sure to save the AndroidMk shared library
dependencies before we convert them to NDK dependencies.

And $(ACP) is no longer used by $(copy-file-to-target)

Change-Id: I8f8f7d0177d31ba4206c0bc1f2ff952dce53b6b4
2016-07-08 23:41:36 -07:00
Dan Willemsen
aefd95fdf2 Support linking against NDK prebuilt libraries
am: 97704edd5d

Change-Id: Ib4810b00cad650514bd5662e042aa11bfb526f5d
2016-07-08 21:09:37 +00:00
Dan Willemsen
97704edd5d Support linking against NDK prebuilt libraries
When sdk_version is specified, we need to use the prebuilt ndk versions
of these libraries instead of the platform versions.

Change-Id: I4ff33a234a985041ebe11ab148d64d0f8df66fc4
2016-07-08 20:44:54 +00:00
Colin Cross
39040c43ed Remove cc.ModuleContext.module()
am: 6886183d8f

Change-Id: I2ee1baba749ad788f35ed89ad76017af6ec6a5ce
2016-07-08 20:20:58 +00:00
Colin Cross
6886183d8f Remove cc.ModuleContext.module()
cc.ModuleContext.module() returns a *cc.Module, and is left over from
when the cc package tried to use inheritance.  Remove it and the last
few users.

Change-Id: I9b42ca59689c1b0ada7980fbec923747ed3a53d3
2016-07-08 11:18:46 -07:00
Dan Willemsen
5ff2a27e89 Fix SDK link type check
am: 3c316bc03b

Change-Id: Icbcccc3ccb28443a6310ec65e95d0ac2d7d69589
2016-07-08 16:49:59 +00:00
Dan Willemsen
3c316bc03b Fix SDK link type check
This was always returning true, which defeats the point. Fix the check,
then add another exception for NDK libraries.

Change-Id: I139d95ef62d1063c083d6381293072ad3277ae74
2016-07-07 21:38:29 -07:00
Dan Willemsen
a1a35b6dfd Merge \"Allow static/shared modules to be disabled per-arch\"
am: 6871062821

Change-Id: I99d17489f282d36c49d528ad40f1b00cb9ba35a9
2016-07-08 03:48:35 +00:00
Dan Willemsen
6871062821 Merge "Allow static/shared modules to be disabled per-arch" 2016-07-08 03:38:53 +00:00
Colin Cross
67e77bb931 Merge \"Return copies of global sanitizer slices\"
am: da84958b15

Change-Id: Ic442ac5727c1e1f9eec790635ebffcc360a53bf1
2016-07-07 21:39:36 +00:00
Colin Cross
da84958b15 Merge "Return copies of global sanitizer slices" 2016-07-07 21:32:30 +00:00
Evgenii Stepanov
1c08ee1466 Merge \"Target sanitize properties can disable the global sanitizer.\"
am: db6509c2f8

Change-Id: Ib26d52cafce5bd8dce449317407c807439b01319
2016-07-07 20:13:56 +00:00
Evgenii Stepanov
db6509c2f8 Merge "Target sanitize properties can disable the global sanitizer." 2016-07-07 20:08:11 +00:00
Colin Cross
41f0d7df8b Merge \"Don\'t specify LOCAL_STRIP_MODULE for static libraries\"
am: bec7c12043

Change-Id: I1b9f5c3972cf882cf91d774af5a0559c406d53a9
2016-07-07 19:21:20 +00:00
Treehugger Robot
bec7c12043 Merge "Don't specify LOCAL_STRIP_MODULE for static libraries" 2016-07-07 19:14:54 +00:00
Colin Cross
7b5c22b1f0 Don't specify LOCAL_STRIP_MODULE for static libraries
After I92a838b07fe4116d5a4b8521fe1ce8d44e6e84e2 in build/,
LOCAL_STRIP_MODULE := keep_symbols will be honored for prebuilts, which
will trigger an error if it is set on a static library.  Only set
LOCAL_STRIP_MODULE for binaries and shared libraries.

Change-Id: I4e17a78afa7c5810dbf9003166c14a1ff3a59c9e
2016-07-07 11:21:53 -07:00
Evgenii Stepanov
fcfe56d194 Target sanitize properties can disable the global sanitizer.
With this change, sanitize: { address: false } disables
SANITIZE_TARGET=address for one target.

Also rename SafeStack to Safestack, because the former can not be
used as a target property.

Bug: 27729263
2016-07-07 10:54:42 -07:00
Evgenii Stepanov
d6fe0581a5 Revert \"Target sanitize properties can disable the global sanitizer.\"
am: 05bafd3784

Change-Id: I165897165c46d550cea097b2dfd0b8efa14bce13
2016-07-07 17:51:51 +00:00
Evgenii Stepanov
05bafd3784 Revert "Target sanitize properties can disable the global sanitizer."
This reverts commit bb02886451.

Breaks SANITIZE_HOST=address

Change-Id: I9791a034e32a83d567b8739a7ec7b61890cb1b97
2016-07-07 17:38:41 +00:00
Evgenii Stepanov
7465e3a3b1 Target sanitize properties can disable the global sanitizer.
am: bb02886451

Change-Id: Id6429eeefae06f891f81441d9755031457fc71ee
2016-07-07 17:11:08 +00:00
Dan Willemsen
fed4d19cbb Allow static/shared modules to be disabled per-arch
libz has a case where the static and shared versions of the device
library are supported, but the host shared library must not be defined,
since it would conflict with the system provided version. There's a
separate module 'libz-host' that provides the host shared library
implementation.

So extend the 'static'/'shared' properties to include 'enabled', which
uses arch_variant so that it can be mutated per-arch. It cannot override
a top level 'enabled: false'.

Change-Id: Ia0f1ff31ad77dc4cb148c531b70158e3245031d5
2016-07-06 21:54:12 -07:00
Evgenii Stepanov
bb02886451 Target sanitize properties can disable the global sanitizer.
With this change, sanitize: { address: false } disables
SANITIZE_TARGET=address for one target.

Also rename SafeStack to Safestack, because the former can not be
used as a target property.

Bug: 27729263
Change-Id: I20f55c0e62b2fdd191ba66c0f661a039109bd78f
2016-07-06 16:38:58 -07:00
Colin Cross
cc85e683a4 Return copies of global sanitizer slices
sanitize.begin() modifies the slice returned by Config.SanitizeHost()
and Config.SanitizeDevice(), return a copy so the global slice doesn't
get corrupted.

Bug: 29188876
Change-Id: I4c7a59b7e96529166519b23a1ebda39b8e060c58
2016-07-06 14:30:32 -07:00
Pirama Arumuga Nainar
fcd6ca6f91 Disable integrated-as for Mips
am: 58e2dcdeda

Change-Id: Ie38430f215e100699ceabb02e6fb273ddbd22bf8
2016-06-30 20:49:37 +00:00
Pirama Arumuga Nainar
58e2dcdeda Disable integrated-as for Mips
Bug: http://b/29771478

Hand-coded assembly in various projects will fail to compile after Clang
switches to integrated assembler for Mips.  Disable integrated-as for
Mips.

Test: Verified Mips builds on AOSP both with the old Clang prebuilts and
the new prebuilts (https://android-review.googlesource.com/#/c/243871/)

Change-Id: Idf441cb9c6c2afc8997d5ee56420885930087918
2016-06-30 04:50:50 +00:00
Dan Willemsen
4382e7f519 Remove build/libs am: 5d2038fe06
am: 8734eaa89e

Change-Id: I68e89663f6f5843e31fc5db6edc8d125cff16ce4
2016-06-17 23:33:09 +00:00
Dan Willemsen
8734eaa89e Remove build/libs
am: 5d2038fe06

Change-Id: I72e3f0704a9124ec3dd7f8dba539a632c6ebc686
2016-06-17 23:29:32 +00:00
Dan Willemsen
5d2038fe06 Remove build/libs
Bug: 28001743
Change-Id: Id5bcc11a08b3677ee1caf5b564ef0f2fb65026da
2016-06-16 15:22:09 -07:00
Dan Willemsen
74d555e132 Merge \\"Remove support for libstdc++ on Android/Linux/Darwin\\" am: d8315c8d1a
am: 969dd4266f

Change-Id: Ic4446d8cc28cd5c1e827e947010d4df47117f359
2016-06-15 22:58:24 +00:00
Colin Cross
775da55bf8 Merge changes from topic \\'parser\\' am: c30f10e390
am: 749d12c3b9

Change-Id: I0ab3b6c306e57df5ab1b92cf099868075c0f624e
2016-06-15 22:58:23 +00:00
Dan Willemsen
969dd4266f Merge \"Remove support for libstdc++ on Android/Linux/Darwin\"
am: d8315c8d1a

Change-Id: Ia2f596de020cf68156996507eed007927a5f3292
2016-06-15 22:55:34 +00:00
Colin Cross
749d12c3b9 Merge changes from topic \'parser\'
am: c30f10e390

Change-Id: Idb84dc1fbea1645403556308bb281e456619f26c
2016-06-15 22:55:33 +00:00
Dan Willemsen
d8315c8d1a Merge "Remove support for libstdc++ on Android/Linux/Darwin" 2016-06-15 22:49:33 +00:00
Colin Cross
c30f10e390 Merge changes from topic 'parser'
* changes:
  Add CommentGroups
  Rename Pos members
  Remove blueprint/parser.Ident
2016-06-15 22:39:32 +00:00
Dan Willemsen
141d566f2b Remove support for libstdc++ on Android/Linux/Darwin
It's now only supported on Windows, where we don't have libc++ support
yet.

Change-Id: I64891b7558d3d2942588687017a0c2f695c18d5c
2016-06-15 13:47:51 -07:00
Colin Cross
7b6ba5c7fa Add CommentGroups
Follows blueprint change 1e73794d42

Change-Id: If3539e2d9370a0224a2364608c496a1e4385dbbf
2016-06-14 19:04:53 -07:00
Colin Cross
e538e410cb Rename Pos members
Follows blueprint change b3d0b8dab4

Change-Id: I10f53498557325d26c6b690583596ac4f9206c79
2016-06-14 19:04:28 -07:00
Colin Cross
2867296203 Remove blueprint/parser.Ident
Follows blueprint change c32c47938f

Change-Id: I8f479704504f7bbefed3ed63bd0d040f65a2fdd5
2016-06-14 19:03:10 -07:00
Dan Willemsen
fbbf4f33ce Export strip information to Make am: 7517ed0b46
am: 0d3a8db293

Change-Id: I356c11662f0b787eb12ad1a28e2c2478e8d1877c
2016-06-11 01:49:18 +00:00
Dan Willemsen
0d3a8db293 Export strip information to Make
am: 7517ed0b46

Change-Id: Iddc18066525592eb25fa9f5ff3a892b4de1f6cf8
2016-06-11 01:45:23 +00:00
Dan Willemsen
7517ed0b46 Export strip information to Make
Change-Id: I3c69451a505ac2b97f3112050acc4b64b1cd7394
2016-06-10 17:20:30 -07:00
Colin Cross
9846b961ea Update androidmk to match blueprint changes am: d20b36be5d
am: 3a162164d0

Change-Id: Icbe5bb962d04f2e405a5b4333492c9b80929f248
2016-06-09 19:39:07 +00:00
Colin Cross
3a162164d0 Update androidmk to match blueprint changes
am: d20b36be5d

Change-Id: I0ab8ed42b51758032c33def7b43ff8629cb56943
2016-06-09 19:32:16 +00:00
Colin Cross
4f66ea370d Rename androidmk/test.go so go test can find it am: a43f9b3cbf
am: ce701b066c

Change-Id: I78ff5aaf1122c2d21a2f08f36ca5a81f9b879d60
2016-06-09 00:25:34 +00:00
Colin Cross
ce701b066c Rename androidmk/test.go so go test can find it
am: a43f9b3cbf

Change-Id: Ia9c4f4856b394d687f874cfcccb3b8095561fc45
2016-06-09 00:23:04 +00:00