x86_64 and mips64 NDK prebuilt libraries are stored in .../usr/lib64,
but arm64 and all the 32-bit ABIs use .../usr/lib. Add a 64 suffix to
the path for all 64-bit ABIs except arm64.
Change-Id: I98e87ff6a7f1aa75adbeb37c5b1e7208b953322f
Static_executable was still using ModifyProperties, and was otherwise
missing things. Fix all of that up, and implement HostStaticBinaries,
which is the equivalent of BUILD_HOST_static in Make. That will default
host binaries to be static, which is useful for building SDK tools to
run with incompatible C libraries.
Change-Id: I2a62181b5d854b310edc8ae7a6bcbd30b89e7463
am: 216a459ccc
* commit '216a459ccc782d9b47e5663b4c3b81f0e03e2739':
Export CONLYFLAGS and CPPFLAGS to Make
Change-Id: Ie8286de619a2a8b369376660613ed8e476389fca
am: 06f453359a
* commit '06f453359a6686e20d00e7ab661e39ce0e0e5bb5':
Export -D__BRILLO__ to make if necessary
Change-Id: I0b5236fe6a32c52e00e50d88b99928a1ad4ef6ad
am: b436fdee65
* commit 'b436fdee65b2ae27576b37f1f13a324bc9c7f51a':
Turn on strict checking for C[PP]FLAGS make vars
Change-Id: If75cd0402c85326307ef6d1657c3f8153f904a38
am: 3772da13fd
* commit '3772da13fd9b4d1f0aec35c73883c1cb5b60fd35':
Don't use -B...gcc.. on Darwin
Change-Id: Iad450b34cc85054b573ec0c2b8537414def9ef52
We don't ship binutils on Darwin, so there is no point in telling clang
to look in that path. (The path being used doesn't even exist). This
matches the Make behavior.
Change-Id: I663047057ff8df8a349483532da8018af13d50d8
am: 1e45ef6823
* commit '1e45ef6823b54965d19da3a33404955d8a9a2e13':
Create empty .a on Darwin when there is no obj file.
Change-Id: I52a972558c7fb94eb31aef8ea9146fd578a9b709
am: 4a94683a60
* commit '4a94683a60ab44c520628f381c9cf63496b3e62e':
Don't use GTEST_OS_LINUX on Darwin
Change-Id: I0fc3ec973a6efc849a1c476c974f9f70af2fa4b8
On Darwin ar would fail if there is no object file to add.
We work around by adding a dummy.o.
Port to Soong of build/ 4aaa1a1fd8e7eb23ac5557cd326d1a48efdb54cd
Change-Id: I68bbebea2726058c25863d7026a645a520d05167
There's a different libgtest to use for NDK libraries built with
different STLs. And we no longer need to add the gtest include path, as
it's exported.
Change-Id: I2f804cf98e074cfd4ea6b70a445e304a8a8bce50
am: 2630213418
* commit '2630213418aa7523ffabfd79c8ac9de3dde53767':
Set LOCAL_PATH for each prebuilt module
Change-Id: Ie5ebd601e7d558f5d219e8968ca189be7db92fd7
Set LOCAL_PATH to the path to the blueprint file so that make can
generate MODULE-IN-* rules to make mma work. Switch to using
LOCAL_PREBUILT_MODULE_FILE instead of LOCAL_SRC_FILES to specify the
location of the prebuilts relative to $(TOP).
This should also make notice files work.
Change-Id: I51c7aa1187e68c4c9095687461dd5e76cbd7292d
am: e8b1bc0a68
* commit 'e8b1bc0a689322e2d8dcc92336af606b939c67c6':
Lock down environment variable access after all other singletons
Change-Id: I69fa02ef4ddd0e58e223328d62b07823b7e158bd
To allow other singletons to use new environment variables, move env.go
to the end of the source list, so that its singleton is run last.
Change-Id: Ic92308f72fc0c92a0fedbc5546e337940e32eaab
am: 0414479ba4
* commit '0414479ba4f26598a5557d2334b9f5ec58c772f8':
Include objs from whole static libs before local objs
Change-Id: I6421441336f37cbc165ff0eff652284e917eb8ca
For configuration like TARGET_GLOBAL_CFLAGS, it would be good to have
Make and Soong use the same values. This change adds an interface for
packages like cc to verify the current value of make variables match the
Soong equivalents, and once they're satisfied with the results, remove
the make definition and use the value from Soong.
The cc implementation exports a few variables currently that I expect to
match between both implementations in all cases. It also checks
{CLANG,}{HOST,TARGET}_GLOBAL_{C,LD}FLAGS, which should be mostly similar
between make and soong now.
Bug: 23566674
Change-Id: Idc8582ef31ace11a8baefcf525c3683f08a573aa
This way Make can use different output files for different targets, and
switch between them without having to reparse all the makefiles.
Change-Id: I00001a09d79025772d966f443ab9f130e35f4720
am: ac6697420a
* commit 'ac6697420aebc6e7f98d5a73c8d4c525bf8de419':
Move local ldflags after the toolchain ldflags
Change-Id: I4c2a0173026f86a215749b3031ae5da49b2ca0f9