1# Copyright 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) 16 17# 18# libhdrplusclient 19# 20include $(CLEAR_VARS) 21 22LOCAL_SRC_FILES := \ 23 EaselManagerClient.cpp \ 24 HdrPlusClientUtils.cpp 25 26LOCAL_SHARED_LIBRARIES := liblog 27 28# For AOSP builds, use dummy implementation. 29ifeq ($(wildcard vendor/google_paintbox),) 30 LOCAL_CFLAGS += -DUSE_DUMMY_IMPL=1 31else 32ifneq ($(TARGET_EASEL_VARIANT), amber) 33 LOCAL_CFLAGS += -DUSE_DUMMY_IMPL=1 34else 35 LOCAL_CFLAGS += -DUSE_DUMMY_IMPL=0 36 LOCAL_SHARED_LIBRARIES += libhdrplusclientimpl 37endif 38endif 39 40LOCAL_HEADER_LIBRARIES := \ 41 libsystem_headers \ 42 libutils_headers 43LOCAL_EXPORT_HEADER_LIBRARY_HEADERS := \ 44 libutils_headers 45 46LOCAL_C_INCLUDES += \ 47 $(LOCAL_PATH)/include \ 48 hardware/google/easel/amber/camera/include 49 50LOCAL_CFLAGS += -Wall -Wextra -Werror 51 52LOCAL_EXPORT_C_INCLUDE_DIRS += \ 53 $(LOCAL_PATH)/include \ 54 hardware/google/easel/amber/camera/include 55 56LOCAL_MODULE:= libhdrplusclient 57LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0 58LOCAL_LICENSE_CONDITIONS:= notice 59LOCAL_PROPRIETARY_MODULE := true 60LOCAL_MODULE_OWNER := google 61 62include $(BUILD_SHARED_LIBRARY) 63