1 # Copyright (C) 2010 The Android Open Source Project
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 LOCAL_PATH:= $(call my-dir)
17 # libandroidfw is partially built for the host (used by obbtool, aapt, and others)
18 # These files are common to host and target builds.
27 StreamingZipInflater.cpp \
38 hostSources := $(commonSources)
41 # =====================================================
43 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
45 LOCAL_MODULE:= libandroidfw
46 LOCAL_MODULE_TAGS := optional
47 LOCAL_CFLAGS += -DSTATIC_ANDROIDFW_FOR_TOOLS
48 LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
49 LOCAL_SRC_FILES:= $(hostSources)
50 LOCAL_C_INCLUDES := external/zlib
52 include $(BUILD_HOST_STATIC_LIBRARY)
56 # =====================================================
59 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
61 LOCAL_MODULE:= libandroidfw
62 LOCAL_MODULE_TAGS := optional
63 LOCAL_SRC_FILES:= $(deviceSources)
67 LOCAL_STATIC_LIBRARIES := libziparchive libbase
68 LOCAL_SHARED_LIBRARIES := \
75 LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
77 include $(BUILD_SHARED_LIBRARY)
80 # Include subdirectory makefiles
81 # ============================================================
83 # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
84 # team really wants is to build the stuff defined by this makefile.
85 ifeq (,$(ONE_SHOT_MAKEFILE))
86 include $(call first-makefiles-under,$(LOCAL_PATH))