blob: 753f00aa3a35011556606f3fa8a6751df10ec8e5 [file] [log] [blame]
#
# Copyright 2015 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_CFLAGS += \
-DLOG_TAG=\"cbmanager\" \
-Werror \
ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST))
LOCAL_CFLAGS += \
-DHOST_BUILD \
LOCAL_SRC_FILES := host.cpp
else
LOCAL_SHARED_LIBRARIES += \
liblog \
libcutils \
libutils \
libhidlbase \
android.hardware.graphics.mapper@2.0 \
android.hardware.graphics.mapper@3.0 \
android.hardware.graphics.allocator@2.0 \
android.hardware.graphics.allocator@3.0 \
LOCAL_CFLAGS += \
-DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) \
LOCAL_SRC_FILES := hidl.cpp
endif
LOCAL_C_INCLUDES += \
device/generic/goldfish-opengl/system/include \
device/generic/goldfish-opengl/shared/OpenglCodecCommon \
LOCAL_MODULE := libcbmanager
LOCAL_VENDOR_MODULE := true
include $(BUILD_SHARED_LIBRARY)