Commit graph

1947 commits

Author SHA1 Message Date
Colin Cross
dfc57b8ff6 Disable installing unused prebuilts am: 0f3c72fa17
am: 830e915df0

Change-Id: I2b373af16d152f6cceaab8fecd00c87bd01a09af
2016-11-30 05:20:26 +00:00
Colin Cross
39fa5cf10d Don't generate Android.mk data if the module is disabled am: cc4f3e3f94
am: 9b834e541e

Change-Id: I869fedf240b556b33b949f163f01cebe3c805334
2016-11-30 05:20:25 +00:00
Colin Cross
8c093e5034 Provide config helpers for environment variables
am: 99d7c23006

Change-Id: I982ed5896d997913b8b3f0d947e92dd3eb9814be
2016-11-30 05:14:29 +00:00
Colin Cross
2e675962be Split cc_prebuilt_shared_library into static variants
am: bba99041db

Change-Id: Icee925b63f21f4b3f6533a9507564db998573ea1
2016-11-30 05:14:28 +00:00
Colin Cross
830e915df0 Disable installing unused prebuilts
am: 0f3c72fa17

Change-Id: I352c7409cc5e4bb9c60820e7e7aa0d4d9549d1fd
2016-11-30 05:14:26 +00:00
Colin Cross
9b834e541e Don't generate Android.mk data if the module is disabled
am: cc4f3e3f94

Change-Id: Ib357a63acc1c92b6c227b946be73f139c195531d
2016-11-30 05:14:24 +00:00
Colin Cross
99d7c23006 Provide config helpers for environment variables
Add GetenvWithDefault, IsEnvTrue, and IsEnvFalse helpers to Config.

Test: m -j checkbuild
Change-Id: Id855e5349115eb2a18b2e73cfd1bd84b5874ff93
2016-11-29 15:29:34 -08:00
Colin Cross
bba99041db Split cc_prebuilt_shared_library into static variants
Prebuilts must have every variant that their source module has, so
split all cc_prebuilt_shared_library modules into both static and
shared variants.

Test: m -j checkbuild
Change-Id: I3c32315227f779e832e041cfab604ff7402c7e13
2016-11-29 15:29:34 -08:00
Colin Cross
0f3c72fa17 Disable installing unused prebuilts
If the source module is being used instead of the prebuilt module,
disable installing the prebuilt module.

Test: m -j checkbuild
Change-Id: I55e77021b0f9572b0737d960cba89274f696775d
2016-11-29 15:29:34 -08:00
Colin Cross
cc4f3e3f94 Don't generate Android.mk data if the module is disabled
Move the calls to the AndroidMkProvider to after checking if the
module is disabled.  Disabled modules may not have all the state
necessary to generate the data.

Test: m -j libLLVM
Change-Id: Iab27a26e604f3810bcc2d9f61b1839aa7bc428b4
2016-11-29 15:29:34 -08:00
Dan Willemsen
4c279c3e23 Add basic VNDK support in Soong am: d2ede879b5 am: c415039ced
am: 15731fac2f

Change-Id: I63716378fac49dc101e8e05c5edd552d94c8c048
2016-11-29 20:53:51 +00:00
Dan Willemsen
15731fac2f Add basic VNDK support in Soong am: d2ede879b5
am: c415039ced

Change-Id: Ieafb38cd61a71c891390345cf2f93bb9beeaea53
2016-11-29 20:47:49 +00:00
Dan Willemsen
c415039ced Add basic VNDK support in Soong
am: d2ede879b5

Change-Id: I2441b81dfd6637d4af6b5d748601494498774050
2016-11-29 20:42:39 +00:00
Dan Willemsen
d2ede879b5 Add basic VNDK support in Soong
Export a list of libraries in the VNDK, which is currently empty.

Take in Make's global BOARD_VNDK_VERSION, and use that as the SDK
version for modules that specify use_vndk: true.

Modules that use the vndk have some configuration as if they were
building against the NDK (the absence of globally defined headers), but
in other cases look like platform modules (using the platform libc++,
for now).

This change does not attempt to enforce any linking constraints, that
will come in a later patch.

Test: out/soong/build.ninja doesn't change
Change-Id: I3be206b67015ac5177b7eef4a451c579e3dc903f
2016-11-28 13:45:24 -08:00
Colin Cross
3d0dc08a0b Merge changes I3454370a,I18dd900d am: 112fd2b9b1 am: 116403006a
am: 259abaeca8

Change-Id: Iafa2345aba708978a8beff7d6ff7514ac25d20e9
2016-11-25 18:35:09 +00:00
Colin Cross
848c8a9dad Move global cppflags to the beginning of cppflags am: b668826a85 am: 88d3652f37
am: 85871d8da4

