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_easel),) 30 LOCAL_CFLAGS += -DUSE_DUMMY_IMPL=1 31else 32 LOCAL_CFLAGS += -DUSE_DUMMY_IMPL=0 33 LOCAL_SHARED_LIBRARIES += libhdrplusclientimpl 34endif 35 36LOCAL_HEADER_LIBRARIES := \ 37 libsystem_headers \ 38 libutils_headers 39LOCAL_EXPORT_HEADER_LIBRARY_HEADERS := \ 40 libutils_headers 41 42LOCAL_C_INCLUDES += \ 43 $(LOCAL_PATH)/include \ 44 hardware/google/easel/camera/include 45 46LOCAL_CFLAGS += -Wall -Wextra -Werror 47 48LOCAL_EXPORT_C_INCLUDE_DIRS += \ 49 $(LOCAL_PATH)/include \ 50 hardware/google/easel/camera/include 51 52LOCAL_MODULE:= libhdrplusclient 53LOCAL_PROPRIETARY_MODULE := true 54LOCAL_MODULE_OWNER := google 55 56include $(BUILD_SHARED_LIBRARY) 57