blob: feb468de588dcea4cff5bc42b5b56f12f991fc8e [file] [log] [blame]
Tianjie Xu8cf5c8f2016-09-08 20:10:11 -07001# 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
15LOCAL_PATH := $(call my-dir)
16include $(CLEAR_VARS)
17
18LOCAL_SRC_FILES := \
19 SysUtil.cpp \
20 DirUtil.cpp \
Tianjie Xud8df5482017-03-28 21:39:08 +000021 ZipUtil.cpp \
22 ThermalUtil.cpp
Tianjie Xu8cf5c8f2016-09-08 20:10:11 -070023
Tianjie Xud8df5482017-03-28 21:39:08 +000024LOCAL_STATIC_LIBRARIES := \
25 libselinux \
26 libbase
Tianjie Xu8cf5c8f2016-09-08 20:10:11 -070027
Humberto Borba3cacbfd2018-01-11 17:01:53 -020028ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 26; echo $$?),0)
29# Android 8.1 header
30LOCAL_C_INCLUDES += \
31 system/core/libziparchive/include
32endif
33
Tianjie Xu8cf5c8f2016-09-08 20:10:11 -070034LOCAL_MODULE := libotautil
Tianjie Xud8df5482017-03-28 21:39:08 +000035LOCAL_CFLAGS := \
36 -Werror \
37 -Wall
Tianjie Xu8cf5c8f2016-09-08 20:10:11 -070038
Ethan Yonker58f21322018-08-24 11:17:36 -050039LOCAL_C_INCLUDES := include
40
Tianjie Xu8cf5c8f2016-09-08 20:10:11 -070041include $(BUILD_STATIC_LIBRARY)