Android.mk revision a5529c8778c2f407f482fc12165aeb76c0f505c2
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 15LOCAL_PATH:= $(call my-dir) 16 17# libui is partially built for the host (used by build time keymap validation tool) 18# These files are common to host and target builds. 19commonSources:= \ 20 Input.cpp \ 21 Keyboard.cpp \ 22 KeyLayoutMap.cpp \ 23 KeyCharacterMap.cpp \ 24 VirtualKeyMap.cpp 25 26# For the host 27# ===================================================== 28 29include $(CLEAR_VARS) 30 31LOCAL_SRC_FILES:= $(commonSources) 32 33LOCAL_MODULE:= libui 34 35include $(BUILD_HOST_STATIC_LIBRARY) 36 37 38# For the device 39# ===================================================== 40 41include $(CLEAR_VARS) 42 43LOCAL_SRC_FILES:= \ 44 $(commonSources) \ 45 EGLUtils.cpp \ 46 EventHub.cpp \ 47 EventRecurrence.cpp \ 48 FramebufferNativeWindow.cpp \ 49 GraphicBuffer.cpp \ 50 GraphicBufferAllocator.cpp \ 51 GraphicBufferMapper.cpp \ 52 GraphicLog.cpp \ 53 InputDispatcher.cpp \ 54 InputManager.cpp \ 55 InputReader.cpp \ 56 InputTransport.cpp \ 57 PixelFormat.cpp \ 58 Rect.cpp \ 59 Region.cpp 60 61LOCAL_SHARED_LIBRARIES := \ 62 libcutils \ 63 libutils \ 64 libEGL \ 65 libpixelflinger \ 66 libhardware \ 67 libhardware_legacy 68 69LOCAL_MODULE:= libui 70 71ifeq ($(TARGET_SIMULATOR),true) 72 LOCAL_LDLIBS += -lpthread 73endif 74 75include $(BUILD_SHARED_LIBRARY) 76 77 78# Include subdirectory makefiles 79# ============================================================ 80 81# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework 82# team really wants is to build the stuff defined by this makefile. 83ifeq (,$(ONE_SHOT_MAKEFILE)) 84include $(call first-makefiles-under,$(LOCAL_PATH)) 85endif 86