| Steven Moreland | c6451d3 | 2017-04-21 01:57:19 +0000 | [diff] [blame^] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
| 4 | LOCAL_SRC_FILES:= \ |
| 5 | BatteryService.cpp \ |
| 6 | CorrectedGyroSensor.cpp \ |
| 7 | Fusion.cpp \ |
| 8 | GravitySensor.cpp \ |
| 9 | LinearAccelerationSensor.cpp \ |
| 10 | OrientationSensor.cpp \ |
| 11 | RecentEventLogger.cpp \ |
| 12 | RotationVectorSensor.cpp \ |
| 13 | SensorDevice.cpp \ |
| 14 | SensorEventConnection.cpp \ |
| 15 | SensorFusion.cpp \ |
| 16 | SensorInterface.cpp \ |
| 17 | SensorList.cpp \ |
| 18 | SensorRecord.cpp \ |
| 19 | SensorService.cpp \ |
| 20 | SensorServiceUtils.cpp \ |
| 21 | |
| 22 | |
| 23 | LOCAL_CFLAGS:= -DLOG_TAG=\"SensorService\" |
| 24 | |
| 25 | LOCAL_CFLAGS += -Wall -Werror -Wextra |
| 26 | |
| 27 | LOCAL_CFLAGS += -fvisibility=hidden |
| 28 | |
| 29 | LOCAL_SHARED_LIBRARIES := \ |
| 30 | libcutils \ |
| 31 | libhardware \ |
| 32 | libhardware_legacy \ |
| 33 | libutils \ |
| 34 | liblog \ |
| 35 | libbinder \ |
| 36 | libui \ |
| 37 | libgui \ |
| 38 | libcrypto |
| 39 | |
| 40 | LOCAL_MODULE:= libsensorservice |
| 41 | |
| 42 | include $(BUILD_SHARED_LIBRARY) |
| 43 | |
| 44 | ##################################################################### |
| 45 | # build executable |
| 46 | include $(CLEAR_VARS) |
| 47 | |
| 48 | LOCAL_SRC_FILES:= \ |
| 49 | main_sensorservice.cpp |
| 50 | |
| 51 | LOCAL_SHARED_LIBRARIES := \ |
| 52 | libsensorservice \ |
| 53 | libbinder \ |
| 54 | libutils |
| 55 | |
| 56 | LOCAL_CFLAGS := -Wall -Werror -Wextra |
| 57 | |
| 58 | LOCAL_MODULE_TAGS := optional |
| 59 | |
| 60 | LOCAL_MODULE:= sensorservice |
| 61 | |
| 62 | include $(BUILD_EXECUTABLE) |