1 # 2 # Copyright 2016 The Android Open Source Project 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 # 16 17 LOCAL_PATH := $(call my-dir) 18 19 gpt_utils_common_cflags := -Wall -Werror -Wno-unused-variable 20 21 include $(CLEAR_VARS) 22 LOCAL_SRC_FILES := gpt-utils.cpp 23 ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true) 24 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include 25 LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr 26 endif 27 LOCAL_SHARED_LIBRARIES := liblog libz 28 LOCAL_MODULE := libgptutils 29 LOCAL_MODULE_OWNER := qti 30 LOCAL_CFLAGS := $(gpt_utils_common_cflags) 31 include $(BUILD_STATIC_LIBRARY) 32 33 include $(CLEAR_VARS) 34 LOCAL_SRC_FILES := gpt-utils.cpp 35 ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true) 36 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include 37 LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr 38 endif 39 LOCAL_SHARED_LIBRARIES += liblog libcutils libz 40 LOCAL_MODULE := libgptutils 41 LOCAL_PROPRIETARY_MODULE := true 42 43 LOCAL_MODULE_OWNER := qti 44 LOCAL_COPY_HEADERS_TO := gpt-utils/inc 45 LOCAL_COPY_HEADERS := gpt-utils.h 46 LOCAL_CFLAGS := $(gpt_utils_common_cflags) 47 include $(BUILD_SHARED_LIBRARY) 48