From e15c08c681ff00dc3e270c9c0ad737e086abfd76 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Fri, 28 Oct 2016 15:11:15 -0700 Subject: 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 --- Android.bp | 24 ++++++++++++++++++++++++ include/gsl | 1 + 2 files changed, 25 insertions(+) create mode 100644 Android.bp create mode 120000 include/gsl 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 -- cgit v1.2.3