Commit Graph

1786 Commits

Author SHA1 Message Date
Colin Cross
3bad486c8c Promote stl to a fixed feature am: a8e07cc am: be9d860
am: 0ba6f91

* commit '0ba6f91be9d4e9858ec919ceaaf1c02bfad4318d':
  Promote stl to a fixed feature

Change-Id: I99b5f2972e1389408946dec46d0e6c6001acc54c
2016-04-25 21:38:26 +00:00
Colin Cross
b6e8d2fdad Refactor out exported cflags am: 919281a am: 5b135f5
am: 4de3e75

* commit '4de3e75ee9da098e51d2be18bc6b2ef92a40989a':
  Refactor out exported cflags

Change-Id: I2ccf54620d303bd77ac2db58e169195c0d166e79
2016-04-25 21:38:25 +00:00
Colin Cross
9a6f1723ae Support "none" for stl when using ndk am: 4a97cb4
am: 4bd2663

* commit '4bd26639378a2cf7c1480823b63645ee7d40c584':
  Support "none" for stl when using ndk

Change-Id: I897148eb79025daa6485fd45c5946d4a889bb88e
2016-04-25 21:32:06 +00:00
Colin Cross
0ba6f91be9 Promote stl to a fixed feature am: a8e07cc
am: be9d860

* commit 'be9d86025fb0665851a00dce3b8d913e4609b6ac':
  Promote stl to a fixed feature

Change-Id: I43f326974b25b4b24828ddd64e2ee47d51fcc4d4
2016-04-25 21:32:06 +00:00
Colin Cross
4de3e75ee9 Refactor out exported cflags am: 919281a
am: 5b135f5

* commit '5b135f5c45ddedf19d4e1371f5a4e57411992e87':
  Refactor out exported cflags

Change-Id: I914e63027f2f4e4c629ab3a0f98828c9fc005861
2016-04-25 21:32:06 +00:00
Colin Cross
4bd2663937 Support "none" for stl when using ndk
am: 4a97cb4

* commit '4a97cb432823899dfc70cd5a874409b353e08115':
  Support "none" for stl when using ndk

Change-Id: I99a2a94b8af85a632674db44b04c5ada272c934f
2016-04-25 21:26:16 +00:00
Colin Cross
be9d86025f Promote stl to a fixed feature
am: a8e07cc

* commit 'a8e07cc6530b08e67aaf3bb6f64bedfc753d344f':
  Promote stl to a fixed feature

Change-Id: If5f192b43eabe8b25dc9f5d05014a5ef80dc2abb
2016-04-25 21:26:16 +00:00
Colin Cross
5b135f5c45 Refactor out exported cflags
am: 919281a

* commit '919281aa918222fa2181c8dd19a2d2225f292180':
  Refactor out exported cflags

Change-Id: I2bc28cba2592087022c65b5b9f5cbbcce92ad2f7
2016-04-25 21:26:16 +00:00
Colin Cross
16b2349190 Add support for sanitizer property
Add a new feature to cc modules that adds the cflags and libraries
necessary to implement AddressSanitizer, ThreadSanitizer, and
UndefinedBehaviorSanitizer.

Change-Id: Ibe5ffadc7ece56080a2521f2c7c00da9ef712584
2016-04-21 16:42:08 -07:00
Colin Cross
4a97cb4328 Support "none" for stl when using ndk
Change-Id: I13ecf0a6be591814546a9a1c8b8356988348feb0
2016-04-21 16:39:28 -07:00
Colin Cross
a8e07cc653 Promote stl to a fixed feature
cc needs to know what stl was selected, promote stl from a generic
feature implementation to a fixed type pointer.

Change-Id: I950ef947f7cd254fe3074f4ff240bb2b90b9116c
2016-04-21 16:39:28 -07:00
Colin Cross
919281aa91 Refactor out exported cflags
Exported cflags are needed by a variety of cc module types.  Refactor
them into an object that can be composed into any cc module type.

Change-Id: I7427ba71085917ca3ec522abadfa2bf33ab43440
2016-04-21 16:35:03 -07:00
Dan Willemsen
5df983681f Add genrule tool_file to better handle deps am: f7f3d69cf5 am: d8fd035fad
am: d2f27c4590

* commit 'd2f27c45904adb0f17362dfea246576db7f5324c':
  Add genrule tool_file to better handle deps

