blob: cfb72310d577c1345f4775a5fe2de488808d6bfe [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 \
Steven Morelandd15c0302016-12-20 11:14:50 -080013 SensorDevice.cpp \
Peng Xue36e3472016-11-03 11:57:10 -070014 SensorDirectConnection.cpp \
Peng Xu6a2d3a02015-12-21 12:00:23 -080015 SensorEventConnection.cpp \
Mathias Agopian984826c2011-05-17 22:54:42 -070016 SensorFusion.cpp \
17 SensorInterface.cpp \
Peng Xu0cc8f802016-04-05 23:46:03 -070018 SensorList.cpp \
Peng Xu6a2d3a02015-12-21 12:00:23 -080019 SensorRecord.cpp \
20 SensorService.cpp \
21 SensorServiceUtils.cpp \
Peng Xueb4d6282015-12-10 18:02:41 -080022
Mathias Agopianfc328812010-07-14 23:41:37 -070023LOCAL_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 \
Mathias Agopian801ea092017-03-06 15:05:04 -080036 libsensor \
Andreas Huber99fdbb52016-10-10 13:22:58 -070037 libcrypto \
Andreas Huber99fdbb52016-10-10 13:22:58 -070038 libbase \
Yifan Hong67a47622016-11-17 13:02:06 -080039 libhidlbase \
40 libhidltransport \
Andreas Huber99fdbb52016-10-10 13:22:58 -070041 libhwbinder \
42 android.hardware.sensors@1.0
43
44LOCAL_STATIC_LIBRARIES := \
45 android.hardware.sensors@1.0-convert
46
Mathias Agopian801ea092017-03-06 15:05:04 -080047# our public headers depend on libsensor
48LOCAL_EXPORT_SHARED_LIBRARY_HEADERS := \
49 libsensor \
50
Mathias Agopianfc328812010-07-14 23:41:37 -070051LOCAL_MODULE:= libsensorservice
52
53include $(BUILD_SHARED_LIBRARY)
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070054
55#####################################################################
56# build executable
57include $(CLEAR_VARS)
58
59LOCAL_SRC_FILES:= \
Peng Xu6a2d3a02015-12-21 12:00:23 -080060 main_sensorservice.cpp
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070061
62LOCAL_SHARED_LIBRARIES := \
Peng Xu6a2d3a02015-12-21 12:00:23 -080063 libsensorservice \
64 libbinder \
65 libutils
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070066
Greg Kaiserbe6dd4e2016-03-22 12:21:46 -070067LOCAL_CFLAGS := -Wall -Werror -Wextra
68
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070069LOCAL_MODULE_TAGS := optional
70
71LOCAL_MODULE:= sensorservice
72
73include $(BUILD_EXECUTABLE)