Change-Id: I65c82007353768171d25620dd87c7c81cc0ef851
2016-11-25 18:35:07 +00:00
Colin Cross
66a51fa1fa genrule: let Android.bp file specify exported header dirs am: 5ed99c6472 am: c847ac3e62
am: d46f7b3dad

Change-Id: I38ea988382f739bff15bd61a623437129eddc4d4
2016-11-25 18:35:06 +00:00
Colin Cross
259abaeca8 Merge changes I3454370a,I18dd900d am: 112fd2b9b1
am: 116403006a

Change-Id: I685273a349c5c980c3f714cdfb9a4d146bdcbfa1
2016-11-25 18:31:38 +00:00
Colin Cross
85871d8da4 Move global cppflags to the beginning of cppflags am: b668826a85
am: 88d3652f37

Change-Id: Ibad0eda62a3bec87717dc67b86315cf61907ae07
2016-11-25 18:31:37 +00:00
Colin Cross
d46f7b3dad genrule: let Android.bp file specify exported header dirs am: 5ed99c6472
am: c847ac3e62

Change-Id: I7214c0851fb411faeb90aecce52a704a0f848d54
2016-11-25 18:31:35 +00:00
Colin Cross
116403006a Merge changes I3454370a,I18dd900d
am: 112fd2b9b1

Change-Id: I7daf539df4d483c983f4904cbea3cc367f8527e7
2016-11-25 18:25:38 +00:00
Colin Cross
88d3652f37 Move global cppflags to the beginning of cppflags
am: b668826a85

Change-Id: Ia93b79e1c73dafdc9c2887af97d62e45681193d6
2016-11-25 18:25:37 +00:00
Colin Cross
c847ac3e62 genrule: let Android.bp file specify exported header dirs
am: 5ed99c6472

Change-Id: I222030cb0d7cc73d3332f7789507c40b961e4186
2016-11-25 18:25:35 +00:00
Treehugger Robot
112fd2b9b1 Merge changes I3454370a,I18dd900d
* changes:
  Move global cppflags to the beginning of cppflags
  genrule: let Android.bp file specify exported header dirs
2016-11-25 05:49:38 +00:00
Colin Cross
1563d022b3 Merge "genrule: support deps files" am: 10f96b1d77 am: 541a8a65ec
am: ab73042865

Change-Id: I5568e4cf5df1fe7c93d4efa96c387866eacce506
2016-11-23 23:54:40 +00:00
Colin Cross
ab73042865 Merge "genrule: support deps files" am: 10f96b1d77
am: 541a8a65ec

Change-Id: Ic1367aedc8462af0889a481b6b3d7d244652cef8
2016-11-23 23:46:42 +00:00
Colin Cross
541a8a65ec Merge "genrule: support deps files"
am: 10f96b1d77

Change-Id: I15148c3bd969f0ba78ee6c729916db460e55fa2d
2016-11-23 23:44:13 +00:00
Colin Cross
10f96b1d77 Merge "genrule: support deps files" 2016-11-23 23:38:28 +00:00
Colin Cross
ff88568e43 Merge "genrule: expand $$ to $$" am: d328ad708e am: a14071cf6c
am: 88c9ef3737

Change-Id: I65995c5cbf450910e6219089a993e94fa360bb22
2016-11-23 03:45:23 +00:00
Colin Cross
88c9ef3737 Merge "genrule: expand $$ to $$" am: d328ad708e
am: a14071cf6c

Change-Id: Iebce684a4f9458e1ad6dd31ba90fa0101ffd8db7
2016-11-23 03:42:52 +00:00
Colin Cross
a14071cf6c Merge "genrule: expand $$ to $$"
am: d328ad708e

Change-Id: I012afbfb9c8afa0203ac59ffa4495476b4c393fd
2016-11-23 03:40:23 +00:00
Treehugger Robot
d328ad708e Merge "genrule: expand $$ to $$" 2016-11-23 03:37:59 +00:00
Stephen Hines
338ec6c47a Merge "Add proper use of LLVM_RELEASE_VERSION for locating libraries." am: 9dfd48b9bc am: 35586f3802
am: 7cd796e94d

Change-Id: I5e796df4e35bcb280a2d581630acfad75b00c1f2
2016-11-23 02:33:48 +00:00
Stephen Hines
7cd796e94d Merge "Add proper use of LLVM_RELEASE_VERSION for locating libraries." am: 9dfd48b9bc
am: 35586f3802

Change-Id: I73795fb2aa74856727c5babd2335b90cd482021c
2016-11-23 02:31:19 +00:00
Stephen Hines
35586f3802 Merge "Add proper use of LLVM_RELEASE_VERSION for locating libraries."
am: 9dfd48b9bc

