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:= \ |
Mathias Agopian | 787ac1b | 2012-09-18 18:49:18 -0700 | [diff] [blame] | 5 | BatteryService.cpp \ |
Mathias Agopian | 984826c | 2011-05-17 22:54:42 -0700 | [diff] [blame] | 6 | CorrectedGyroSensor.cpp \ |
| 7 | Fusion.cpp \ |
| 8 | GravitySensor.cpp \ |
| 9 | LinearAccelerationSensor.cpp \ |
| 10 | OrientationSensor.cpp \ |
| 11 | RotationVectorSensor.cpp \ |
Mathias Agopian | f001c92 | 2010-11-11 17:58:51 -0800 | [diff] [blame] | 12 | SensorDevice.cpp \ |
Mathias Agopian | 984826c | 2011-05-17 22:54:42 -0700 | [diff] [blame] | 13 | SensorFusion.cpp \ |
| 14 | SensorInterface.cpp \ |
Peng Xu | eb4d628 | 2015-12-10 18:02:41 -0800 | [diff] [blame] | 15 | SensorService.cpp \ |
| 16 | SensorEventConnection.cpp \ |
| 17 | MostRecentEventLogger.cpp \ |
| 18 | SensorRecord.cpp \ |
| 19 | |
Mathias Agopian | fc32881 | 2010-07-14 23:41:37 -0700 | [diff] [blame] | 20 | |
| 21 | LOCAL_CFLAGS:= -DLOG_TAG=\"SensorService\" |
| 22 | |
Greg Kaiser | be6dd4e | 2016-03-22 12:21:46 -0700 | [diff] [blame^] | 23 | LOCAL_CFLAGS += -Wall -Werror -Wextra |
Aurimas Liutikas | 6f7854b | 2016-02-19 14:08:07 -0800 | [diff] [blame] | 24 | |
Mathias Agopian | b6df7d0 | 2013-05-09 14:53:35 -0700 | [diff] [blame] | 25 | LOCAL_CFLAGS += -fvisibility=hidden |
| 26 | |
Mathias Agopian | fc32881 | 2010-07-14 23:41:37 -0700 | [diff] [blame] | 27 | LOCAL_SHARED_LIBRARIES := \ |
| 28 | libcutils \ |
| 29 | libhardware \ |
Jaikumar Ganesh | 4342fdf | 2013-04-08 16:43:12 -0700 | [diff] [blame] | 30 | libhardware_legacy \ |
Mathias Agopian | fc32881 | 2010-07-14 23:41:37 -0700 | [diff] [blame] | 31 | libutils \ |
Ying Wang | 8a0cb4e | 2013-04-09 21:55:39 -0700 | [diff] [blame] | 32 | liblog \ |
Mathias Agopian | fc32881 | 2010-07-14 23:41:37 -0700 | [diff] [blame] | 33 | libbinder \ |
| 34 | libui \ |
| 35 | libgui |
| 36 | |
Mathias Agopian | fc32881 | 2010-07-14 23:41:37 -0700 | [diff] [blame] | 37 | LOCAL_MODULE:= libsensorservice |
| 38 | |
| 39 | include $(BUILD_SHARED_LIBRARY) |
Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 40 | |
| 41 | ##################################################################### |
| 42 | # build executable |
| 43 | include $(CLEAR_VARS) |
| 44 | |
| 45 | LOCAL_SRC_FILES:= \ |
| 46 | main_sensorservice.cpp |
| 47 | |
| 48 | LOCAL_SHARED_LIBRARIES := \ |
| 49 | libsensorservice \ |
| 50 | libbinder \ |
| 51 | libutils |
| 52 | |
Greg Kaiser | be6dd4e | 2016-03-22 12:21:46 -0700 | [diff] [blame^] | 53 | LOCAL_CFLAGS := -Wall -Werror -Wextra |
| 54 | |
Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 55 | LOCAL_MODULE_TAGS := optional |
| 56 | |
| 57 | LOCAL_MODULE:= sensorservice |
| 58 | |
| 59 | include $(BUILD_EXECUTABLE) |