blob: 1d5c85fe33a7c75d7b243db64c6fbf8a11b2bcaa [file] [log] [blame]
Yabin Cui2f272c02016-06-24 18:22:02 -07001# 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
15LOCAL_PATH := $(call my-dir)
16
Ethan Yonkerb5236502016-11-19 22:24:59 -060017ifeq ($(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)
26endif
27
Yabin Cui2f272c02016-06-24 18:22:02 -070028include $(CLEAR_VARS)
29LOCAL_CLANG := true
30LOCAL_SRC_FILES := bootloader_message.cpp
31LOCAL_MODULE := libbootloader_message
Ethan Yonkerb5236502016-11-19 22:24:59 -060032LOCAL_C_INCLUDES += bionic $(LOCAL_PATH)/include
33ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
34 LOCAL_C_INCLUDES += external/stlport/stlport
35 LOCAL_SHARED_LIBRARIES += libstlport
36else
37 LOCAL_SHARED_LIBRARIES += libc++
38endif
39LOCAL_CFLAGS := -DEXCLUDE_FS_MGR
nailyk-fr1021edf2016-12-18 14:32:25 +010040# ignore bootloader's factory reset command even when written to /misc
41ifeq ($(TW_IGNORE_MISC_WIPE_DATA), true)
42 LOCAL_CFLAGS += -DIGNORE_MISC_WIPE_DATA
43endif
Yabin Cui2f272c02016-06-24 18:22:02 -070044LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
Ethan Yonkerb5236502016-11-19 22:24:59 -060045include $(BUILD_SHARED_LIBRARY)