blob: d61f26fe8407e3290d93c2f575bc2631ea8d936f [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 \
36 libui \
Greg Kaiser53ca2e02016-06-21 16:11:14 -070037 libgui \
Andreas Huber99fdbb52016-10-10 13:22:58 -070038 libcrypto \
Andreas Huber99fdbb52016-10-10 13:22:58 -070039 libbase \
Yifan Hong67a47622016-11-17 13:02:06 -080040 libhidlbase \
41 libhidltransport \
Andreas Huber99fdbb52016-10-10 13:22:58 -070042 libhwbinder \
43 android.hardware.sensors@1.0
44
45LOCAL_STATIC_LIBRARIES := \
46 android.hardware.sensors@1.0-convert
47
Mathias Agopianfc328812010-07-14 23:41:37 -070048LOCAL_MODULE:= libsensorservice
49
50include $(BUILD_SHARED_LIBRARY)
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070051
52#####################################################################
53# build executable
54include $(CLEAR_VARS)
55
56LOCAL_SRC_FILES:= \
Peng Xu6a2d3a02015-12-21 12:00:23 -080057 main_sensorservice.cpp
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070058
59LOCAL_SHARED_LIBRARIES := \
Peng Xu6a2d3a02015-12-21 12:00:23 -080060 libsensorservice \
61 libbinder \
62 libutils
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070063
Greg Kaiserbe6dd4e2016-03-22 12:21:46 -070064LOCAL_CFLAGS := -Wall -Werror -Wextra
65
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070066LOCAL_MODULE_TAGS := optional
67
68LOCAL_MODULE:= sensorservice
69
70include $(BUILD_EXECUTABLE)