diff options
author | Dan Albert <danalbert@google.com> | 2015-03-18 14:01:18 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-03-18 23:39:02 -0700 |
commit | c403f7ce6dc31d4f39af25862b782508e2cf1026 (patch) | |
tree | 2cfda3b514855268ea1a3077a9945f8afa7faf8b /cmd | |
parent | 512e24f4418ed33838f694de8968d2efa52897f2 (diff) | |
download | build_soong-c403f7ce6dc31d4f39af25862b782508e2cf1026.tar.gz build_soong-c403f7ce6dc31d4f39af25862b782508e2cf1026.tar.bz2 build_soong-c403f7ce6dc31d4f39af25862b782508e2cf1026.zip |
Add support for cc_test.
This behaves slightly differently than it does in the make based build.
1. The make based build manually passes -DGTEST_OS_ANDROID (or
whatever). gtest-port.h already has logic that does this, so it's a
no-op.
2. Host libraries are named identically, rather than libgtest_host.
Change-Id: Ic40a1025c698611d202cb7c8ec45abd8fe130065
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/soong_build/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/soong_build/main.go b/cmd/soong_build/main.go index 5c954a92..d158f75e 100644 --- a/cmd/soong_build/main.go +++ b/cmd/soong_build/main.go @@ -42,6 +42,7 @@ func main() { ctx.RegisterModuleType("cc_library", cc.NewCCLibrary) ctx.RegisterModuleType("cc_object", cc.NewCCObject) ctx.RegisterModuleType("cc_binary", cc.NewCCBinary) + ctx.RegisterModuleType("cc_test", cc.NewCCTest) ctx.RegisterModuleType("toolchain_library", cc.NewToolchainLibrary) |