Android.mk revision 5541de9ea3513a12d1ac2ad07e7e04a3aa7741a0
1b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown# Copyright (C) 2010 The Android Open Source Project
2b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown#
3b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown# Licensed under the Apache License, Version 2.0 (the "License");
4b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown# you may not use this file except in compliance with the License.
5b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown# You may obtain a copy of the License at
6b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown#
7b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown#      http://www.apache.org/licenses/LICENSE-2.0
8b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown#
9b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown# Unless required by applicable law or agreed to in writing, software
10b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown# distributed under the License is distributed on an "AS IS" BASIS,
11b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown# See the License for the specific language governing permissions and
13b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown# limitations under the License.
14b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
15b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff BrownLOCAL_PATH:= $(call my-dir)
16b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
17b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Browninclude $(CLEAR_VARS)
18b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
19b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff BrownLOCAL_SRC_FILES:= \
20b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    EventHub.cpp \
21b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    InputDispatcher.cpp \
22b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    InputManager.cpp \
23b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    InputReader.cpp \
24928e054931d357326613c78e62f4d850b7c442ffJeff Brown    InputWindow.cpp \
255541de9ea3513a12d1ac2ad07e7e04a3aa7741a0Jeff Brown    PointerController.cpp \
265541de9ea3513a12d1ac2ad07e7e04a3aa7741a0Jeff Brown    SpotController.cpp \
275541de9ea3513a12d1ac2ad07e7e04a3aa7741a0Jeff Brown    SpriteController.cpp
28b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
29b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff BrownLOCAL_SHARED_LIBRARIES := \
30b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    libcutils \
31b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    libutils \
32b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    libhardware \
33b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    libhardware_legacy \
34b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    libskia \
35696257ccf315a1da042787c5b2d1f80c7146fc94Mathias Agopian    libgui \
36b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    libui
37b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
38b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff BrownLOCAL_C_INCLUDES := \
39b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    external/skia/include/core
40b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
41b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff BrownLOCAL_MODULE:= libinput
42b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
43b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff BrownLOCAL_MODULE_TAGS := optional
44b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
45b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brownifeq ($(TARGET_SIMULATOR),true)
46b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    LOCAL_LDLIBS += -lpthread
47b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brownendif
48b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
49b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Browninclude $(BUILD_SHARED_LIBRARY)
50b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
51b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
52b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown# Include subdirectory makefiles
53b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown# ============================================================
54b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
55b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
56b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown# team really wants is to build the stuff defined by this makefile.
57b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brownifeq (,$(ONE_SHOT_MAKEFILE))
58b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Browninclude $(call first-makefiles-under,$(LOCAL_PATH))
59b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brownendif
60