OSDN Git Service

Merge "Get rid of IGraphicBufferAlloc"
[android-x86/frameworks-native.git] / services / vr / sensord / Android.mk
1 # Copyright (C) 2008 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
15 LOCAL_PATH := $(call my-dir)
16
17 SENSORD_EXTEND ?= libsensordextensionstub
18
19 sourceFiles := \
20         pose_service.cpp \
21         sensord.cpp \
22         sensor_fusion.cpp \
23         sensor_hal_thread.cpp \
24         sensor_ndk_thread.cpp \
25         sensor_service.cpp \
26         sensor_thread.cpp \
27
28 includeFiles += \
29         $(LOCAL_PATH)/include
30
31 staticLibraries := \
32         libdvrcommon \
33         libsensor \
34         libperformance \
35         libbufferhub \
36         libpdx_default_transport \
37         libposepredictor \
38
39 sharedLibraries := \
40         libandroid \
41         libbase \
42         libbinder \
43         libcutils \
44         liblog \
45         libhardware \
46         libutils \
47         $(SENSORD_EXTEND) \
48
49 cFlags := -DLOG_TAG=\"sensord\" \
50           -DTRACE=0
51
52 include $(CLEAR_VARS)
53 # Don't strip symbols so we see stack traces in logcat.
54 LOCAL_STRIP_MODULE := false
55 LOCAL_SRC_FILES := $(sourceFiles)
56 LOCAL_CFLAGS := $(cFlags)
57 LOCAL_STATIC_LIBRARIES := $(staticLibraries)
58 LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
59 LOCAL_MODULE_CLASS := EXECUTABLES
60 LOCAL_MODULE := sensord
61 LOCAL_C_INCLUDES := $(includeFiles)
62 LOCAL_C_INCLUDES += \
63     $(call local-generated-sources-dir)/proto/frameworks/native/services/vr/sensord
64 LOCAL_INIT_RC := sensord.rc
65 include $(BUILD_EXECUTABLE)
66
67 include $(CLEAR_VARS)
68 LOCAL_STATIC_LIBRARIES := $(staticLibraries)
69 LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
70 LOCAL_SRC_FILES := test/poselatencytest.cpp
71 LOCAL_MODULE := poselatencytest
72 include $(BUILD_EXECUTABLE)
73
74 include $(CLEAR_VARS)
75 LOCAL_MODULE := libsensordextensionstub
76 LOCAL_SRC_FILES := sensord_extension.cpp
77 include $(BUILD_SHARED_LIBRARY)