183c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# Copyright (C) 2010 The Android Open Source Project 283c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# 383c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# Licensed under the Apache License, Version 2.0 (the "License"); 483c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# you may not use this file except in compliance with the License. 583c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# You may obtain a copy of the License at 683c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# 783c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# http://www.apache.org/licenses/LICENSE-2.0 883c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# 983c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# Unless required by applicable law or agreed to in writing, software 1083c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# distributed under the License is distributed on an "AS IS" BASIS, 1183c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1283c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# See the License for the specific language governing permissions and 1383c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# limitations under the License. 1483c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 1583c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_PATH:= $(call my-dir) 1683c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 179d3b1a424c5c61e24e9659d15fb353026a00d925Jeff Brown# libandroidfw is partially built for the host (used by obbtool and others) 1883c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# These files are common to host and target builds. 1983c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 209d3b1a424c5c61e24e9659d15fb353026a00d925Jeff BrowncommonSources := \ 2183c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian Asset.cpp \ 2283c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian AssetDir.cpp \ 2383c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian AssetManager.cpp \ 241f5762e646bed2290934280464832782766ee68eMathias Agopian misc.cpp \ 2583c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian ObbFile.cpp \ 2683c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian ResourceTypes.cpp \ 271f5762e646bed2290934280464832782766ee68eMathias Agopian StreamingZipInflater.cpp \ 281f5762e646bed2290934280464832782766ee68eMathias Agopian ZipFileRO.cpp \ 291f5762e646bed2290934280464832782766ee68eMathias Agopian ZipUtils.cpp 3083c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 319d3b1a424c5c61e24e9659d15fb353026a00d925Jeff BrowndeviceSources := \ 329d3b1a424c5c61e24e9659d15fb353026a00d925Jeff Brown $(commonSources) \ 339d3b1a424c5c61e24e9659d15fb353026a00d925Jeff Brown BackupData.cpp \ 349d3b1a424c5c61e24e9659d15fb353026a00d925Jeff Brown BackupHelpers.cpp \ 359d3b1a424c5c61e24e9659d15fb353026a00d925Jeff Brown CursorWindow.cpp 3683c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 379d3b1a424c5c61e24e9659d15fb353026a00d925Jeff BrownhostSources := \ 389d3b1a424c5c61e24e9659d15fb353026a00d925Jeff Brown $(commonSources) 3983c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 4083c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# For the host 4183c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# ===================================================== 4283c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 4383c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopianinclude $(CLEAR_VARS) 4483c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 459d3b1a424c5c61e24e9659d15fb353026a00d925Jeff BrownLOCAL_SRC_FILES:= $(hostSources) 4683c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 4783c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_MODULE:= libandroidfw 4883c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 4983c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_MODULE_TAGS := optional 5083c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 51fb903a45d7b924c1dfacadaa99ebdf93fd8a1de4Bjorn BringertLOCAL_CFLAGS += -DSTATIC_ANDROIDFW_FOR_TOOLS 52fb903a45d7b924c1dfacadaa99ebdf93fd8a1de4Bjorn Bringert 53027692b640059fb1a9795215c0a863183aa5829cMathias AgopianLOCAL_C_INCLUDES := \ 54027692b640059fb1a9795215c0a863183aa5829cMathias Agopian external/zlib 55027692b640059fb1a9795215c0a863183aa5829cMathias Agopian 560d6e7315eb302b5402535dca87ac2c4dad4709b8Colin CrossLOCAL_STATIC_LIBRARIES := liblog 570d6e7315eb302b5402535dca87ac2c4dad4709b8Colin Cross 5883c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopianinclude $(BUILD_HOST_STATIC_LIBRARY) 5983c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 6083c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 6183c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# For the device 6283c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# ===================================================== 6383c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 6483c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopianinclude $(CLEAR_VARS) 6583c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 669d3b1a424c5c61e24e9659d15fb353026a00d925Jeff BrownLOCAL_SRC_FILES:= $(deviceSources) 6783c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 6883c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_SHARED_LIBRARIES := \ 699d3b1a424c5c61e24e9659d15fb353026a00d925Jeff Brown libbinder \ 7083c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian liblog \ 7183c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian libcutils \ 7283c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian libutils \ 7383c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian libz 7483c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 7583c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_C_INCLUDES := \ 7683c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian external/icu4c/common \ 7783c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian external/zlib 7883c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 7983c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_MODULE:= libandroidfw 8083c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 8183c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_MODULE_TAGS := optional 8283c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 8383c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopianinclude $(BUILD_SHARED_LIBRARY) 8483c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 8583c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 8683c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# Include subdirectory makefiles 8783c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# ============================================================ 8883c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian 8983c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework 9083c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# team really wants is to build the stuff defined by this makefile. 9183c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopianifeq (,$(ONE_SHOT_MAKEFILE)) 9283c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopianinclude $(call first-makefiles-under,$(LOCAL_PATH)) 9383c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopianendif 94