Change-Id: I6cdec6e4e0836fe9ab4f5c654b404daa84c68342
2016-04-21 22:26:27 +00:00
Dan Willemsen
4c44f6286f Fix generated sources and headers am: b40aab6955 am: c5dedcacfa
am: ec66a26f87

* commit 'ec66a26f87c634e7addbc559b869517c908cd833':
  Fix generated sources and headers

Change-Id: Iab3af6d2df4b1c956985f6326b0d75da69ac4d95
2016-04-21 22:26:26 +00:00
Dan Willemsen
d2f27c4590 Add genrule tool_file to better handle deps am: f7f3d69cf5
am: d8fd035fad

* commit 'd8fd035fad37ecea5cd6845f5b95fb246b6a5523':
  Add genrule tool_file to better handle deps

Change-Id: Iad6482e35b53cd31ae45c398780e26453e299a17
2016-04-21 22:24:12 +00:00
Dan Willemsen
ec66a26f87 Fix generated sources and headers am: b40aab6955
am: c5dedcacfa

* commit 'c5dedcacfa2bc63fa47c86e55e3667310a1ed9dc':
  Fix generated sources and headers

Change-Id: I5febc1a0cfc85b2f660a88448fb4ab86d415610c
2016-04-21 22:24:12 +00:00
Dan Willemsen
d8fd035fad Add genrule tool_file to better handle deps
am: f7f3d69cf5

* commit 'f7f3d69cf58cdb0bb15ea0b376a6e0381e971905':
  Add genrule tool_file to better handle deps

Change-Id: I04054b0c22d2e05ad877c69187b6fc2551b743b2
2016-04-21 22:21:53 +00:00
Dan Willemsen
c5dedcacfa Fix generated sources and headers
am: b40aab6955

* commit 'b40aab6955ebb85b8ab5b3934838a4df507fa62c':
  Fix generated sources and headers

Change-Id: I6dcae40fc1479b21da9153be3e8b23c7d4bc2c20
2016-04-21 22:21:52 +00:00
Dan Willemsen
f7f3d69cf5 Add genrule tool_file to better handle deps
This will allow modules to specify a local script file that will be
expanded to the proper path in $tool, and will automatically be added to
the dependencies.

Change-Id: Icea4046b1fe2fd7c543aa33913d1a53201b15353
2016-04-21 13:20:01 -07:00
Dan Willemsen
b40aab6955 Fix generated sources and headers
Add two cc properties: `generated_sources` and `generated_headers`,
instead of just adding genrule modules to `deps`. Label these with the
dep tagging mechanism, add the generated_headers paths to the include
paths, and add dependencies to generated headers for each compile.

Add dependencies so that regular sources can include generated yacc
headers, not just other generated lex/yacc files. Static/shared specific
sources still don't have dependencies to or from regular sources though.

Switch from an implicit dependency on generated files to an orderonly
dependency, since the depfile will take care of the necessary implicit
dependencies for incremental builds.

Change-Id: I436675acb1f57329d98b81c56dcb4384201a68ea
2016-04-20 15:54:19 -07:00
Colin Cross
6ccdbb80b6 Update sanitize property format am: 21b481b am: ebe0d559d1
am: c3a6d718bf

* commit 'c3a6d718bf269f3732b9c2bd8dca1d2db54ebad8':
  Update sanitize property format

Change-Id: Ie3b9644a7970458bbfaff17143d3bda24e3533c1
2016-04-19 23:06:56 +00:00
Colin Cross
c3a6d718bf Update sanitize property format am: 21b481b
am: ebe0d559d1

* commit 'ebe0d559d13a12da1c3245e570971d58b4398321':
  Update sanitize property format

Change-Id: I7a96a51fa825ff39eec174b9ab616ea95f218d80
2016-04-19 23:04:52 +00:00
Colin Cross
ebe0d559d1 Update sanitize property format
am: 21b481b

* commit '21b481b757e5599fec65a6a2ab573313b9def713':
  Update sanitize property format

Change-Id: I60ee1cf5fc58f13dacbeb0e277ad5190d542d1ac
2016-04-19 23:01:29 +00:00
Colin Cross
21b481b757 Update sanitize property format
Change-Id: Ibca493a70a19cd3dfb58b5404b1c9ed42e068748
2016-04-15 16:27:17 -07:00
Colin Cross
6439bad249 Use blueprint DependencyTags am: c99deeb
am: c2a42cc

* commit 'c2a42cc876991a852c031d1b5961a9e60339f91d':
  Use blueprint DependencyTags

