Commit Graph

1652 Commits

Author SHA1 Message Date
Dan Albert 65780b2c24 Add a script to build the NDK prebuilts.
Test: OUT_DIR=ndk-out DIST_DIR=ndk-dist \
          ./build/soong/scripts/build-ndk-prebuilts.sh
Bug: None

Change-Id: I3c930d2ec4d73196e355b90766eb14f0f0361460
2016-10-19 14:35:15 -07:00
Dan Albert 4098deb0b8 Add an NDK ABIs mega build configuration.
The NDK needs generic prebuilts for all architectures.

Test: echo '{ "Ndk_abis": true }' > soong.config && \
          ./soong $OUT_DIR/ndk.timestamp
Bug: None

Change-Id: I2ee3ebbf4cbd1bc593f9e4e9fb44fb66711da9d5
2016-10-19 14:33:37 -07:00
Eyal Lezmy 94d7543b14 Support MacOS SDK version 10.12
This adds the new macOS SDK version to the supported version list.
Surprisingly it simply works like this.
Test: make adb aapt

Change-Id: Ic72cee7345b5f49b6a743c70bd266866a06bc459
2016-10-19 00:59:05 +02:00
Colin Cross 948f0cb9ea Allow disabling gnu extensions
Pass -std=c++14 instead of -std=gnu++14 (or whatever the current default
is) when "gnu_extensions: false" is specified in the blueprints files.

Bug: 32159540
Test: builds
Change-Id: If206228a972129d9574bcf50ddff283b7e7d3fd7
2016-10-18 12:41:17 -07:00
Colin Cross 6f6a428760 Consolidate -std flags
Define the default -std values in global.go, export them in makevars.go,
and use them in compiler.go.

Test: builds
Change-Id: Ia2ae01f63e182d0ad7f371e6d32184bff35a8897
2016-10-18 12:40:51 -07:00
Dan Willemsen a6dd262114 Allow brillo cflags and debuggable cppflags
am: 7b872837c6

Change-Id: I606c4a8e34e635f16584585f3a03e089b81b6462
2016-10-18 04:35:15 +00:00
Dan Willemsen 7b872837c6 Allow brillo cflags and debuggable cppflags
Test: mmma -j frameworks/native/{libs/gui,opengl/libs} w/Android.bp
Change-Id: I31286c92ec4befaa486052ba2e6d55cd0d5fe62d
2016-10-17 14:50:08 -07:00
Colin Cross 64c42791f1 Re-enable prebuilt_test
am: 0d614dd222

Change-Id: I544461f21b3e794f728b84c9dd15f9d5c1644428
2016-10-15 02:05:04 +00:00
Colin Cross 0d614dd222 Re-enable prebuilt_test
Use a temporary directory as the build directory during tests so files
don't get written to the source tree.

Also add a few more tests for prebuilts with no file specified.

Bug: 31800129
Test: m -j, make sure .soong.environment is not written to the source tree
Change-Id: I623bc114b2ff534c8df9fb3ce273e804711f8f05
2016-10-14 17:07:49 -07:00
Colin Cross 258a35461f Merge "Disable prebuilt_test" am: 6efa287aea am: 9f623bf422
am: edf00545a5

Change-Id: I499effea4d25a6838f0a64e407c9a2d78f8e9f08
2016-10-14 02:53:00 +00:00
Colin Cross edf00545a5 Merge "Disable prebuilt_test" am: 6efa287aea
am: 9f623bf422

Change-Id: I1f556b62e53dedd456797049f9f2c13e395ba311
2016-10-14 02:49:59 +00:00
Colin Cross 9f623bf422 Merge "Disable prebuilt_test"
am: 6efa287aea

Change-Id: Ida2a0758123ede4407c25133e11cb848f9f3c442
2016-10-14 02:47:30 +00:00
Treehugger Robot 6efa287aea Merge "Disable prebuilt_test" 2016-10-14 02:42:47 +00:00
Dan Willemsen e01f62001d Export asan configuration to make am: cbceaab39c am: d2b0244c5d
am: 190d1db476

Change-Id: Ibeff03f609a9b6e08116a4ac988cf0e6a656eb59
2016-10-14 02:36:29 +00:00
Dan Willemsen 190d1db476 Export asan configuration to make am: cbceaab39c
am: d2b0244c5d

Change-Id: I2b5f21b7923cf6ff4ba8c1abb9fd2407257a6905
2016-10-14 02:31:28 +00:00
Dan Willemsen d2b0244c5d Export asan configuration to make
am: cbceaab39c

