blob: 2a1e762d9ed861740f96fcf3cb8e8f38a77495f2 [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) \
32 InputTransport.cpp \
33 VelocityControl.cpp \
34 VelocityTracker.cpp
35
36hostSources := \
37 $(commonSources)
38
39# For the host
40# =====================================================
41
42include $(CLEAR_VARS)
43
44LOCAL_SRC_FILES:= $(hostSources)
45
46LOCAL_MODULE:= libinput
47
48LOCAL_MODULE_TAGS := optional
49
50include $(BUILD_HOST_STATIC_LIBRARY)
51
52
53# For the device
54# =====================================================
55
56include $(CLEAR_VARS)
57
58LOCAL_SRC_FILES:= $(deviceSources)
59
60LOCAL_SHARED_LIBRARIES := \
61 liblog \
62 libcutils \
63 libutils \
64 libbinder \
65 libskia \
66 libz
67
68LOCAL_C_INCLUDES := \
69 external/skia/include/core \
70 external/icu4c/common \
71 external/zlib
72
73LOCAL_MODULE:= libinput
74
75LOCAL_MODULE_TAGS := optional
76
77include $(BUILD_SHARED_LIBRARY)
78
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
keunyoung80b5cf92013-07-02 10:45:21 -070088
89endif #!PDK