Commit Graph

1071 Commits

Author SHA1 Message Date
Dan Albert
db26530b73 Don't warn for TODOish comments.
These just make it harder to detect when the file is clean of
interesting errors.

Change-Id: I6f2ae6368cdbd2800ce3f0461a3d456f79e6e994
2016-08-01 14:36:22 -07:00
Colin Cross
42742b8bb0 Rename compiler, linker and installer methods to be unique
compiler, linker, and installer interfaces may be implemented by a
single decorator object, rename their methods to be unique to avoid the
same method being called multiple times.

Test: out/soong/build.ninja unchanged
Change-Id: I1608c41cd68f614ba99c11bb9fcc7936f618d9aa
2016-08-01 13:47:15 -07:00
Colin Cross
b98c8b0595 Move toolchain and global variables into separate package
Move all of the configuration into a cc/config package

Change-Id: If56fc7242062ed1ce3cb297f78a1e0ef7537373c
2016-08-01 13:37:01 -07:00
Dan Willemsen
96683b9e53 Merge changes from topic \\'soong_init_rc\\' am: f0cfc7b9e4
am: 763ebb5ac0

Change-Id: I6e844c661e8e8c452ffaad0532c5a25f5223ab55
2016-07-30 02:09:10 +00:00
Dan Willemsen
763ebb5ac0 Merge changes from topic \'soong_init_rc\'
am: f0cfc7b9e4

Change-Id: I677bd126c2de4b0033e1f8f6dc2d870c6d30de1f
2016-07-30 02:06:48 +00:00
Colin Cross
0df8c87dd7 Separate cc.go am: 4d9c2d17c3
am: 474a2ca076

Change-Id: I4f67054b72bcab3c73ff55b471dae47dfaa4fb29
2016-07-29 23:54:53 +00:00
Colin Cross
474a2ca076 Separate cc.go
am: 4d9c2d17c3

Change-Id: Ia5d7300754eae013c95c408454def1f399b81307
2016-07-29 23:52:36 +00:00
Dan Willemsen
f0cfc7b9e4 Merge changes from topic 'soong_init_rc'
* changes:
  Include frameworks/native
  Add init_rc property, equivalent to LOCAL_INIT_RC
2016-07-29 23:44:33 +00:00
Dan Willemsen
c947526c69 Include frameworks/native
Change-Id: Ic20d27727a48b397089a7eca43a701e3e56567ba
2016-07-29 15:24:08 -07:00
Dan Willemsen
2277bcbc2a Add init_rc property, equivalent to LOCAL_INIT_RC
Change-Id: I914bfff8cbdf71b6cfb2271199a964b2cdcb72d0
2016-07-29 15:24:08 -07:00
Colin Cross
4d9c2d17c3 Separate cc.go
Split cc.go into files per module type, plus files for the compiler,
linker, and installer stages.

Change-Id: Id44c03f42fcd180950ccd008d4de0c144ea3597b
2016-07-29 15:17:58 -07:00
Dan Albert
c209136e37 Merge \\"Generate NDK sysroots from the platform build.\\" am: c6b4e452b4
am: 0f3417c257

Change-Id: Ia79947f6f40c62128ac6849b6e0d1ad699e4f0ff
2016-07-28 16:09:21 +00:00
Dan Albert
0f3417c257 Merge \"Generate NDK sysroots from the platform build.\"
am: c6b4e452b4

Change-Id: I11563aa2d2bd01e77f7f07a1601e39bbf796593a
2016-07-28 16:06:25 +00:00
Dan Albert
c6b4e452b4 Merge "Generate NDK sysroots from the platform build." 2016-07-28 15:58:52 +00:00
Dan Willemsen
f8797be192 Merge \\"Dump Soong module type statistics to Make\\" am: 9d545785ae
am: e1cb827381

Change-Id: Idd251371ae9fb8ec41be079ca2e0248742e4eeca
2016-07-28 08:17:37 +00:00
Dan Willemsen
e1cb827381 Merge \"Dump Soong module type statistics to Make\"
am: 9d545785ae

Change-Id: I95dcbe1625e952abb34ab71811aeee94e66587d9
2016-07-28 08:14:43 +00:00
Dan Willemsen
9d545785ae Merge "Dump Soong module type statistics to Make" 2016-07-28 08:08:27 +00:00
Dan Albert
914449fca8 Generate NDK sysroots from the platform build.
The list of migrated libraries is currently empty. Libraries will be
migrated as follow up patches.

