Jeff Brown | d5fdf7d | 2010-11-18 20:52:43 -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 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 15 | LOCAL_PATH:= $(call my-dir) |
Jeff Brown | d5fdf7d | 2010-11-18 20:52:43 -0800 | [diff] [blame] | 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. |
| 19 | commonSources:= \ |
| 20 | Input.cpp \ |
| 21 | Keyboard.cpp \ |
| 22 | KeyLayoutMap.cpp \ |
| 23 | KeyCharacterMap.cpp \ |
Jeff Brown | db36064 | 2010-12-02 13:50:46 -0800 | [diff] [blame] | 24 | VirtualKeyMap.cpp |
Jeff Brown | d5fdf7d | 2010-11-18 20:52:43 -0800 | [diff] [blame] | 25 | |
| 26 | # For the host |
| 27 | # ===================================================== |
| 28 | |
| 29 | include $(CLEAR_VARS) |
| 30 | |
| 31 | LOCAL_SRC_FILES:= $(commonSources) |
| 32 | |
| 33 | LOCAL_MODULE:= libui |
| 34 | |
| 35 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 36 | |
| 37 | |
| 38 | # For the device |
| 39 | # ===================================================== |
| 40 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 41 | include $(CLEAR_VARS) |
| 42 | |
| 43 | LOCAL_SRC_FILES:= \ |
Jeff Brown | d5fdf7d | 2010-11-18 20:52:43 -0800 | [diff] [blame] | 44 | $(commonSources) \ |
Mathias Agopian | 6cf50a7 | 2009-08-06 16:05:39 -0700 | [diff] [blame] | 45 | EGLUtils.cpp \ |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 46 | EventRecurrence.cpp \ |
Mathias Agopian | 0926f50 | 2009-05-04 14:17:04 -0700 | [diff] [blame] | 47 | FramebufferNativeWindow.cpp \ |
Mathias Agopian | 3330b20 | 2009-10-05 17:07:12 -0700 | [diff] [blame] | 48 | GraphicBuffer.cpp \ |
| 49 | GraphicBufferAllocator.cpp \ |
| 50 | GraphicBufferMapper.cpp \ |
Mathias Agopian | 35b48d1 | 2010-09-13 22:57:58 -0700 | [diff] [blame] | 51 | GraphicLog.cpp \ |
Jeff Brown | e839a58 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 52 | InputTransport.cpp \ |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 53 | PixelFormat.cpp \ |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 54 | Rect.cpp \ |
Mathias Agopian | 9cce325 | 2010-02-09 17:46:37 -0800 | [diff] [blame] | 55 | Region.cpp |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 56 | |
| 57 | LOCAL_SHARED_LIBRARIES := \ |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 58 | libcutils \ |
| 59 | libutils \ |
Mathias Agopian | 6cf50a7 | 2009-08-06 16:05:39 -0700 | [diff] [blame] | 60 | libEGL \ |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 61 | libpixelflinger \ |
| 62 | libhardware \ |
Jeff Brown | 3e34146 | 2011-02-14 17:03:18 -0800 | [diff] [blame] | 63 | libhardware_legacy \ |
| 64 | libskia \ |
| 65 | libbinder |
| 66 | |
| 67 | LOCAL_C_INCLUDES := \ |
| 68 | external/skia/include/core |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 69 | |
| 70 | LOCAL_MODULE:= libui |
| 71 | |
Andy McFadden | e0a963b | 2009-09-09 08:00:09 -0700 | [diff] [blame] | 72 | ifeq ($(TARGET_SIMULATOR),true) |
| 73 | LOCAL_LDLIBS += -lpthread |
| 74 | endif |
| 75 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 76 | include $(BUILD_SHARED_LIBRARY) |
Jeff Brown | 8575a87 | 2010-06-30 16:10:35 -0700 | [diff] [blame] | 77 | |
| 78 | |
| 79 | # Include subdirectory makefiles |
| 80 | # ============================================================ |
| 81 | |
| 82 | # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework |
| 83 | # team really wants is to build the stuff defined by this makefile. |
| 84 | ifeq (,$(ONE_SHOT_MAKEFILE)) |
| 85 | include $(call first-makefiles-under,$(LOCAL_PATH)) |
| 86 | endif |