blob: 7b10319e1b990470d0bd07c1748bcbb3f20aa755 [file] [log] [blame]
Mathias Agopianfc328812010-07-14 23:41:37 -07001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_SRC_FILES:= \
Peng Xu6a2d3a02015-12-21 12:00:23 -08005 BatteryService.cpp \
6 CorrectedGyroSensor.cpp \
Mathias Agopian984826c2011-05-17 22:54:42 -07007 Fusion.cpp \
8 GravitySensor.cpp \
9 LinearAccelerationSensor.cpp \
10 OrientationSensor.cpp \
Peng Xu6a2d3a02015-12-21 12:00:23 -080011 RecentEventLogger.cpp \
Mathias Agopian984826c2011-05-17 22:54:42 -070012 RotationVectorSensor.cpp \
Mathias Agopianf001c922010-11-11 17:58:51 -080013 SensorDevice.cpp \
Peng Xu6a2d3a02015-12-21 12:00:23 -080014 SensorEventConnection.cpp \
Mathias Agopian984826c2011-05-17 22:54:42 -070015 SensorFusion.cpp \
16 SensorInterface.cpp \
Peng Xu0cc8f802016-04-05 23:46:03 -070017 SensorList.cpp \
Peng Xu6a2d3a02015-12-21 12:00:23 -080018 SensorRecord.cpp \
19 SensorService.cpp \
20 SensorServiceUtils.cpp \
Peng Xueb4d6282015-12-10 18:02:41 -080021
Mathias Agopianfc328812010-07-14 23:41:37 -070022
23LOCAL_CFLAGS:= -DLOG_TAG=\"SensorService\"
24
Greg Kaiserbe6dd4e2016-03-22 12:21:46 -070025LOCAL_CFLAGS += -Wall -Werror -Wextra
Aurimas Liutikas6f7854b2016-02-19 14:08:07 -080026
Mathias Agopianb6df7d02013-05-09 14:53:35 -070027LOCAL_CFLAGS += -fvisibility=hidden
28
Mathias Agopianfc328812010-07-14 23:41:37 -070029LOCAL_SHARED_LIBRARIES := \
Peng Xu6a2d3a02015-12-21 12:00:23 -080030 libcutils \
31 libhardware \
32 libhardware_legacy \
33 libutils \
34 liblog \
35 libbinder \
36 libui \
Greg Kaiser53ca2e02016-06-21 16:11:14 -070037 libgui \
38 libcrypto
Mathias Agopianfc328812010-07-14 23:41:37 -070039
Mathias Agopianfc328812010-07-14 23:41:37 -070040LOCAL_MODULE:= libsensorservice
41
42include $(BUILD_SHARED_LIBRARY)
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070043
44#####################################################################
45# build executable
46include $(CLEAR_VARS)
47
48LOCAL_SRC_FILES:= \
Peng Xu6a2d3a02015-12-21 12:00:23 -080049 main_sensorservice.cpp
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070050
51LOCAL_SHARED_LIBRARIES := \
Peng Xu6a2d3a02015-12-21 12:00:23 -080052 libsensorservice \
53 libbinder \
54 libutils
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070055
Greg Kaiserbe6dd4e2016-03-22 12:21:46 -070056LOCAL_CFLAGS := -Wall -Werror -Wextra
57
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070058LOCAL_MODULE_TAGS := optional
59
60LOCAL_MODULE:= sensorservice
61
62include $(BUILD_EXECUTABLE)