Android.mk revision b4ff35df5c04aec71fce7e90a6d6f9ef7180c2ad
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 \
24b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    PointerController.cpp
25b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
26b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff BrownLOCAL_SHARED_LIBRARIES := \
27b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    libcutils \
28b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    libutils \
29b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    libhardware \
30b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    libhardware_legacy \
31b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    libsurfaceflinger_client \
32b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    libskia \
33b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    libui
34b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
35b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff BrownLOCAL_C_INCLUDES := \
36b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    external/skia/include/core
37b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
38b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff BrownLOCAL_MODULE:= libinput
39b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
40b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff BrownLOCAL_MODULE_TAGS := optional
41b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
42b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brownifeq ($(TARGET_SIMULATOR),true)
43b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown    LOCAL_LDLIBS += -lpthread
44b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brownendif
45b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
46b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Browninclude $(BUILD_SHARED_LIBRARY)
47b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
48b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
49b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown# Include subdirectory makefiles
50b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown# ============================================================
51b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown
52b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
53b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brown# team really wants is to build the stuff defined by this makefile.
54b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brownifeq (,$(ONE_SHOT_MAKEFILE))
55b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Browninclude $(call first-makefiles-under,$(LOCAL_PATH))
56b4ff35df5c04aec71fce7e90a6d6f9ef7180c2adJeff Brownendif
57