blob: 997ce3a136dccfa2ce1b49af6fa09826a08be34b [file] [log] [blame]
Jeff Brown5912f952013-07-01 19:10:31 -07001# Copyright (C) 2013 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
keunyoung80b5cf92013-07-02 10:45:21 -070015ifneq ($(TARGET_BUILD_PDK),true)
16
Jeff Brown5912f952013-07-01 19:10:31 -070017LOCAL_PATH:= $(call my-dir)
18
19# libinput is partially built for the host (used by build time keymap validation tool)
20# These files are common to host and target builds.
21
22commonSources := \
23 Input.cpp \
24 InputDevice.cpp \
25 Keyboard.cpp \
26 KeyCharacterMap.cpp \
27 KeyLayoutMap.cpp \
28 VirtualKeyMap.cpp
29
30deviceSources := \
31 $(commonSources) \
Jeff Brown40c9e0a2013-07-15 13:27:05 -070032 IInputFlinger.cpp \
Jeff Brown5912f952013-07-01 19:10:31 -070033 InputTransport.cpp \
34 VelocityControl.cpp \
35 VelocityTracker.cpp
36
37hostSources := \
38 $(commonSources)
39
40# For the host
41# =====================================================
42
43include $(CLEAR_VARS)
44
45LOCAL_SRC_FILES:= $(hostSources)
46
47LOCAL_MODULE:= libinput
48
49LOCAL_MODULE_TAGS := optional
50
51include $(BUILD_HOST_STATIC_LIBRARY)
52
53
54# For the device
55# =====================================================
56
57include $(CLEAR_VARS)
58
59LOCAL_SRC_FILES:= $(deviceSources)
60
61LOCAL_SHARED_LIBRARIES := \
62 liblog \
63 libcutils \
64 libutils \
65 libbinder \
66 libskia \
67 libz
68
69LOCAL_C_INCLUDES := \
70 external/skia/include/core \
71 external/icu4c/common \
72 external/zlib
73
74LOCAL_MODULE:= libinput
75
76LOCAL_MODULE_TAGS := optional
77
78include $(BUILD_SHARED_LIBRARY)
79
80
81# Include subdirectory makefiles
82# ============================================================
83
84# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
85# team really wants is to build the stuff defined by this makefile.
86ifeq (,$(ONE_SHOT_MAKEFILE))
87include $(call first-makefiles-under,$(LOCAL_PATH))
88endif
keunyoung80b5cf92013-07-02 10:45:21 -070089
90endif #!PDK