diff options
author | Colin Cross <ccross@android.com> | 2016-12-09 14:46:15 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2016-12-13 14:50:51 -0800 |
commit | ab3b7323c4ca7880217d7bb3d422b27c8f716d87 (patch) | |
tree | 50180a888427b85060390a1d3d30ba21e7dedfd7 /cc/ndk_library.go | |
parent | 3b72295e02986a3341998b02b97f32aa8b283fa7 (diff) | |
download | build_soong-ab3b7323c4ca7880217d7bb3d422b27c8f716d87.tar.gz build_soong-ab3b7323c4ca7880217d7bb3d422b27c8f716d87.tar.bz2 build_soong-ab3b7323c4ca7880217d7bb3d422b27c8f716d87.zip |
Remove boolean arguments from NewLibrary()
NewLibrary is going to be used for header only libraries. Instead
of adding more boolean arguments, replace the existing ones with
BuildOnlyStatic and BuildOnlyShared calls on the libraryDecorator
returned by NewLibrary.
Test: m -j, compare build.ninja
Change-Id: Id390b66cbf2a5f0932b32f40a5e18eb9e3852ee7
Diffstat (limited to 'cc/ndk_library.go')
-rw-r--r-- | cc/ndk_library.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/ndk_library.go b/cc/ndk_library.go index f733515d..0e427313 100644 --- a/cc/ndk_library.go +++ b/cc/ndk_library.go @@ -277,7 +277,8 @@ func (stub *stubDecorator) install(ctx ModuleContext, path android.Path) { } func newStubLibrary() (*Module, []interface{}) { - module, library := NewLibrary(android.DeviceSupported, true, false) + module, library := NewLibrary(android.DeviceSupported) + library.BuildOnlyShared() module.stl = nil module.sanitize = nil library.StripProperties.Strip.None = true |