Mathias Agopian | fc32881 | 2010-07-14 23:41:37 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
| 4 | LOCAL_SRC_FILES:= \ |
Peng Xu | 6a2d3a0 | 2015-12-21 12:00:23 -0800 | [diff] [blame] | 5 | BatteryService.cpp \ |
| 6 | CorrectedGyroSensor.cpp \ |
Mathias Agopian | 984826c | 2011-05-17 22:54:42 -0700 | [diff] [blame] | 7 | Fusion.cpp \ |
| 8 | GravitySensor.cpp \ |
| 9 | LinearAccelerationSensor.cpp \ |
| 10 | OrientationSensor.cpp \ |
Peng Xu | 6a2d3a0 | 2015-12-21 12:00:23 -0800 | [diff] [blame] | 11 | RecentEventLogger.cpp \ |
Mathias Agopian | 984826c | 2011-05-17 22:54:42 -0700 | [diff] [blame] | 12 | RotationVectorSensor.cpp \ |
Peng Xu | e36e347 | 2016-11-03 11:57:10 -0700 | [diff] [blame] | 13 | SensorDirectConnection.cpp \ |
Peng Xu | 6a2d3a0 | 2015-12-21 12:00:23 -0800 | [diff] [blame] | 14 | SensorEventConnection.cpp \ |
Mathias Agopian | 984826c | 2011-05-17 22:54:42 -0700 | [diff] [blame] | 15 | SensorFusion.cpp \ |
| 16 | SensorInterface.cpp \ |
Peng Xu | 0cc8f80 | 2016-04-05 23:46:03 -0700 | [diff] [blame] | 17 | SensorList.cpp \ |
Peng Xu | 6a2d3a0 | 2015-12-21 12:00:23 -0800 | [diff] [blame] | 18 | SensorRecord.cpp \ |
| 19 | SensorService.cpp \ |
| 20 | SensorServiceUtils.cpp \ |
Peng Xu | eb4d628 | 2015-12-10 18:02:41 -0800 | [diff] [blame] | 21 | |
Mathias Agopian | fc32881 | 2010-07-14 23:41:37 -0700 | [diff] [blame] | 22 | LOCAL_CFLAGS:= -DLOG_TAG=\"SensorService\" |
| 23 | |
Greg Kaiser | be6dd4e | 2016-03-22 12:21:46 -0700 | [diff] [blame] | 24 | LOCAL_CFLAGS += -Wall -Werror -Wextra |
Aurimas Liutikas | 6f7854b | 2016-02-19 14:08:07 -0800 | [diff] [blame] | 25 | |
Mathias Agopian | b6df7d0 | 2013-05-09 14:53:35 -0700 | [diff] [blame] | 26 | LOCAL_CFLAGS += -fvisibility=hidden |
| 27 | |
Andreas Huber | 99fdbb5 | 2016-10-10 13:22:58 -0700 | [diff] [blame] | 28 | ifeq ($(ENABLE_TREBLE), true) |
| 29 | LOCAL_SRC_FILES += SensorDeviceTreble.cpp |
| 30 | LOCAL_CFLAGS += -DENABLE_TREBLE=1 |
| 31 | else |
| 32 | LOCAL_SRC_FILES += SensorDevice.cpp |
| 33 | endif |
| 34 | |
Mathias Agopian | fc32881 | 2010-07-14 23:41:37 -0700 | [diff] [blame] | 35 | LOCAL_SHARED_LIBRARIES := \ |
Peng Xu | 6a2d3a0 | 2015-12-21 12:00:23 -0800 | [diff] [blame] | 36 | libcutils \ |
| 37 | libhardware \ |
| 38 | libhardware_legacy \ |
| 39 | libutils \ |
| 40 | liblog \ |
| 41 | libbinder \ |
| 42 | libui \ |
Greg Kaiser | 53ca2e0 | 2016-06-21 16:11:14 -0700 | [diff] [blame] | 43 | libgui \ |
Andreas Huber | 99fdbb5 | 2016-10-10 13:22:58 -0700 | [diff] [blame] | 44 | libcrypto \ |
| 45 | |
| 46 | ifeq ($(ENABLE_TREBLE), true) |
| 47 | |
| 48 | LOCAL_SHARED_LIBRARIES += \ |
| 49 | libbase \ |
Yifan Hong | 67a4762 | 2016-11-17 13:02:06 -0800 | [diff] [blame] | 50 | libhidlbase \ |
| 51 | libhidltransport \ |
Andreas Huber | 99fdbb5 | 2016-10-10 13:22:58 -0700 | [diff] [blame] | 52 | libhwbinder \ |
| 53 | android.hardware.sensors@1.0 |
| 54 | |
| 55 | LOCAL_STATIC_LIBRARIES := \ |
| 56 | android.hardware.sensors@1.0-convert |
| 57 | |
| 58 | endif # ENABLE_TREBLE |
Mathias Agopian | fc32881 | 2010-07-14 23:41:37 -0700 | [diff] [blame] | 59 | |
Mathias Agopian | fc32881 | 2010-07-14 23:41:37 -0700 | [diff] [blame] | 60 | LOCAL_MODULE:= libsensorservice |
| 61 | |
| 62 | include $(BUILD_SHARED_LIBRARY) |
Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 63 | |
| 64 | ##################################################################### |
| 65 | # build executable |
| 66 | include $(CLEAR_VARS) |
| 67 | |
| 68 | LOCAL_SRC_FILES:= \ |
Peng Xu | 6a2d3a0 | 2015-12-21 12:00:23 -0800 | [diff] [blame] | 69 | main_sensorservice.cpp |
Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 70 | |
| 71 | LOCAL_SHARED_LIBRARIES := \ |
Peng Xu | 6a2d3a0 | 2015-12-21 12:00:23 -0800 | [diff] [blame] | 72 | libsensorservice \ |
| 73 | libbinder \ |
| 74 | libutils |
Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 75 | |
Greg Kaiser | be6dd4e | 2016-03-22 12:21:46 -0700 | [diff] [blame] | 76 | LOCAL_CFLAGS := -Wall -Werror -Wextra |
| 77 | |
Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 78 | LOCAL_MODULE_TAGS := optional |
| 79 | |
| 80 | LOCAL_MODULE:= sensorservice |
| 81 | |
| 82 | include $(BUILD_EXECUTABLE) |