blob: ef1763055ea402082ccfbc6d765712891fec2ec7 [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
Aurimas Liutikas6f7854b2016-02-19 14:08:07 -080023LOCAL_CFLAGS += -Wall -Werror
24
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
53LOCAL_MODULE_TAGS := optional
54
55LOCAL_MODULE:= sensorservice
56
57include $(BUILD_EXECUTABLE)