Jed Estep | 39c1b5e | 2015-12-15 16:04:53 -0800 | [diff] [blame] | 1 | # Copyright 2015 The Android Open Source Project |
Jed Estep | a7b9a46 | 2015-12-15 16:04:53 -0800 | [diff] [blame] | 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 | # |
Jed Estep | 39c1b5e | 2015-12-15 16:04:53 -0800 | [diff] [blame] | 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
Jed Estep | a7b9a46 | 2015-12-15 16:04:53 -0800 | [diff] [blame] | 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 languae governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | LOCAL_PATH := $(call my-dir) |
| 16 | |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 17 | # otafault (static library) |
| 18 | # =============================== |
Jed Estep | a7b9a46 | 2015-12-15 16:04:53 -0800 | [diff] [blame] | 19 | include $(CLEAR_VARS) |
| 20 | |
Jed Estep | 39c1b5e | 2015-12-15 16:04:53 -0800 | [diff] [blame] | 21 | otafault_static_libs := \ |
| 22 | libminzip \ |
Jed Estep | 39c1b5e | 2015-12-15 16:04:53 -0800 | [diff] [blame] | 23 | libselinux \ |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 24 | libz |
Jed Estep | 39c1b5e | 2015-12-15 16:04:53 -0800 | [diff] [blame] | 25 | |
| 26 | LOCAL_SRC_FILES := config.cpp ota_io.cpp |
Jed Estep | a7b9a46 | 2015-12-15 16:04:53 -0800 | [diff] [blame] | 27 | LOCAL_MODULE := libotafault |
| 28 | LOCAL_CLANG := true |
Jed Estep | 39c1b5e | 2015-12-15 16:04:53 -0800 | [diff] [blame] | 29 | LOCAL_C_INCLUDES := bootable/recovery |
| 30 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 31 | LOCAL_STATIC_LIBRARIES := $(otafault_static_libs) |
Jed Estep | a7b9a46 | 2015-12-15 16:04:53 -0800 | [diff] [blame] | 32 | |
| 33 | include $(BUILD_STATIC_LIBRARY) |
| 34 | |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 35 | # otafault_test (static executable) |
| 36 | # =============================== |
Jed Estep | a7b9a46 | 2015-12-15 16:04:53 -0800 | [diff] [blame] | 37 | include $(CLEAR_VARS) |
| 38 | |
Jed Estep | 39c1b5e | 2015-12-15 16:04:53 -0800 | [diff] [blame] | 39 | LOCAL_SRC_FILES := config.cpp ota_io.cpp test.cpp |
Jed Estep | a7b9a46 | 2015-12-15 16:04:53 -0800 | [diff] [blame] | 40 | LOCAL_MODULE_TAGS := tests |
| 41 | LOCAL_MODULE := otafault_test |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 42 | LOCAL_STATIC_LIBRARIES := \ |
| 43 | libotafault \ |
| 44 | $(otafault_static_libs) |
Jed Estep | 39c1b5e | 2015-12-15 16:04:53 -0800 | [diff] [blame] | 45 | LOCAL_C_INCLUDES := bootable/recovery |
Jed Estep | a7b9a46 | 2015-12-15 16:04:53 -0800 | [diff] [blame] | 46 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
Jed Estep | a7b9a46 | 2015-12-15 16:04:53 -0800 | [diff] [blame] | 47 | |
| 48 | include $(BUILD_EXECUTABLE) |