blob: 85e96d6b8426641102e46d36633bb04ccae83102 [file] [log] [blame]
Mathias Agopianfc328812010-07-14 23:41:37 -07001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_SRC_FILES:= \
Mathias Agopian787ac1b2012-09-18 18:49:18 -07005 BatteryService.cpp \
Mathias Agopian984826c2011-05-17 22:54:42 -07006 CorrectedGyroSensor.cpp \
7 Fusion.cpp \
8 GravitySensor.cpp \
9 LinearAccelerationSensor.cpp \
10 OrientationSensor.cpp \
11 RotationVectorSensor.cpp \
Mathias Agopianf001c922010-11-11 17:58:51 -080012 SensorDevice.cpp \
Mathias Agopian984826c2011-05-17 22:54:42 -070013 SensorFusion.cpp \
14 SensorInterface.cpp \
Peng Xueb4d6282015-12-10 18:02:41 -080015 SensorService.cpp \
16 SensorEventConnection.cpp \
17 MostRecentEventLogger.cpp \
18 SensorRecord.cpp \
Peng Xu0cc8f802016-04-05 23:46:03 -070019 SensorList.cpp \
Peng Xueb4d6282015-12-10 18:02:41 -080020
Mathias Agopianfc328812010-07-14 23:41:37 -070021
22LOCAL_CFLAGS:= -DLOG_TAG=\"SensorService\"
23
Greg Kaiserbe6dd4e2016-03-22 12:21:46 -070024LOCAL_CFLAGS += -Wall -Werror -Wextra
Aurimas Liutikas6f7854b2016-02-19 14:08:07 -080025
Mathias Agopianb6df7d02013-05-09 14:53:35 -070026LOCAL_CFLAGS += -fvisibility=hidden
27
Mathias Agopianfc328812010-07-14 23:41:37 -070028LOCAL_SHARED_LIBRARIES := \
29 libcutils \
30 libhardware \
Jaikumar Ganesh4342fdf2013-04-08 16:43:12 -070031 libhardware_legacy \
Mathias Agopianfc328812010-07-14 23:41:37 -070032 libutils \
Ying Wang8a0cb4e2013-04-09 21:55:39 -070033 liblog \
Mathias Agopianfc328812010-07-14 23:41:37 -070034 libbinder \
35 libui \
36 libgui
37
Mathias Agopianfc328812010-07-14 23:41:37 -070038LOCAL_MODULE:= libsensorservice
39
40include $(BUILD_SHARED_LIBRARY)
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070041
42#####################################################################
43# build executable
44include $(CLEAR_VARS)
45
46LOCAL_SRC_FILES:= \
47 main_sensorservice.cpp
48
49LOCAL_SHARED_LIBRARIES := \
50 libsensorservice \
51 libbinder \
52 libutils
53
Greg Kaiserbe6dd4e2016-03-22 12:21:46 -070054LOCAL_CFLAGS := -Wall -Werror -Wextra
55
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070056LOCAL_MODULE_TAGS := optional
57
58LOCAL_MODULE:= sensorservice
59
60include $(BUILD_EXECUTABLE)