diff options
author | Dan Albert <danalbert@google.com> | 2016-10-28 15:11:15 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2016-10-28 15:11:15 -0700 |
commit | e15c08c681ff00dc3e270c9c0ad737e086abfd76 (patch) | |
tree | 4e82bb8b992dfbcee26f4d91e23f56a278ad5438 | |
parent | 65c0aaa266cf3da41fe64ab032e19d0dc8769f58 (diff) | |
download | platform_external_Microsoft-GSL-e15c08c681ff00dc3e270c9c0ad737e086abfd76.tar.gz platform_external_Microsoft-GSL-e15c08c681ff00dc3e270c9c0ad737e086abfd76.tar.bz2 platform_external_Microsoft-GSL-e15c08c681ff00dc3e270c9c0ad737e086abfd76.zip |
Add Android.bp.
Symlink include/gsl to gsl so we can expose the headers without
exposing the entire directory.
Test: We can't build their tests yet (import of the unittest library
is pending approval), but I made a quick test program to make
sure `gsl::not_null` was working as expected. I've also run
`ctest` after building for Linux, so we can at least be sure
that it at least works outside our build system.
Bug: http://b/24296825
Change-Id: Ie78c54f25e22809d3f16cd4dde5e7f2d582c81b3
-rw-r--r-- | Android.bp | 24 | ||||
l--------- | include/gsl | 1 |
2 files changed, 25 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..a8538b2 --- /dev/null +++ b/Android.bp @@ -0,0 +1,24 @@ +// +// Copyright (C) 2016 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// Header only. +cc_library_static { + name: "libgsl", + host_supported: true, + export_include_dirs: ["include"], +} + +// Tests pending approval of external/Microsoft-unittest-cpp: http://b/32512867 diff --git a/include/gsl b/include/gsl new file mode 120000 index 0000000..6096ae4 --- /dev/null +++ b/include/gsl @@ -0,0 +1 @@ +../gsl/
\ No newline at end of file |