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