Android.mk revision 83c64e6b624a876436d2ef5d2f173b10407e27b4
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
1783c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# libandroidfw is partially built for the host (used by build time keymap validation tool)
1883c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# These files are common to host and target builds.
1983c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
2083c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# formerly in libutils
2183c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopiancommonUtilsSources:= \
2283c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian    Asset.cpp \
2383c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian    AssetDir.cpp \
2483c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian    AssetManager.cpp \
2583c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian    ObbFile.cpp \
2683c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian    ResourceTypes.cpp \
2783c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian    StreamingZipInflater.cpp \
2883c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian    ZipFileCRO.cpp \
2983c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian    ZipFileRO.cpp \
3083c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian    ZipUtils.cpp
3183c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
3283c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# formerly in libui
3383c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopiancommonUiSources:= \
3483c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian    Input.cpp \
3583c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian    Keyboard.cpp \
3683c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian    KeyCharacterMap.cpp \
3783c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian    KeyLayoutMap.cpp \
3883c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian    VirtualKeyMap.cpp
3983c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
4083c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopiancommonSources:= \
4183c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian	$(commonUtilsSources) \
4283c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian	$(commonUiSources)
4383c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
4483c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# For the host
4583c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# =====================================================
4683c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
4783c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopianinclude $(CLEAR_VARS)
4883c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
4983c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_SRC_FILES:= $(commonSources)
5083c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
5183c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_MODULE:= libandroidfw
5283c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
5383c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_MODULE_TAGS := optional
5483c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
5583c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopianinclude $(BUILD_HOST_STATIC_LIBRARY)
5683c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
5783c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
5883c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# For the device
5983c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# =====================================================
6083c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
6183c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopianinclude $(CLEAR_VARS)
6283c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
6383c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_SRC_FILES:= \
6483c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian	$(commonSources) \
6583c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian	BackupData.cpp \
6683c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian	BackupHelpers.cpp \
6783c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian	InputTransport.cpp
6883c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
6983c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_SHARED_LIBRARIES := \
7083c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian	liblog \
7183c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian	libcutils \
7283c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian	libutils \
7383c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian	libbinder \
7483c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian	libskia \
7583c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian	libz
7683c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
7783c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_C_INCLUDES := \
7883c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian    external/skia/include/core \
7983c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian    external/icu4c/common \
8083c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian	external/zlib
8183c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
8283c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_MODULE:= libandroidfw
8383c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
8483c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_MODULE_TAGS := optional
8583c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
8683c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopianinclude $(BUILD_SHARED_LIBRARY)
8783c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
8883c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
8983c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopianifeq ($(TARGET_OS),linux)
9083c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopianinclude $(CLEAR_VARS)
9183c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_C_INCLUDES += \
9283c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian	external/skia/include/core \
9383c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian	external/zlib \
9483c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian	external/icu4c/common \
9583c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian	bionic/libc/private
9683c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_LDLIBS := -lrt -ldl -lpthread
9783c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_MODULE := libutils
9883c64e6b624a876436d2ef5d2f173b10407e27b4Mathias AgopianLOCAL_SRC_FILES := $(commonUtilsSources) BackupData.cpp BackupHelpers.cpp
9983c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopianinclude $(BUILD_STATIC_LIBRARY)
10083c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopianendif
10183c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
10283c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
10383c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# Include subdirectory makefiles
10483c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# ============================================================
10583c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian
10683c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
10783c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopian# team really wants is to build the stuff defined by this makefile.
10883c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopianifeq (,$(ONE_SHOT_MAKEFILE))
10983c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopianinclude $(call first-makefiles-under,$(LOCAL_PATH))
11083c64e6b624a876436d2ef5d2f173b10407e27b4Mathias Agopianendif
111