1202a77d28ac251545f6f998a974690212309b927Iliyan Malchev# Copyright (C) 2008 The Android Open Source Project
2202a77d28ac251545f6f998a974690212309b927Iliyan Malchev#
3202a77d28ac251545f6f998a974690212309b927Iliyan Malchev# Licensed under the Apache License, Version 2.0 (the "License");
4202a77d28ac251545f6f998a974690212309b927Iliyan Malchev# you may not use this file except in compliance with the License.
5202a77d28ac251545f6f998a974690212309b927Iliyan Malchev# You may obtain a copy of the License at
6202a77d28ac251545f6f998a974690212309b927Iliyan Malchev#
7202a77d28ac251545f6f998a974690212309b927Iliyan Malchev#      http://www.apache.org/licenses/LICENSE-2.0
8202a77d28ac251545f6f998a974690212309b927Iliyan Malchev#
9202a77d28ac251545f6f998a974690212309b927Iliyan Malchev# Unless required by applicable law or agreed to in writing, software
10202a77d28ac251545f6f998a974690212309b927Iliyan Malchev# distributed under the License is distributed on an "AS IS" BASIS,
11202a77d28ac251545f6f998a974690212309b927Iliyan Malchev# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12202a77d28ac251545f6f998a974690212309b927Iliyan Malchev# See the License for the specific language governing permissions and
13202a77d28ac251545f6f998a974690212309b927Iliyan Malchev# limitations under the License.
14202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
15ca3f7173ece307bcb647e0058d9fab5573558364Mathew Karimpanal# Gralloc module
164d35af868a667e7792cf54a62ded8df85ece8d03Naseer AhmedLOCAL_PATH := $(call my-dir)
174d35af868a667e7792cf54a62ded8df85ece8d03Naseer Ahmedinclude $(LOCAL_PATH)/../common.mk
18202a77d28ac251545f6f998a974690212309b927Iliyan Malchevinclude $(CLEAR_VARS)
1929a26818d7294055539167b2fbfdaa168bcf725cNaseer Ahmed
204d35af868a667e7792cf54a62ded8df85ece8d03Naseer AhmedLOCAL_MODULE                  := gralloc.$(TARGET_BOARD_PLATFORM)
214d35af868a667e7792cf54a62ded8df85ece8d03Naseer AhmedLOCAL_MODULE_PATH             := $(TARGET_OUT_SHARED_LIBRARIES)/hw
224d35af868a667e7792cf54a62ded8df85ece8d03Naseer AhmedLOCAL_MODULE_TAGS             := optional
2394a45fdaf8a1b27d9f98a8c062bfe6c8b5643f27Naseer AhmedLOCAL_C_INCLUDES              := $(common_includes) $(kernel_includes)
24aee73e2656d1176ee29d20218947fc3a379818b3Naseer AhmedLOCAL_SHARED_LIBRARIES        := $(common_libs) libmemalloc
254d35af868a667e7792cf54a62ded8df85ece8d03Naseer AhmedLOCAL_SHARED_LIBRARIES        += libqdutils libGLESv1_CM
26ca3f7173ece307bcb647e0058d9fab5573558364Mathew KarimpanalLOCAL_CFLAGS                  := $(common_flags) -DLOG_TAG=\"qdgralloc\"
2794a45fdaf8a1b27d9f98a8c062bfe6c8b5643f27Naseer AhmedLOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) $(kernel_deps)
28bbde31b47f982cff5bd154c0298181d390b394eeNaseer AhmedLOCAL_SRC_FILES               := gpu.cpp gralloc.cpp framebuffer.cpp mapper.cpp
29bbde31b47f982cff5bd154c0298181d390b394eeNaseer AhmedLOCAL_COPY_HEADERS_TO         := $(common_header_export_path)
30bbde31b47f982cff5bd154c0298181d390b394eeNaseer AhmedLOCAL_COPY_HEADERS            := gralloc_priv.h
31ca3f7173ece307bcb647e0058d9fab5573558364Mathew Karimpanal
32202a77d28ac251545f6f998a974690212309b927Iliyan Malchevinclude $(BUILD_SHARED_LIBRARY)
33202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
34ca3f7173ece307bcb647e0058d9fab5573558364Mathew Karimpanal# MemAlloc Library
35202a77d28ac251545f6f998a974690212309b927Iliyan Malchevinclude $(CLEAR_VARS)
36ca3f7173ece307bcb647e0058d9fab5573558364Mathew Karimpanal
3794a45fdaf8a1b27d9f98a8c062bfe6c8b5643f27Naseer AhmedLOCAL_MODULE                  := libmemalloc
3894a45fdaf8a1b27d9f98a8c062bfe6c8b5643f27Naseer AhmedLOCAL_MODULE_TAGS             := optional
3994a45fdaf8a1b27d9f98a8c062bfe6c8b5643f27Naseer AhmedLOCAL_C_INCLUDES              := $(common_includes) $(kernel_includes)
40aee73e2656d1176ee29d20218947fc3a379818b3Naseer AhmedLOCAL_SHARED_LIBRARIES        := $(common_libs) libqdutils libdl
41ca3f7173ece307bcb647e0058d9fab5573558364Mathew KarimpanalLOCAL_CFLAGS                  := $(common_flags) -DLOG_TAG=\"qdmemalloc\"
4294a45fdaf8a1b27d9f98a8c062bfe6c8b5643f27Naseer AhmedLOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) $(kernel_deps)
43bbde31b47f982cff5bd154c0298181d390b394eeNaseer AhmedLOCAL_SRC_FILES               := ionalloc.cpp alloc_controller.cpp
44ca3f7173ece307bcb647e0058d9fab5573558364Mathew Karimpanal
45202a77d28ac251545f6f998a974690212309b927Iliyan Malchevinclude $(BUILD_SHARED_LIBRARY)
46