Tianjie Xu | 8cf5c8f | 2016-09-08 20:10:11 -0700 | [diff] [blame] | 1 | # 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 | |
| 15 | LOCAL_PATH := $(call my-dir) |
| 16 | include $(CLEAR_VARS) |
| 17 | |
| 18 | LOCAL_SRC_FILES := \ |
| 19 | SysUtil.cpp \ |
| 20 | DirUtil.cpp \ |
Tianjie Xu | d8df548 | 2017-03-28 21:39:08 +0000 | [diff] [blame] | 21 | ZipUtil.cpp \ |
| 22 | ThermalUtil.cpp |
Tianjie Xu | 8cf5c8f | 2016-09-08 20:10:11 -0700 | [diff] [blame] | 23 | |
Tianjie Xu | d8df548 | 2017-03-28 21:39:08 +0000 | [diff] [blame] | 24 | LOCAL_STATIC_LIBRARIES := \ |
| 25 | libselinux \ |
| 26 | libbase |
Tianjie Xu | 8cf5c8f | 2016-09-08 20:10:11 -0700 | [diff] [blame] | 27 | |
Humberto Borba | 3cacbfd | 2018-01-11 17:01:53 -0200 | [diff] [blame] | 28 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 26; echo $$?),0) |
| 29 | # Android 8.1 header |
| 30 | LOCAL_C_INCLUDES += \ |
| 31 | system/core/libziparchive/include |
| 32 | endif |
| 33 | |
Tianjie Xu | 8cf5c8f | 2016-09-08 20:10:11 -0700 | [diff] [blame] | 34 | LOCAL_MODULE := libotautil |
Tianjie Xu | d8df548 | 2017-03-28 21:39:08 +0000 | [diff] [blame] | 35 | LOCAL_CFLAGS := \ |
| 36 | -Werror \ |
| 37 | -Wall |
Tianjie Xu | 8cf5c8f | 2016-09-08 20:10:11 -0700 | [diff] [blame] | 38 | |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 39 | LOCAL_C_INCLUDES := include |
| 40 | |
Tianjie Xu | 8cf5c8f | 2016-09-08 20:10:11 -0700 | [diff] [blame] | 41 | include $(BUILD_STATIC_LIBRARY) |