Change-Id: I0fceb2c1699487ecd9b0cba6cb1cb11206726caf
2016-04-13 18:00:19 +00:00
Colin Cross
c2a42cc876 Use blueprint DependencyTags
am: c99deeb

* commit 'c99deeb961887d402477880b338bc2792c45bed3':
  Use blueprint DependencyTags

Change-Id: I09234b9992d85262bf919d9c34cc10441215a7f4
2016-04-13 17:55:52 +00:00
Colin Cross
c99deeb961 Use blueprint DependencyTags
Blueprint now requres DependencyTags to be passed to AddDependency
calls.  Use the tags to avoid setting member variables on modules, which
will be lost after the mutators have been called.

Change-Id: I8c1d9ed1db85a300e14394b911a516d361ba9f75
2016-04-12 15:24:02 -07:00
Colin Cross
f0da2203e8 Rename deps property to objs in cc_objects am: 8141347
am: db0c10a

* commit 'db0c10ac741654b668eb98e449c641d7c0f4a1e3':
  Rename deps property to objs in cc_objects

Change-Id: I0f226085caf945b3389aee225e097d6c6f3fa69a
2016-04-12 22:12:06 +00:00
Colin Cross
db0c10ac74 Rename deps property to objs in cc_objects
am: 8141347

* commit '8141347295ed901c4647014c9a21e2b4ae138b38':
  Rename deps property to objs in cc_objects

Change-Id: Ibd73d981491998f7f27398834ba8382a7d7fd362
2016-04-12 21:27:39 +00:00
Colin Cross
8141347295 Rename deps property to objs in cc_objects
The deps property is handled by blueprint, which doesn't give the
flexibilty of handling it within soong.  Switch to using objs instead.

Change-Id: Ib8273546578b31b186a3cf1566e80a5eb11943b7
2016-04-11 14:52:04 -07:00
Elliott Hughes
5f23964bfe libm\'s headers have moved to live with their libc cousins. am: 8524429
am: bb4937e

* commit 'bb4937ef99e9adf89657aa6be11e580219c3e0bc':
  libm's headers have moved to live with their libc cousins.

Change-Id: I8175ceb8904fcfa5b0bfd24320364bdc6191f48e
2016-04-04 20:57:22 +00:00
Elliott Hughes
bb4937ef99 libm\'s headers have moved to live with their libc cousins.
am: 8524429

* commit '852442957bf35e9dced80ec01d8a72da28743ea5':
  libm's headers have moved to live with their libc cousins.

Change-Id: I9e10b1e6d08ecd25b6cfda4cbc2b973a20d1aaa9
2016-04-04 20:54:54 +00:00
Elliott Hughes
852442957b libm's headers have moved to live with their libc cousins.
(To reduce the need for this kind of thing in the various build systems.)

Change-Id: I75d11497bbf42695f804bcc9ea9ba3b3a12ac764
2016-04-04 12:58:03 -07:00
Dan Willemsen
9d389bfef9 Move runpaths out of global ldflags am: d30e610
am: d517c2a

* commit 'd517c2a73ee517683ba6e70acb701bc34ea64291':
  Move runpaths out of global ldflags

Change-Id: I9ff45bde7f3a6a9be67d51cfb638decbbdc3ac61
2016-03-31 20:54:41 +00:00
Dan Willemsen
d517c2a73e Move runpaths out of global ldflags
am: d30e610

* commit 'd30e610ef24425596d1787755b6f952bb04b6c1d':
  Move runpaths out of global ldflags

Change-Id: I6a486e2c3582b295dabb3585733dc013186a07d3
2016-03-31 20:51:34 +00:00
Dan Willemsen
6accdaf3df Fix ToolchainLdflags calls am: e717492
am: 2c9a4c0

* commit '2c9a4c0f0ed7da360e5782b094c2f5c349149a8c':
  Fix ToolchainLdflags calls

Change-Id: Ibe59f7e7cb68b22f243bc956b5000e8247563572
2016-03-31 07:05:29 +00:00
Dan Willemsen
2c9a4c0f0e Fix ToolchainLdflags calls
am: e717492

* commit 'e71749280e895d588a229ba5a64fc8a4f5a71a85':
  Fix ToolchainLdflags calls

Change-Id: I7458bb398bcdb4d2b76fa43214058133b64ac601
2016-03-31 07:02:51 +00:00
Dan Willemsen
d30e610ef2 Move runpaths out of global ldflags
The make macros add these to the linker lines even if the default
compiler flags are being skipped.