Change-Id: I04245d14e155c3ed1cadcc87ad14efebbb7f7954
2016-10-14 02:28:28 +00:00
Colin Cross b778a9cb4e Disable prebuilt_test
The prebuilt tests are accidentally writing a .soong.environment file to
the build/soong/android directory, disable them until TestConfig() is
fixed to prevent writing to the source tree.

Bug: 31800129
Test: m -j, make sure .soong.environment is not written to the source tree
Change-Id: I3b7d47e42111ecababe275b7a9ff0d08bcebfc7a
2016-10-13 18:09:51 -07:00
Dan Willemsen cbceaab39c Export asan configuration to make
Test: Ninja files for ASAN'd aosp_flounder-eng identical
Change-Id: Ib29cac0bc391dadd9ff27992c7b356415182767f
2016-10-13 23:46:10 +00:00
Colin Cross a608b797b9 Merge changes I6e84da66,Ie9e3ed09 am: 556566e5ad am: a5b861c23f
am: 2d581ad918

Change-Id: I893f772b5ba3a149cd733b81e920815cebe24411
2016-10-13 23:38:18 +00:00
Colin Cross 2050891406 Initial prebuilt support am: ce75d2c6a2 am: 2d9267aa6c
am: 6e240412aa

Change-Id: I442b67dc46988151a3f02fae4e9208cde6c93698
2016-10-13 23:38:17 +00:00
Colin Cross 3186850865 Only register mutators once am: 4498afc55b am: 1038ddd4c9
am: ce05241152

Change-Id: I285eba470067d9292de700945461471f83aefe29
2016-10-13 23:38:16 +00:00
Colin Cross 2d581ad918 Merge changes I6e84da66,Ie9e3ed09 am: 556566e5ad
am: a5b861c23f

Change-Id: I2e83e107250554e779af99397c472f1714026668
2016-10-13 23:33:18 +00:00
Colin Cross 6e240412aa Initial prebuilt support am: ce75d2c6a2
am: 2d9267aa6c

Change-Id: Ibbd81201441f7ada699ec3522d7020b95bf49a3e
2016-10-13 23:33:17 +00:00
Colin Cross ce05241152 Only register mutators once am: 4498afc55b
am: 1038ddd4c9

Change-Id: I18c41608d639fd08a7da8ec597d4ff9ebe56552f
2016-10-13 23:33:16 +00:00
Colin Cross a5b861c23f Merge changes I6e84da66,Ie9e3ed09
am: 556566e5ad

Change-Id: I537c6950e41528f9d609a2d208abcb755aeed6df
2016-10-13 23:30:17 +00:00
Colin Cross 2d9267aa6c Initial prebuilt support
am: ce75d2c6a2

Change-Id: I9f56b56af7380e9da90c92c2159789428547c9fa
2016-10-13 23:30:16 +00:00
Colin Cross 1038ddd4c9 Only register mutators once
am: 4498afc55b

Change-Id: Ibfec9f690be83e8997e850380e16a0a6fe3facdd
2016-10-13 23:30:15 +00:00
Treehugger Robot 556566e5ad Merge changes I6e84da66,Ie9e3ed09
* changes:
  Initial prebuilt support
  Only register mutators once
2016-10-13 23:27:32 +00:00
Colin Cross ce75d2c6a2 Initial prebuilt support
Support prebuilt shared libraries as an initial proof-of-concept of
prebuilts.  Future changes will support binaries and static libraries,
and the ability to select which to use based on something besides
blueprint properties.

Test: TestPrebuilts run during m -j
Change-Id: I6e84da667e9005ae11844bad01d25cbe4ced1ce3
2016-10-13 14:52:47 -07:00
Colin Cross 4498afc55b Only register mutators once
Mutators are registered into a global variable, and then into the
context when it is created.  Only call registerMutators once so that the
same mutator is not listed multiple times in the global variable when
multiple contexts are created.

Test: go test -v android/soong/android
Change-Id: Ie9e3ed09a89b848462b898476cdfb81a90c64bd3
2016-10-13 14:23:17 -07:00
Elliott Hughes 457b2cf4ff Consistently use -std=gnu99 for gcc as well as clang. am: 5a0401ab9c am: 3a136c085e
am: e6836a508a

Change-Id: I94ddf3b4c4587d812b92aa745de0b65165028a64
2016-10-13 15:05:06 +00:00
Elliott Hughes e6836a508a Consistently use -std=gnu99 for gcc as well as clang. am: 5a0401ab9c
am: 3a136c085e

Change-Id: I41234f55760561183fae448fa20d123b82ade651
2016-10-13 14:58:04 +00:00
Elliott Hughes 3a136c085e Consistently use -std=gnu99 for gcc as well as clang.
am: 5a0401ab9c

