blob: f9990bb7d9e3eae3398fc55eda14380efa070b80 [file] [log] [blame]
Jeff Brownd5fdf7d2010-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 Projectedbf3b62009-03-03 19:31:44 -080015LOCAL_PATH:= $(call my-dir)
Jeff Brownd5fdf7d2010-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 \
Jeff Browndb360642010-12-02 13:50:46 -080024 VirtualKeyMap.cpp
Jeff Brownd5fdf7d2010-11-18 20:52:43 -080025
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
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080041include $(CLEAR_VARS)
42
43LOCAL_SRC_FILES:= \
Jeff Brownd5fdf7d2010-11-18 20:52:43 -080044 $(commonSources) \
Mathias Agopian6cf50a72009-08-06 16:05:39 -070045 EGLUtils.cpp \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080046 EventRecurrence.cpp \
Mathias Agopian0926f502009-05-04 14:17:04 -070047 FramebufferNativeWindow.cpp \
Mathias Agopian3330b202009-10-05 17:07:12 -070048 GraphicBuffer.cpp \
49 GraphicBufferAllocator.cpp \
50 GraphicBufferMapper.cpp \
Mathias Agopian35b48d12010-09-13 22:57:58 -070051 GraphicLog.cpp \
Jeff Browne839a582010-04-22 18:58:52 -070052 InputTransport.cpp \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080053 PixelFormat.cpp \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080054 Rect.cpp \
Mathias Agopian9cce3252010-02-09 17:46:37 -080055 Region.cpp
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080056
57LOCAL_SHARED_LIBRARIES := \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080058 libcutils \
59 libutils \
Mathias Agopian6cf50a72009-08-06 16:05:39 -070060 libEGL \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080061 libpixelflinger \
62 libhardware \
Jeff Brown3e341462011-02-14 17:03:18 -080063 libhardware_legacy \
64 libskia \
65 libbinder
66
67LOCAL_C_INCLUDES := \
68 external/skia/include/core
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080069
70LOCAL_MODULE:= libui
71
Andy McFaddene0a963b2009-09-09 08:00:09 -070072ifeq ($(TARGET_SIMULATOR),true)
73 LOCAL_LDLIBS += -lpthread
74endif
75
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080076include $(BUILD_SHARED_LIBRARY)
Jeff Brown8575a872010-06-30 16:10:35 -070077
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.
84ifeq (,$(ONE_SHOT_MAKEFILE))
85include $(call first-makefiles-under,$(LOCAL_PATH))
86endif