Android.mk revision f90f2f8dc36e7243b85e0b6a7fd5a590893c827e
116c4d154dca43c662571129af31b27433b919a32Adam Lesinski# Copyright (C) 2010 The Android Open Source Project
216c4d154dca43c662571129af31b27433b919a32Adam Lesinski#
316c4d154dca43c662571129af31b27433b919a32Adam Lesinski# Licensed under the Apache License, Version 2.0 (the "License");
416c4d154dca43c662571129af31b27433b919a32Adam Lesinski# you may not use this file except in compliance with the License.
516c4d154dca43c662571129af31b27433b919a32Adam Lesinski# You may obtain a copy of the License at
616c4d154dca43c662571129af31b27433b919a32Adam Lesinski#
716c4d154dca43c662571129af31b27433b919a32Adam Lesinski#      http://www.apache.org/licenses/LICENSE-2.0
816c4d154dca43c662571129af31b27433b919a32Adam Lesinski#
916c4d154dca43c662571129af31b27433b919a32Adam Lesinski# Unless required by applicable law or agreed to in writing, software
1016c4d154dca43c662571129af31b27433b919a32Adam Lesinski# distributed under the License is distributed on an "AS IS" BASIS,
1116c4d154dca43c662571129af31b27433b919a32Adam Lesinski# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1216c4d154dca43c662571129af31b27433b919a32Adam Lesinski# See the License for the specific language governing permissions and
1316c4d154dca43c662571129af31b27433b919a32Adam Lesinski# limitations under the License.
1416c4d154dca43c662571129af31b27433b919a32Adam Lesinski
1516c4d154dca43c662571129af31b27433b919a32Adam LesinskiLOCAL_PATH:= $(call my-dir)
1616c4d154dca43c662571129af31b27433b919a32Adam Lesinski
1716c4d154dca43c662571129af31b27433b919a32Adam Lesinski# libandroidfw is partially built for the host (used by obbtool and others)
1816c4d154dca43c662571129af31b27433b919a32Adam Lesinski# These files are common to host and target builds.
1916c4d154dca43c662571129af31b27433b919a32Adam Lesinski
2016c4d154dca43c662571129af31b27433b919a32Adam LesinskicommonSources := \
2116c4d154dca43c662571129af31b27433b919a32Adam Lesinski    Asset.cpp \
2216c4d154dca43c662571129af31b27433b919a32Adam Lesinski    AssetDir.cpp \
2316c4d154dca43c662571129af31b27433b919a32Adam Lesinski    AssetManager.cpp \
2416c4d154dca43c662571129af31b27433b919a32Adam Lesinski    misc.cpp \
2516c4d154dca43c662571129af31b27433b919a32Adam Lesinski    ObbFile.cpp \
2616c4d154dca43c662571129af31b27433b919a32Adam Lesinski    ResourceTypes.cpp \
2716c4d154dca43c662571129af31b27433b919a32Adam Lesinski    StreamingZipInflater.cpp \
28f90f2f8dc36e7243b85e0b6a7fd5a590893c827eAdam Lesinski    TypeWrappers.cpp \
2916c4d154dca43c662571129af31b27433b919a32Adam Lesinski    ZipFileRO.cpp \
3016c4d154dca43c662571129af31b27433b919a32Adam Lesinski    ZipUtils.cpp
3116c4d154dca43c662571129af31b27433b919a32Adam Lesinski
3216c4d154dca43c662571129af31b27433b919a32Adam LesinskideviceSources := \
3316c4d154dca43c662571129af31b27433b919a32Adam Lesinski    $(commonSources) \
3416c4d154dca43c662571129af31b27433b919a32Adam Lesinski    BackupData.cpp \
3516c4d154dca43c662571129af31b27433b919a32Adam Lesinski    BackupHelpers.cpp \
3616c4d154dca43c662571129af31b27433b919a32Adam Lesinski    CursorWindow.cpp
3716c4d154dca43c662571129af31b27433b919a32Adam Lesinski
3816c4d154dca43c662571129af31b27433b919a32Adam LesinskihostSources := \
3916c4d154dca43c662571129af31b27433b919a32Adam Lesinski    $(commonSources)
4016c4d154dca43c662571129af31b27433b919a32Adam Lesinski
4116c4d154dca43c662571129af31b27433b919a32Adam Lesinski# For the host
4216c4d154dca43c662571129af31b27433b919a32Adam Lesinski# =====================================================
4316c4d154dca43c662571129af31b27433b919a32Adam Lesinski
4416c4d154dca43c662571129af31b27433b919a32Adam Lesinskiinclude $(CLEAR_VARS)
4516c4d154dca43c662571129af31b27433b919a32Adam Lesinski
4616c4d154dca43c662571129af31b27433b919a32Adam LesinskiLOCAL_SRC_FILES:= $(hostSources)
4716c4d154dca43c662571129af31b27433b919a32Adam Lesinski
4816c4d154dca43c662571129af31b27433b919a32Adam LesinskiLOCAL_MODULE:= libandroidfw
4916c4d154dca43c662571129af31b27433b919a32Adam Lesinski
5016c4d154dca43c662571129af31b27433b919a32Adam LesinskiLOCAL_MODULE_TAGS := optional
5116c4d154dca43c662571129af31b27433b919a32Adam Lesinski
5216c4d154dca43c662571129af31b27433b919a32Adam LesinskiLOCAL_CFLAGS += -DSTATIC_ANDROIDFW_FOR_TOOLS
5316c4d154dca43c662571129af31b27433b919a32Adam Lesinski
5416c4d154dca43c662571129af31b27433b919a32Adam LesinskiLOCAL_C_INCLUDES := \
5516c4d154dca43c662571129af31b27433b919a32Adam Lesinski	external/zlib
5616c4d154dca43c662571129af31b27433b919a32Adam Lesinski
5790f58dbf79057b185b04c5003c8bcae10116409bNarayan KamathLOCAL_STATIC_LIBRARIES := liblog libziparchive-host libutils
5816c4d154dca43c662571129af31b27433b919a32Adam Lesinski
5916c4d154dca43c662571129af31b27433b919a32Adam Lesinskiinclude $(BUILD_HOST_STATIC_LIBRARY)
6016c4d154dca43c662571129af31b27433b919a32Adam Lesinski
6116c4d154dca43c662571129af31b27433b919a32Adam Lesinski
6216c4d154dca43c662571129af31b27433b919a32Adam Lesinski# For the device
6316c4d154dca43c662571129af31b27433b919a32Adam Lesinski# =====================================================
6416c4d154dca43c662571129af31b27433b919a32Adam Lesinski
6516c4d154dca43c662571129af31b27433b919a32Adam Lesinskiinclude $(CLEAR_VARS)
6616c4d154dca43c662571129af31b27433b919a32Adam Lesinski
6716c4d154dca43c662571129af31b27433b919a32Adam LesinskiLOCAL_SRC_FILES:= $(deviceSources)
6816c4d154dca43c662571129af31b27433b919a32Adam Lesinski
6916c4d154dca43c662571129af31b27433b919a32Adam LesinskiLOCAL_SHARED_LIBRARIES := \
7016c4d154dca43c662571129af31b27433b919a32Adam Lesinski	libbinder \
7116c4d154dca43c662571129af31b27433b919a32Adam Lesinski	liblog \
7216c4d154dca43c662571129af31b27433b919a32Adam Lesinski	libcutils \
7316c4d154dca43c662571129af31b27433b919a32Adam Lesinski	libutils \
7416c4d154dca43c662571129af31b27433b919a32Adam Lesinski	libz
7516c4d154dca43c662571129af31b27433b919a32Adam Lesinski
76560566d2915c03bed338fc532ac7f7aa3620cfdfNarayan KamathLOCAL_STATIC_LIBRARIES := libziparchive
77560566d2915c03bed338fc532ac7f7aa3620cfdfNarayan Kamath
7816c4d154dca43c662571129af31b27433b919a32Adam LesinskiLOCAL_C_INCLUDES := \
7916c4d154dca43c662571129af31b27433b919a32Adam Lesinski    external/icu4c/common \
80560566d2915c03bed338fc532ac7f7aa3620cfdfNarayan Kamath    external/zlib \
81560566d2915c03bed338fc532ac7f7aa3620cfdfNarayan Kamath    system/core/include
8216c4d154dca43c662571129af31b27433b919a32Adam Lesinski
8316c4d154dca43c662571129af31b27433b919a32Adam LesinskiLOCAL_MODULE:= libandroidfw
8416c4d154dca43c662571129af31b27433b919a32Adam Lesinski
8516c4d154dca43c662571129af31b27433b919a32Adam LesinskiLOCAL_MODULE_TAGS := optional
8616c4d154dca43c662571129af31b27433b919a32Adam Lesinski
8716c4d154dca43c662571129af31b27433b919a32Adam Lesinskiinclude $(BUILD_SHARED_LIBRARY)
8816c4d154dca43c662571129af31b27433b919a32Adam Lesinski
8916c4d154dca43c662571129af31b27433b919a32Adam Lesinski
9016c4d154dca43c662571129af31b27433b919a32Adam Lesinski# Include subdirectory makefiles
9116c4d154dca43c662571129af31b27433b919a32Adam Lesinski# ============================================================
9216c4d154dca43c662571129af31b27433b919a32Adam Lesinski
9316c4d154dca43c662571129af31b27433b919a32Adam Lesinski# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
9416c4d154dca43c662571129af31b27433b919a32Adam Lesinski# team really wants is to build the stuff defined by this makefile.
9516c4d154dca43c662571129af31b27433b919a32Adam Lesinskiifeq (,$(ONE_SHOT_MAKEFILE))
9616c4d154dca43c662571129af31b27433b919a32Adam Lesinskiinclude $(call first-makefiles-under,$(LOCAL_PATH))
9716c4d154dca43c662571129af31b27433b919a32Adam Lesinskiendif
98