blob: 57c56a65871760c2a939e4a4184a73c1474ccc92 [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 \
19
Mathias Agopianfc328812010-07-14 23:41:37 -070020
21LOCAL_CFLAGS:= -DLOG_TAG=\"SensorService\"
22
Greg Kaiserbe6dd4e2016-03-22 12:21:46 -070023LOCAL_CFLAGS += -Wall -Werror -Wextra
Aurimas Liutikas6f7854b2016-02-19 14:08:07 -080024
Mathias Agopianb6df7d02013-05-09 14:53:35 -070025LOCAL_CFLAGS += -fvisibility=hidden
26
Mathias Agopianfc328812010-07-14 23:41:37 -070027LOCAL_SHARED_LIBRARIES := \
28 libcutils \
29 libhardware \
Jaikumar Ganesh4342fdf2013-04-08 16:43:12 -070030 libhardware_legacy \
Mathias Agopianfc328812010-07-14 23:41:37 -070031 libutils \
Ying Wang8a0cb4e2013-04-09 21:55:39 -070032 liblog \
Mathias Agopianfc328812010-07-14 23:41:37 -070033 libbinder \
34 libui \
35 libgui
36
Mathias Agopianfc328812010-07-14 23:41:37 -070037LOCAL_MODULE:= libsensorservice
38
39include $(BUILD_SHARED_LIBRARY)
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070040
41#####################################################################
42# build executable
43include $(CLEAR_VARS)
44
45LOCAL_SRC_FILES:= \
46 main_sensorservice.cpp
47
48LOCAL_SHARED_LIBRARIES := \
49 libsensorservice \
50 libbinder \
51 libutils
52
Greg Kaiserbe6dd4e2016-03-22 12:21:46 -070053LOCAL_CFLAGS := -Wall -Werror -Wextra
54
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070055LOCAL_MODULE_TAGS := optional
56
57LOCAL_MODULE:= sensorservice
58
59include $(BUILD_EXECUTABLE)