Android.mk revision d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031f
1d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# Copyright (C) 2010 The Android Open Source Project 2d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# 3d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# Licensed under the Apache License, Version 2.0 (the "License"); 4d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# you may not use this file except in compliance with the License. 5d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# You may obtain a copy of the License at 6d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# 7d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# http://www.apache.org/licenses/LICENSE-2.0 8d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# 9d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# Unless required by applicable law or agreed to in writing, software 10d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# distributed under the License is distributed on an "AS IS" BASIS, 11d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# See the License for the specific language governing permissions and 13d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# limitations under the License. 14d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown 15edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source ProjectLOCAL_PATH:= $(call my-dir) 16d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown 17d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# libui is partially built for the host (used by build time keymap validation tool) 18d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# These files are common to host and target builds. 19d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff BrowncommonSources:= \ 20d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown Input.cpp \ 21d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown Keyboard.cpp \ 22d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown KeyLayoutMap.cpp \ 23d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown KeyCharacterMap.cpp \ 24d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown 25d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# For the host 26d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# ===================================================== 27d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown 28d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Browninclude $(CLEAR_VARS) 29d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown 30d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff BrownLOCAL_SRC_FILES:= $(commonSources) 31d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown 32d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff BrownLOCAL_MODULE:= libui 33d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown 34d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Browninclude $(BUILD_HOST_STATIC_LIBRARY) 35d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown 36d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown 37d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# For the device 38d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown# ===================================================== 39d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown 40edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Projectinclude $(CLEAR_VARS) 41edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 42edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source ProjectLOCAL_SRC_FILES:= \ 43d5fdf7d74b1ff47ed457ecdb0e0c4310ff7d031fJeff Brown $(commonSources) \ 446cf50a770dabd13cf5b72bb0a6fb9dd002c88db6Mathias Agopian EGLUtils.cpp \ 45edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project EventHub.cpp \ 46edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project EventRecurrence.cpp \ 470926f50664c739eaee60341f8e8c694dc9a4f3ebMathias Agopian FramebufferNativeWindow.cpp \ 483330b203039dea366d4981db1408a460134b2d2cMathias Agopian GraphicBuffer.cpp \ 493330b203039dea366d4981db1408a460134b2d2cMathias Agopian GraphicBufferAllocator.cpp \ 503330b203039dea366d4981db1408a460134b2d2cMathias Agopian GraphicBufferMapper.cpp \ 5135b48d10bc9e064201d3d54d2d476314684a7a05Mathias Agopian GraphicLog.cpp \ 52e839a589bf582568cf220c1040ed93b948e6e362Jeff Brown InputDispatcher.cpp \ 53e839a589bf582568cf220c1040ed93b948e6e362Jeff Brown InputManager.cpp \ 54e839a589bf582568cf220c1040ed93b948e6e362Jeff Brown InputReader.cpp \ 55e839a589bf582568cf220c1040ed93b948e6e362Jeff Brown InputTransport.cpp \ 56edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project IOverlay.cpp \ 57edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project Overlay.cpp \ 58edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project PixelFormat.cpp \ 59edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project Rect.cpp \ 609cce325fae8adcf7560a28eef394489f09bad74dMathias Agopian Region.cpp 61edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 62edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source ProjectLOCAL_SHARED_LIBRARIES := \ 63edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project libcutils \ 64edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project libutils \ 656cf50a770dabd13cf5b72bb0a6fb9dd002c88db6Mathias Agopian libEGL \ 66208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian libbinder \ 67edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project libpixelflinger \ 68edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project libhardware \ 69edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project libhardware_legacy 70edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 71edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source ProjectLOCAL_MODULE:= libui 72edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 73e0a963b72ed7babf1ab21ffdfd9e2b93ae4fe63eAndy McFaddenifeq ($(TARGET_SIMULATOR),true) 74e0a963b72ed7babf1ab21ffdfd9e2b93ae4fe63eAndy McFadden LOCAL_LDLIBS += -lpthread 75e0a963b72ed7babf1ab21ffdfd9e2b93ae4fe63eAndy McFaddenendif 76e0a963b72ed7babf1ab21ffdfd9e2b93ae4fe63eAndy McFadden 77edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Projectinclude $(BUILD_SHARED_LIBRARY) 788575a87b0d61d21c286321afdf193f4fac53d681Jeff Brown 798575a87b0d61d21c286321afdf193f4fac53d681Jeff Brown 808575a87b0d61d21c286321afdf193f4fac53d681Jeff Brown# Include subdirectory makefiles 818575a87b0d61d21c286321afdf193f4fac53d681Jeff Brown# ============================================================ 828575a87b0d61d21c286321afdf193f4fac53d681Jeff Brown 838575a87b0d61d21c286321afdf193f4fac53d681Jeff Brown# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework 848575a87b0d61d21c286321afdf193f4fac53d681Jeff Brown# team really wants is to build the stuff defined by this makefile. 858575a87b0d61d21c286321afdf193f4fac53d681Jeff Brownifeq (,$(ONE_SHOT_MAKEFILE)) 868575a87b0d61d21c286321afdf193f4fac53d681Jeff Browninclude $(call first-makefiles-under,$(LOCAL_PATH)) 878575a87b0d61d21c286321afdf193f4fac53d681Jeff Brownendif 88