Test: Migrated libc to this system and everything still builds.
      build.ninja shows libraries being built and used and headers are
      collected for the sysroot.
Bug: http://b/27533932
Change-Id: Iaba00543c1390f432befe0eed768ed3fbb8a9b96
2016-07-28 00:42:05 -07:00
Colin Cross
09b78964b1 Merge \\"Finish cc.Customizer\\" am: fb8f9a800e
am: 8c0cfc146f

Change-Id: I4a9e802eb3b7307110c709c80dc7517f8763116f
2016-07-28 06:02:39 +00:00
Colin Cross
8c0cfc146f Merge \"Finish cc.Customizer\"
am: fb8f9a800e

Change-Id: Ib09e17935b6071b72e5f185f45fdb58e8bc9e269
2016-07-28 05:59:40 +00:00
Treehugger Robot
fb8f9a800e Merge "Finish cc.Customizer" 2016-07-28 05:50:34 +00:00
Colin Cross
a33c60dcb2 Merge \\"Add libnativehelper to root Android.bp\\" am: 85676d2234
am: b69eb4c1d2

Change-Id: Ic29b17682291842d0e4a2c53d4b37b3b70397150
2016-07-28 04:19:44 +00:00
Colin Cross
b69eb4c1d2 Merge \"Add libnativehelper to root Android.bp\"
am: 85676d2234

Change-Id: I1a639aed9c29fe3f16243892591bf8492abd0f3a
2016-07-28 04:16:45 +00:00
Treehugger Robot
85676d2234 Merge "Add libnativehelper to root Android.bp" 2016-07-28 04:10:54 +00:00
Colin Cross
a6b6f8c185 Merge \\"Fix static+shared with generated sources\\" am: c951ef1164
am: 5980699b62

Change-Id: Ibfc83de83d258ed9eec0529087fa741c013ef30b
2016-07-28 00:48:45 +00:00
Colin Cross
5980699b62 Merge \"Fix static+shared with generated sources\"
am: c951ef1164

Change-Id: Ic8e896a5307348b16489cb5844aaa3b5c506e398
2016-07-28 00:46:21 +00:00
Colin Cross
76fada06c6 Finish cc.Customizer
The Customizer interface now provides a Flags method that takes a
CustomizerFlagsContext and can call AppendCflags to insert extra cflags
on a module.

Change-Id: I821242e7574e8ff653580325d1bef2998a50e29c
2016-07-27 17:15:49 -07:00
Colin Cross
c951ef1164 Merge "Fix static+shared with generated sources" 2016-07-28 00:12:37 +00:00
Colin Cross
7d7904a1a0 Merge \\"Allow defaults modules to have defaults\\" am: 2846cc448b
am: 1ec9eb2961

Change-Id: Ice7a561ea3b9d66199aa63d3e3b1c219838a6177
2016-07-27 23:34:25 +00:00
Colin Cross
1ec9eb2961 Merge \"Allow defaults modules to have defaults\"
am: 2846cc448b

Change-Id: I12aaa8f7de21fb2732846aa57320ee5b81087a18
2016-07-27 23:31:56 +00:00
Colin Cross
2846cc448b Merge "Allow defaults modules to have defaults" 2016-07-27 23:20:06 +00:00
Dan Albert
83c45192c3 Resolve GccTriple/ClangTriple early. am: 84f431fc34
am: 91bca5627f

Change-Id: I70d3ea6cd3a22d4d5f4e3fb97beea8f5619bbb56
2016-07-27 20:03:58 +00:00
Dan Albert
d24e593006 Don\\'t add -L for libs that don\\'t need it. am: ce2b839257
am: 5380a1ee24

Change-Id: I521861e2452196d36aa0d00bc604e223ab3771ef
2016-07-27 20:03:57 +00:00
Dan Albert
91bca5627f Resolve GccTriple/ClangTriple early.
am: 84f431fc34

Change-Id: I471715d50088e885bc6cdd7382d58fbb95cfebe4
2016-07-27 20:01:32 +00:00
Dan Albert
5380a1ee24 Don\'t add -L for libs that don\'t need it.
am: ce2b839257

