diff options
author | Mattias Nissler <mnissler@chromium.org> | 2015-12-11 15:08:47 +0100 |
---|---|---|
committer | Mattias Nissler <mnissler@google.com> | 2016-01-26 12:12:45 +0100 |
commit | 83514971432174f732c442f593dfee8eac4ad9e1 (patch) | |
tree | 6ef2a3d7a45352c24aab450007979e45d32dabde /Android.mk | |
parent | 1884df4fa9bcc7de1869c40aa448eb561be3f46a (diff) | |
download | nvram-83514971432174f732c442f593dfee8eac4ad9e1.tar.gz |
Add a Blob type to handle binary data.
This adds a simple Blob type, providing a simple RAII wrapper for a
dynamically-sized buffer of bytes. This is essentially a bare-bones
version of std::vector<uint8_t>, which we can't use in environments
that lack a complete standard library.
BUG: 25762536
Change-Id: Icff0b7efbf3497757e074581e45ddec9f84ca944
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..1e50052 --- /dev/null +++ b/Android.mk @@ -0,0 +1,27 @@ +# +# 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. +# + +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) +LOCAL_MODULE := libnvram +LOCAL_SRC_FILES := \ + blob.cpp +LOCAL_STATIC_LIBRARIES := libbase +LOCAL_CFLAGS := -Wall -Werror -Wextra -fvisibility=hidden +LOCAL_C_INCLUDES := $(LOCAL_PATH)/include +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include +include $(BUILD_SHARED_LIBRARY) |