Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 1 | # Copyright (C) 2010 The Android Open Source Project |
| 2 | # |
| 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 |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 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. |
| 14 | |
| 15 | LOCAL_PATH:= $(call my-dir) |
| 16 | |
| 17 | # libandroidfw is partially built for the host (used by build time keymap validation tool) |
| 18 | # These files are common to host and target builds. |
| 19 | |
| 20 | # formerly in libutils |
| 21 | commonUtilsSources:= \ |
| 22 | Asset.cpp \ |
| 23 | AssetDir.cpp \ |
| 24 | AssetManager.cpp \ |
| 25 | ObbFile.cpp \ |
| 26 | ResourceTypes.cpp \ |
Colin Cross | a982dc0 | 2012-03-22 18:43:07 -0700 | [diff] [blame] | 27 | StreamingZipInflater.cpp |
Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 28 | |
| 29 | # formerly in libui |
| 30 | commonUiSources:= \ |
| 31 | Input.cpp \ |
Jeff Brown | 9f25b7f | 2012-04-10 14:30:49 -0700 | [diff] [blame] | 32 | InputDevice.cpp \ |
Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 33 | Keyboard.cpp \ |
| 34 | KeyCharacterMap.cpp \ |
| 35 | KeyLayoutMap.cpp \ |
Jeff Brown | 8a90e6e | 2012-05-11 12:24:35 -0700 | [diff] [blame] | 36 | VelocityControl.cpp \ |
| 37 | VelocityTracker.cpp \ |
Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 38 | VirtualKeyMap.cpp |
| 39 | |
| 40 | commonSources:= \ |
| 41 | $(commonUtilsSources) \ |
| 42 | $(commonUiSources) |
| 43 | |
| 44 | # For the host |
| 45 | # ===================================================== |
| 46 | |
| 47 | include $(CLEAR_VARS) |
| 48 | |
| 49 | LOCAL_SRC_FILES:= $(commonSources) |
| 50 | |
| 51 | LOCAL_MODULE:= libandroidfw |
| 52 | |
| 53 | LOCAL_MODULE_TAGS := optional |
| 54 | |
Mathias Agopian | 027692b | 2012-02-21 16:55:25 -0800 | [diff] [blame] | 55 | LOCAL_C_INCLUDES := \ |
| 56 | external/zlib |
| 57 | |
Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 58 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 59 | |
| 60 | |
| 61 | # For the device |
| 62 | # ===================================================== |
| 63 | |
| 64 | include $(CLEAR_VARS) |
| 65 | |
| 66 | LOCAL_SRC_FILES:= \ |
| 67 | $(commonSources) \ |
| 68 | BackupData.cpp \ |
| 69 | BackupHelpers.cpp \ |
Mathias Agopian | 49d2b18 | 2012-02-27 18:11:20 -0800 | [diff] [blame] | 70 | CursorWindow.cpp \ |
Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 71 | InputTransport.cpp |
| 72 | |
| 73 | LOCAL_SHARED_LIBRARIES := \ |
| 74 | liblog \ |
| 75 | libcutils \ |
| 76 | libutils \ |
| 77 | libbinder \ |
| 78 | libskia \ |
| 79 | libz |
| 80 | |
| 81 | LOCAL_C_INCLUDES := \ |
| 82 | external/skia/include/core \ |
| 83 | external/icu4c/common \ |
| 84 | external/zlib |
| 85 | |
| 86 | LOCAL_MODULE:= libandroidfw |
| 87 | |
| 88 | LOCAL_MODULE_TAGS := optional |
| 89 | |
| 90 | include $(BUILD_SHARED_LIBRARY) |
| 91 | |
| 92 | |
| 93 | ifeq ($(TARGET_OS),linux) |
| 94 | include $(CLEAR_VARS) |
| 95 | LOCAL_C_INCLUDES += \ |
| 96 | external/skia/include/core \ |
| 97 | external/zlib \ |
| 98 | external/icu4c/common \ |
| 99 | bionic/libc/private |
Mathias Agopian | cbc6971 | 2012-02-21 14:34:47 -0800 | [diff] [blame] | 100 | LOCAL_LDLIBS := -lrt -ldl -lpthread |
Mathias Agopian | 30c46ad | 2012-02-21 13:27:59 -0800 | [diff] [blame] | 101 | LOCAL_MODULE := libandroidfw |
Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 102 | LOCAL_SRC_FILES := $(commonUtilsSources) BackupData.cpp BackupHelpers.cpp |
| 103 | include $(BUILD_STATIC_LIBRARY) |
| 104 | endif |
| 105 | |
| 106 | |
| 107 | # Include subdirectory makefiles |
| 108 | # ============================================================ |
| 109 | |
| 110 | # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework |
| 111 | # team really wants is to build the stuff defined by this makefile. |
| 112 | ifeq (,$(ONE_SHOT_MAKEFILE)) |
| 113 | include $(call first-makefiles-under,$(LOCAL_PATH)) |
| 114 | endif |