This also allows us to add another runpath for test binaries, which are
currently being installed in:

  <out>/host/linux-x86/nativetest[64]/<test>/<binary>

So they need to use ../../lib[64] as a rpath.

Change-Id: Ia7e954cdf63bc627a8f71d01c953530355c248ab
2016-03-31 00:00:02 -07:00
Colin Cross
6cb437afc6 Remove extension from LOCAL_MODULE_STEM
am: ff019aa

* commit 'ff019aa4cff6f8636102003ac14de5442ea6758f':
  Remove extension from LOCAL_MODULE_STEM

Change-Id: I6cd8b82822e6bf017634959391b936e4c35be47e
2016-03-31 06:59:29 +00:00
Colin Cross
cde0b7c835 Don\'t install static libraries
am: f9cf41f

* commit 'f9cf41f70331259fdb8ce87a720d851eb2223d3f':
  Don't install static libraries

Change-Id: I6da4aa2bd3c4751d53caa610336a170d65ade499
2016-03-31 06:59:29 +00:00
Dan Willemsen
e71749280e Fix ToolchainLdflags calls
Instead of having the baseCompiler adjust the Ldflags, teach
objectLinker about ToolchainLdflags. And don't assume that
ToolchainLdflags will work for Clang too, add a ToolchainClangLdflags
call.

Change-Id: I5f546e46f32edf3fcf75a44bee2c5ee103bc5de3
2016-03-30 21:16:34 -07:00
Dan Willemsen
a5c3ee0ef9 Various host flag updates to match Make am: 01fdd3d
am: 1e43a62

* commit '1e43a621192330a9dcc8d9665eed72d86379dd01':
  Various host flag updates to match Make

Change-Id: Ia1e3e5535316df35d5f6f776079265c2ae08b3f9
2016-03-30 22:10:49 +00:00
Dan Willemsen
1e43a62119 Various host flag updates to match Make
am: 01fdd3d

* commit '01fdd3d8c1867d71d718ed900ecf41f7f7245d18':
  Various host flag updates to match Make

Change-Id: I24a28b07428d57218d409f63488fe9e8b7e04554
2016-03-30 21:39:22 +00:00
Dan Willemsen
01fdd3d8c1 Various host flag updates to match Make
Some of these are updates from the old build system, others are just
differences/bugs being corrected.

Change-Id: Ied7f47ade495dcb26ba3611e636869cba283860f
2016-03-30 12:35:07 -07:00
Dan Willemsen
4b879d624a Merge "Provide a default DeviceArchVariant" am: d6d6b69
am: d75c188

* commit 'd75c1887e5bf17262ba48d6c9699bdd52bb6d7d3':
  Provide a default DeviceArchVariant

Change-Id: I860e3d67894e17d904f93793ffc10432ed144b5e
2016-03-30 06:40:27 +00:00
Dan Willemsen
d75c1887e5 Merge "Provide a default DeviceArchVariant"
am: d6d6b69

* commit 'd6d6b6942d9c908c63c8846537b05e405d487d1a':
  Provide a default DeviceArchVariant

Change-Id: I2eb8cb6586d1b5c75f5e8cb88892d6dc90e0225f
2016-03-30 06:36:33 +00:00
Dan Willemsen
d6d6b6942d Merge "Provide a default DeviceArchVariant" 2016-03-30 06:26:54 +00:00
Dan Willemsen
a91d127443 Provide a default DeviceArchVariant
The empty string is no longer a valid arm64 arch variant.

Change-Id: I61468ba09f9fd629e9ebd3915e266490416f65d6
2016-03-29 22:06:42 -07:00
Dan Willemsen
599a8ba79b Merge "Only add -fdebug-prefix-map on Linux hosts" am: 99b5a09
am: 9c2e82d

* commit '9c2e82dd20bc3b7c85f51970cfc94179008e0907':
  Only add -fdebug-prefix-map on Linux hosts

Change-Id: Ibfd92457ac0ae44d26541d62d0111fbd52d01a51
2016-03-30 04:18:16 +00:00
Dan Willemsen
9c2e82dd20 Merge "Only add -fdebug-prefix-map on Linux hosts"
am: 99b5a09

* commit '99b5a09022a06a09d20a6fe0c25bdf9f369aaa5c':
  Only add -fdebug-prefix-map on Linux hosts

Change-Id: Ie94615c29eda13bdbac8a646ece9302b35a27610
2016-03-30 04:14:28 +00:00