Change-Id: If02fd242fddb4ab32fbdac9b8cdf35bef1d9dba9
2016-11-23 02:28:48 +00:00
Stephen Hines
9dfd48b9bc Merge "Add proper use of LLVM_RELEASE_VERSION for locating libraries." 2016-11-23 02:23:46 +00:00
Colin Cross
a2c8e3f6b6 Add more whitelisted host libraries am: 124fd9afbd am: 4c32014bc8
am: 44f1d08faa

Change-Id: Id2ff3c56331cd7e870ace223b39e1ebce0256c9d
2016-11-23 01:48:15 +00:00
Colin Cross
44f1d08faa Add more whitelisted host libraries am: 124fd9afbd
am: 4c32014bc8

Change-Id: I6e305fa4084545faaa7238a9a5dafd40a99814ec
2016-11-23 01:46:15 +00:00
Colin Cross
4c32014bc8 Add more whitelisted host libraries
am: 124fd9afbd

Change-Id: I7456e636550e40c1c1729191f10670eda2580afa
2016-11-23 01:43:45 +00:00
Colin Cross
b668826a85 Move global cppflags to the beginning of cppflags
Global cppflags should come first so they can be overriden by module
cppflags.

Test: m -j checkbuild
Change-Id: I3454370a6b35f37982b1e0de2e0ec52b54974a8a
2016-11-22 15:41:09 -08:00
Colin Cross
5ed99c6472 genrule: let Android.bp file specify exported header dirs
Instead of exporting the generated sources dir as headers, let
the Android.bp file specify subdirectories as exported.

Test: m -j checkbuild
Change-Id: I18dd900d63ce7485c8fbfcc39dc77abad6f733d7
2016-11-22 15:41:09 -08:00
Colin Cross
33bfb0a36a genrule: support deps files
If a genrule sets deps_file: true, use a file in the gen directory
as a GCC-style deps file.

Test: m -j libLLVMObject
Change-Id: Id410165847e4eaea1853a392512e38787c431523
2016-11-22 15:41:09 -08:00
Colin Cross
2ee10a0659 genrule: expand $$ to $$
An escaped $ sign in an expanded string needs to be re-escaped so it
can pass through to ninja.

Test: m -j libLLVMObject
Change-Id: I2f7890417fd6f534e6e21cace3d86ae9ef708ce5
2016-11-22 15:41:08 -08:00
Colin Cross
124fd9afbd Add more whitelisted host libraries
Add AppKit, Foundation and Security to darwin for libchrome.

Add -lm and -lversion to windows for llvm.

Test: m -j libLLVMObject
Change-Id: Ie5c922d3fbb41fba1de5f1ce9e530683bf411c5a
2016-11-22 15:41:04 -08:00
Stephen Hines
e55a4cc594 Add proper use of LLVM_RELEASE_VERSION for locating libraries.
Bug: http://b/31532493

As I have been updating to LLVM ~4.0, there are numerous locations where
3.8 is hard-coded, and unable to be overridden. This change adds a new
function for getting the ClangShortVersion(), which can look at
environment variables that override this value (particularly useful for
two-stage compilation, where version numbers change between builds).

Change-Id: Iaec19908cf47b3b2317844d6e1329f7bcd81f022
2016-11-18 17:12:38 -08:00
Dan Willemsen
68efc7db8c Add Toolchain.Bionic() am: 2e47b34435 am: 21cd6c847e
am: dc5d278e1c

Change-Id: I35b7729eef780618c18ac3251525750a2ac64dcc
2016-11-18 03:18:34 +00:00
Dan Willemsen
891fe2a3c2 Allow Host cc_object and cc_toolchain_library am: 967c6a9b87 am: c97c4626b9
am: 1d91ced506

Change-Id: I8d1ffa9afb6faf22fb9b4da98c508cace2dee7a0
2016-11-18 03:18:32 +00:00
Dan Willemsen
779425effe Add LinuxBionic OsType am: 00fcbde401 am: cf7da2e936
am: 5567059f70

Change-Id: I8d2b70768393ef9ffbb97e2d47f9f764f4dde724
2016-11-18 03:18:31 +00:00
Dan Willemsen
31fe7c8ab4 Encode default enabled state in OsType am: 0a37a2a2b8 am: 7dbdaa7fa5
am: d34ae783fe

Change-Id: I11c18d830582f7d8e0798e7164dc7109a7a357ab
2016-11-18 03:18:30 +00:00
Dan Willemsen
dc5d278e1c Add Toolchain.Bionic() am: 2e47b34435
am: 21cd6c847e

Change-Id: I205000ed05af834a68766799fb72a5491c96c93d
2016-11-18 03:15:33 +00:00