Yabin Cui | 2f272c0 | 2016-06-24 18:22:02 -0700 | [diff] [blame] | 1 | # Copyright (C) 2016 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | LOCAL_PATH := $(call my-dir) |
| 16 | |
Ethan Yonker | b523650 | 2016-11-19 22:24:59 -0600 | [diff] [blame] | 17 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 25; echo $$?),0) |
| 18 | include $(CLEAR_VARS) |
| 19 | LOCAL_CLANG := true |
| 20 | LOCAL_SRC_FILES := bootloader_message.cpp |
| 21 | LOCAL_MODULE := libbootloader_message |
| 22 | LOCAL_STATIC_LIBRARIES := libfs_mgr |
| 23 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
| 24 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| 25 | include $(BUILD_STATIC_LIBRARY) |
| 26 | endif |
| 27 | |
Yabin Cui | 2f272c0 | 2016-06-24 18:22:02 -0700 | [diff] [blame] | 28 | include $(CLEAR_VARS) |
| 29 | LOCAL_CLANG := true |
| 30 | LOCAL_SRC_FILES := bootloader_message.cpp |
| 31 | LOCAL_MODULE := libbootloader_message |
Ethan Yonker | b523650 | 2016-11-19 22:24:59 -0600 | [diff] [blame] | 32 | LOCAL_C_INCLUDES += bionic $(LOCAL_PATH)/include |
| 33 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0) |
| 34 | LOCAL_C_INCLUDES += external/stlport/stlport |
| 35 | LOCAL_SHARED_LIBRARIES += libstlport |
| 36 | else |
| 37 | LOCAL_SHARED_LIBRARIES += libc++ |
| 38 | endif |
| 39 | LOCAL_CFLAGS := -DEXCLUDE_FS_MGR |
Yabin Cui | 2f272c0 | 2016-06-24 18:22:02 -0700 | [diff] [blame] | 40 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
Ethan Yonker | b523650 | 2016-11-19 22:24:59 -0600 | [diff] [blame] | 41 | include $(BUILD_SHARED_LIBRARY) |