blob: 50e385efb803ec7b0d3ac3d19a99bc03dc4b3cdd [file] [log] [blame]
Jed Estep39c1b5e2015-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 Estep39c1b5e2015-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
Tao Baod80a9982016-03-03 11:43:47 -080017# otafault (static library)
18# ===============================
Jed Estepa7b9a462015-12-15 16:04:53 -080019include $(CLEAR_VARS)
20
Jed Estep39c1b5e2015-12-15 16:04:53 -080021otafault_static_libs := \
Jed Estepe326b222016-03-22 15:25:27 -070022 libbase \
Jed Estep39c1b5e2015-12-15 16:04:53 -080023 libminzip \
Jed Estepe326b222016-03-22 15:25:27 -070024 libz \
25 libselinux
Jed Estep39c1b5e2015-12-15 16:04:53 -080026
27LOCAL_SRC_FILES := config.cpp ota_io.cpp
Jed Estepa7b9a462015-12-15 16:04:53 -080028LOCAL_MODULE := libotafault
29LOCAL_CLANG := true
Jed Estep39c1b5e2015-12-15 16:04:53 -080030LOCAL_C_INCLUDES := bootable/recovery
31LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
Tao Baod80a9982016-03-03 11:43:47 -080032LOCAL_STATIC_LIBRARIES := $(otafault_static_libs)
Jed Estepa7b9a462015-12-15 16:04:53 -080033
34include $(BUILD_STATIC_LIBRARY)
35
Tao Baod80a9982016-03-03 11:43:47 -080036# otafault_test (static executable)
37# ===============================
Jed Estepa7b9a462015-12-15 16:04:53 -080038include $(CLEAR_VARS)
39
Jed Estep39c1b5e2015-12-15 16:04:53 -080040LOCAL_SRC_FILES := config.cpp ota_io.cpp test.cpp
Jed Estepa7b9a462015-12-15 16:04:53 -080041LOCAL_MODULE_TAGS := tests
42LOCAL_MODULE := otafault_test
Tao Baod80a9982016-03-03 11:43:47 -080043LOCAL_STATIC_LIBRARIES := \
44 libotafault \
45 $(otafault_static_libs)
Jed Estep39c1b5e2015-12-15 16:04:53 -080046LOCAL_C_INCLUDES := bootable/recovery
Jed Estepa7b9a462015-12-15 16:04:53 -080047LOCAL_FORCE_STATIC_EXECUTABLE := true
Jed Estepa7b9a462015-12-15 16:04:53 -080048
49include $(BUILD_EXECUTABLE)