1a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopian# Copyright (C) 2008 The Android Open Source Project 2a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopian# 3a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopian# Licensed under the Apache License, Version 2.0 (the "License"); 4a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopian# you may not use this file except in compliance with the License. 5a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopian# You may obtain a copy of the License at 6a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopian# 7a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopian# http://www.apache.org/licenses/LICENSE-2.0 8a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopian# 9a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopian# Unless required by applicable law or agreed to in writing, software 10a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopian# distributed under the License is distributed on an "AS IS" BASIS, 11a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopian# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopian# See the License for the specific language governing permissions and 13a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopian# limitations under the License. 14a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopian 15a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopian 16a8a75166a2d3c7639a7432a67075c98796165206Mathias AgopianLOCAL_PATH := $(call my-dir) 17a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopian 1814e3641c32377daabb1e2bf5940957bc9fd04a98Iliyan Malchev# HAL module implemenation stored in 19a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopian# hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so 20a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopianinclude $(CLEAR_VARS) 2114e3641c32377daabb1e2bf5940957bc9fd04a98Iliyan Malchev 223557abaae2e43428da7559e0a12fb6bd325fab37Colin CrossLOCAL_MODULE_RELATIVE_PATH := hw 23c535b2fdedf61ac4c0e08d9bf005a3769da01ec8Po-Chien HsuehLOCAL_PROPRIETARY_MODULE := true 24a8a75166a2d3c7639a7432a67075c98796165206Mathias AgopianLOCAL_SHARED_LIBRARIES := liblog libcutils 258c4ab1fa14cc13c324bde91c0271f9ab5f4663d3Mathias Agopian 268c4ab1fa14cc13c324bde91c0271f9ab5f4663d3Mathias AgopianLOCAL_SRC_FILES := \ 278c4ab1fa14cc13c324bde91c0271f9ab5f4663d3Mathias Agopian gralloc.cpp \ 288c4ab1fa14cc13c324bde91c0271f9ab5f4663d3Mathias Agopian framebuffer.cpp \ 298c4ab1fa14cc13c324bde91c0271f9ab5f4663d3Mathias Agopian mapper.cpp 30febaaa937f2bb08197ab5636afce210028357888Colin Cross 31e7722d4e3fa8bee3e700cb2e33b72678a1cb1cc9Steven MorelandLOCAL_HEADER_LIBRARIES := libhardware_headers 32e7722d4e3fa8bee3e700cb2e33b72678a1cb1cc9Steven Moreland 33a8a75166a2d3c7639a7432a67075c98796165206Mathias AgopianLOCAL_MODULE := gralloc.default 34febaaa937f2bb08197ab5636afce210028357888Colin CrossLOCAL_CFLAGS:= -DLOG_TAG=\"gralloc\" -Wno-missing-field-initializers 355641642a207fdd21175d2134316c4da34db3e9e9Bernhard Rosenkraenzerifeq ($(TARGET_USE_PAN_DISPLAY),true) 365641642a207fdd21175d2134316c4da34db3e9e9Bernhard RosenkraenzerLOCAL_CFLAGS += -DUSE_PAN_DISPLAY=1 375641642a207fdd21175d2134316c4da34db3e9e9Bernhard Rosenkraenzerendif 38118b5d7961a4abc29c8bd592956007f40ad4fc6dJean-Baptiste Queru 39a8a75166a2d3c7639a7432a67075c98796165206Mathias Agopianinclude $(BUILD_SHARED_LIBRARY) 40