blob: d0b1174a4a91eaca448e551afbbb2bd4f7466fed [file] [log] [blame]
Jed Estepff6df892015-12-15 16:04:53 -08001# Copyright 2015 The Android Open Source Project
Jed Estepa7b9a462015-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 Estepff6df892015-12-15 16:04:53 -08007# http://www.apache.org/licenses/LICENSE-2.0
Jed Estepa7b9a462015-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 Estepa7b9a462015-12-15 16:04:53 -080017include $(CLEAR_VARS)
18
Jed Estepff6df892015-12-15 16:04:53 -080019otafault_static_libs := \
Jed Estep88dd7792016-03-22 15:25:27 -070020 libbase \
Jed Estepff6df892015-12-15 16:04:53 -080021 libminzip \
22 libz \
Jed Estep88dd7792016-03-22 15:25:27 -070023 libselinux
Jed Estepff6df892015-12-15 16:04:53 -080024
25LOCAL_SRC_FILES := config.cpp ota_io.cpp
Jed Estepf1fc48c2015-12-15 16:04:53 -080026LOCAL_MODULE_TAGS := eng
Jed Estepa7b9a462015-12-15 16:04:53 -080027LOCAL_MODULE := libotafault
28LOCAL_CLANG := true
Jed Estepff6df892015-12-15 16:04:53 -080029LOCAL_C_INCLUDES := bootable/recovery
30LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
31LOCAL_WHOLE_STATIC_LIBRARIES := $(otafault_static_libs)
Jed Estepa7b9a462015-12-15 16:04:53 -080032
33include $(BUILD_STATIC_LIBRARY)
34
Tao Baod80a9982016-03-03 11:43:47 -080035# otafault_test (static executable)
36# ===============================
Jed Estepa7b9a462015-12-15 16:04:53 -080037include $(CLEAR_VARS)
38
Jed Estepff6df892015-12-15 16:04:53 -080039LOCAL_SRC_FILES := config.cpp ota_io.cpp test.cpp
Jed Estepa7b9a462015-12-15 16:04:53 -080040LOCAL_MODULE_TAGS := tests
41LOCAL_MODULE := otafault_test
Jed Estepff6df892015-12-15 16:04:53 -080042LOCAL_STATIC_LIBRARIES := $(otafault_static_libs)
43LOCAL_C_INCLUDES := bootable/recovery
Jed Estepa7b9a462015-12-15 16:04:53 -080044LOCAL_FORCE_STATIC_EXECUTABLE := true
Jed Estepa7b9a462015-12-15 16:04:53 -080045
46include $(BUILD_EXECUTABLE)