Change-Id: I98ddf36829c679db9deb412891524629f6f8d513
2016-07-27 20:01:30 +00:00
Dan Albert
84f431fc34 Resolve GccTriple/ClangTriple early.
When these are Ninja variable they can't be used in android.Path since
they'll be rejected as invalid paths. We don't actually need them to be
a Ninja variable, so make them plain old strings instead.

Test: Still builds.
Change-Id: I04743cebd4b2f9be5685545f2ee941df180fce14
2016-07-27 11:12:07 -07:00
Dan Albert
ce2b839257 Don't add -L for libs that don't need it.
We're already referring to the library by the full path. The -L is
unnecessary.

Follow up to https://android-review.googlesource.com/#/c/249544/

Test: Still builds.
Change-Id: Id27dff29f75797c4c0dcc66704ac08cc0b58cfe3
2016-07-27 11:12:07 -07:00
Christopher Ferris
23ae21584f Merge \\"Remove the common bionic libc kernel directory.\\" am: e1ddc12b5d
am: 2f1e55bee5

Change-Id: Ia3a745968a7494a3236f6563082396b1ebf4a29b
2016-07-27 18:05:55 +00:00
Christopher Ferris
2f1e55bee5 Merge \"Remove the common bionic libc kernel directory.\"
am: e1ddc12b5d

Change-Id: Id250aace327ce94eef17804c48537e629b1471b4
2016-07-27 18:03:27 +00:00
Colin Cross
0dbe26e8da Add libnativehelper to root Android.bp
libnativehelper has an Android.bp file, so it won't cause a namespace
conflict between the glob on the directory and the module name.

Bug: 25797955
Change-Id: Id86b3a1cd0f130989f77613494e19b8f255029ce
2016-07-27 10:57:08 -07:00
Christopher Ferris
e1ddc12b5d Merge "Remove the common bionic libc kernel directory." 2016-07-27 17:56:55 +00:00
Colin Cross
5dab840e24 Fix static+shared with generated sources
Clear out the generated sources when reusing object files from the
static library for the shared library to avoid linking them twice.

Change-Id: Idc145f817acc93df4c3b266ac7647299399bc8eb
2016-07-27 10:30:21 -07:00
Colin Cross
e7b07137d4 Allow defaults modules to have defaults
Allow chaining defaults modules by making Defaults be a Defaultable.

Change-Id: I4ba86c07f7aad9c396ed33d55fe95d1fb78e487d
2016-07-27 10:15:06 -07:00
Dan Willemsen
dff894007f Add Binder32bit product variable am: 1be3538862
am: 9c2ecad476

Change-Id: I9c2af352bdab083a795f055078503f7cbaaa434e
2016-07-27 00:48:13 +00:00
Dan Willemsen
9c2ecad476 Add Binder32bit product variable
am: 1be3538862

Change-Id: I4f3abba3f79ae7fbde4dc29bfc2a84a47f37fed3
2016-07-27 00:45:18 +00:00
Dan Willemsen
1be3538862 Add Binder32bit product variable
To allow cflag changes when using the "old" binder API that are still
used by all 32-bit only configurations. We can't just use
android32/android64 here, since some devices use a 64-bit kernel with a
32-bit userspace, which is configured as "android32".

Change-Id: I8450484b75d59c1855c7ba36260c08925e7b28ad
2016-07-26 23:03:47 +00:00
Dan Willemsen
70e17fa6a5 Dump Soong module type statistics to Make
Make will combine this information with statistics gathered from the
Make build, then dump it out to a build artifact.

Change-Id: I2bd84d4f8a8d145c37e3a4c4fcc8fece99e2a1de
2016-07-25 16:00:20 -07:00
Dan Willemsen
a146a72924 Limit unique_host_soname to just host modules am: 627d83db71
am: 808b3eb021

Change-Id: Ice5718867884f95f76fa17162c26b3c04d33d4e3
2016-07-22 21:42:13 +00:00
Dan Willemsen
808b3eb021 Limit unique_host_soname to just host modules
am: 627d83db71

Change-Id: Icb02c8a0965dea7e34d64fe08c84418029c7304d
2016-07-22 21:39:44 +00:00
Dan Willemsen
627d83db71 Limit unique_host_soname to just host modules
Change-Id: I41d050806a27473abb3788de43b7bf67f5d049a8
2016-07-22 13:41:24 -07:00