Change-Id: Id7d8165e8f59aabf15a7d8d24b294ce8beeb0a64
2016-10-13 14:50:35 +00:00
Elliott Hughes 5a0401ab9c Consistently use -std=gnu99 for gcc as well as clang.
This matters for C files that are also built for Windows. Previously they'd
be compiled with -std=gnu99 for the host but [effectively] -std=gnu89 for
Windows.

Bug: http://b/32019064
Test: builds, and can build libcrypto_utils without a manual -std= line
Change-Id: I9c5cc7832220b5c3d6a007ff10d076e26fd8c75d
2016-10-13 14:41:31 +00:00
Colin Cross 798de83c6b Add a Name property am: fc754581fc am: 8342688bca
am: 1a7847bd28

Change-Id: I0fd0694b0a8c2ee7967d3f1309ddbdf1df9be4c3
2016-10-13 03:58:01 +00:00
Colin Cross 56233ad979 Control mutator order am: 1e676bef94 am: d309a15b9d
am: e92e8abe10

Change-Id: I966513dfc19cf189896618f01d2e30d29431bffe
2016-10-13 03:58:00 +00:00
Colin Cross 1a7847bd28 Add a Name property am: fc754581fc
am: 8342688bca

Change-Id: I2013c8aadf3dacaa78a866f4178a23a00bc5aa39
2016-10-13 03:50:31 +00:00
Colin Cross e92e8abe10 Control mutator order am: 1e676bef94
am: d309a15b9d

Change-Id: I8ba6e0773fe2d4af6f3ea86ecfc4068d60955b88
2016-10-13 03:50:29 +00:00
Colin Cross 8342688bca Add a Name property
am: fc754581fc

Change-Id: I3c03bf27b7de5f5f3fffc7762180cae5176a7648
2016-10-13 03:43:29 +00:00
Colin Cross d309a15b9d Control mutator order
am: 1e676bef94

Change-Id: I7d7b50c83a9542afe316cdc54795809a3c92e9e5
2016-10-13 03:43:27 +00:00
Colin Cross 7516981e73 Move registration into android package am: 798bfce9d0 am: 873affb471
am: 9e9ed4e2e2

Change-Id: Ia9435c6a028b511dc94ee4aea1c55bd5ef0963b7
2016-10-13 00:27:26 +00:00
Colin Cross fc754581fc Add a Name property
Blueprint is going to abdicate responsibility for determining the name
of a module.  Add a name property, and a method to retreive the name.

Test: build.ninja identical
Change-Id: I09c6f5283cd6e28ad4b04c24c5ab8b00f71ae2ab
2016-10-12 17:24:49 -07:00
Colin Cross 9e9ed4e2e2 Move registration into android package am: 798bfce9d0
am: 873affb471

Change-Id: I0ceb4d16d8bd054e28f2da0fa064154371226bfc
2016-10-13 00:19:56 +00:00
Colin Cross 873affb471 Move registration into android package
am: 798bfce9d0

Change-Id: Id0e399162173eb7b46e57969af31dd4621900d03
2016-10-13 00:12:47 +00:00
Colin Cross 1e676bef94 Control mutator order
Register mutators inside lambdas that are called in a defined order to
correctly order mutators before and after the arch and deps mutators.

Test: build.ninja identical
Change-Id: Iefe2a3515aee8570e76a6e76925db4cda0e9e822
2016-10-12 15:33:33 -07:00
Colin Cross 798bfce9d0 Move registration into android package
Mutator registration is tightly coupled with the android package, move
all registration from the soong package to the android package.

Test: build.ninja identical
Change-Id: Ie183d0b52cc7431c9e05b231934d189208ef1efe
2016-10-12 14:30:44 -07:00
Colin Cross 481273eb9c Merge "Move hardware/libhardware/include from -isystem to -I" am: 3f9bde87fb am: ddaee09318
am: cfef115558

Change-Id: Ib7ce1b35d13bbe91f6a1925a6fd704a2b63363d2
2016-10-09 01:22:46 +00:00
Colin Cross cfef115558 Merge "Move hardware/libhardware/include from -isystem to -I" am: 3f9bde87fb
am: ddaee09318

Change-Id: Ibf332a20fd015d191f41f2281fbc1fc4c93f3c89
2016-10-09 01:17:46 +00:00
Colin Cross ddaee09318 Merge "Move hardware/libhardware/include from -isystem to -I"
am: 3f9bde87fb

Change-Id: I0b2a234e30836a345fbac302ad39dd483e40f99a
2016-10-09 01:13:16 +00:00
Treehugger Robot 3f9bde87fb Merge "Move hardware/libhardware/include from -isystem to -I" 2016-10-09 01:05:31 +00:00