blob: 0d84713c321be3ce26c46c0a91587d9fd0465871 [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
17include $(CLEAR_VARS)
18LOCAL_CLANG := true
19LOCAL_SRC_FILES := bootloader_message.cpp
20LOCAL_MODULE := libbootloader_message
21LOCAL_STATIC_LIBRARIES := libbase libfs_mgr
Tianjie Xu17e316c2016-09-28 11:42:17 -070022LOCAL_CFLAGS := -Werror
Ethan Yonker8373cfe2017-09-08 06:50:54 -050023ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 26; echo $$?),0)
24 TARGET_GLOBAL_CFLAGS += -DUSE_OLD_BOOTLOADER_MESSAGE
25 CLANG_TARGET_GLOBAL_CFLAGS += -DUSE_OLD_BOOTLOADER_MESSAGE
Ethan Yonkerb5236502016-11-19 22:24:59 -060026endif
Yabin Cui2f272c02016-06-24 18:22:02 -070027LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
28LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
29include $(BUILD_STATIC_LIBRARY)