blob: 7468de6c4d26e91aaf6dd971916eee7105b9b5c9 [file] [log] [blame]
Jed Estepd9408872015-12-15 16:04:53 -08001# Copyright 2015 The Android Open Source Project
Jed Estepf1fc48c2015-12-15 16:04:53 -08002#
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#
Jed Estepd9408872015-12-15 16:04:53 -08007# http://www.apache.org/licenses/LICENSE-2.0
Jed Estepf1fc48c2015-12-15 16:04:53 -08008#
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 languae governing permissions and
13# limitations under the License.
14
15LOCAL_PATH := $(call my-dir)
16
Jed Estepf1fc48c2015-12-15 16:04:53 -080017include $(CLEAR_VARS)
18
Jed Estepd9408872015-12-15 16:04:53 -080019otafault_static_libs := \
20 libminzip \
21 libz \
22 libselinux \
23
24LOCAL_SRC_FILES := config.cpp ota_io.cpp
Jed Estepf1fc48c2015-12-15 16:04:53 -080025LOCAL_MODULE_TAGS := eng
26LOCAL_MODULE := libotafault
27LOCAL_CLANG := true
Jed Estepd9408872015-12-15 16:04:53 -080028LOCAL_C_INCLUDES := bootable/recovery
29LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
30LOCAL_WHOLE_STATIC_LIBRARIES := $(otafault_static_libs)
Jed Estepf1fc48c2015-12-15 16:04:53 -080031
32include $(BUILD_STATIC_LIBRARY)
33
34include $(CLEAR_VARS)
35
Jed Estepd9408872015-12-15 16:04:53 -080036LOCAL_SRC_FILES := config.cpp ota_io.cpp test.cpp
Jed Estepf1fc48c2015-12-15 16:04:53 -080037LOCAL_MODULE_TAGS := tests
38LOCAL_MODULE := otafault_test
Jed Estepd9408872015-12-15 16:04:53 -080039LOCAL_STATIC_LIBRARIES := $(otafault_static_libs)
40LOCAL_C_INCLUDES := bootable/recovery
Jed Estepf1fc48c2015-12-15 16:04:53 -080041LOCAL_FORCE_STATIC_EXECUTABLE := true
Jed Estepf1fc48c2015-12-15 16:04:53 -080042
43include $(BUILD_EXECUTABLE)