blob: 5948e042c9788a9672f90d787b9e8cb73f41ac15 [file] [log] [blame]
Jeff Brown061cf752010-11-18 20:52:43 -08001# 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 Project9066cfe2009-03-03 19:31:44 -080015LOCAL_PATH:= $(call my-dir)
Jeff Brown061cf752010-11-18 20:52:43 -080016
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
25# For the host
26# =====================================================
27
28include $(CLEAR_VARS)
29
30LOCAL_SRC_FILES:= $(commonSources)
31
32LOCAL_MODULE:= libui
33
34include $(BUILD_HOST_STATIC_LIBRARY)
35
36
37# For the device
38# =====================================================
39
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080040include $(CLEAR_VARS)
41
42LOCAL_SRC_FILES:= \
Jeff Brown061cf752010-11-18 20:52:43 -080043 $(commonSources) \
Mathias Agopian265d9c02009-08-06 16:05:39 -070044 EGLUtils.cpp \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080045 EventHub.cpp \
46 EventRecurrence.cpp \
Mathias Agopiandff8e582009-05-04 14:17:04 -070047 FramebufferNativeWindow.cpp \
Mathias Agopian6950e422009-10-05 17:07:12 -070048 GraphicBuffer.cpp \
49 GraphicBufferAllocator.cpp \
50 GraphicBufferMapper.cpp \
Mathias Agopian04262e92010-09-13 22:57:58 -070051 GraphicLog.cpp \
Jeff Brown46b9ac0a2010-04-22 18:58:52 -070052 InputDispatcher.cpp \
53 InputManager.cpp \
54 InputReader.cpp \
55 InputTransport.cpp \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080056 IOverlay.cpp \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080057 Overlay.cpp \
58 PixelFormat.cpp \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080059 Rect.cpp \
Mathias Agopian000479f2010-02-09 17:46:37 -080060 Region.cpp
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080061
62LOCAL_SHARED_LIBRARIES := \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080063 libcutils \
64 libutils \
Mathias Agopian265d9c02009-08-06 16:05:39 -070065 libEGL \
Mathias Agopian25ba5b62009-05-18 15:08:03 -070066 libbinder \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080067 libpixelflinger \
68 libhardware \
69 libhardware_legacy
70
71LOCAL_MODULE:= libui
72
Andy McFaddenb9e52a02009-09-09 08:00:09 -070073ifeq ($(TARGET_SIMULATOR),true)
74 LOCAL_LDLIBS += -lpthread
75endif
76
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080077include $(BUILD_SHARED_LIBRARY)
Jeff Brownfd0358292010-06-30 16:10:35 -070078
79
80# Include subdirectory makefiles
81# ============================================================
82
83# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
84# team really wants is to build the stuff defined by this makefile.
85ifeq (,$(ONE_SHOT_MAKEFILE))
86include $(call first-makefiles-under,$(LOCAL_PATH))
87endif