blob: 7b10319e1b990470d0bd07c1748bcbb3f20aa755 [file] [log] [blame]
Steven Morelandc6451d32017-04-21 01:57:19 +00001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_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
23LOCAL_CFLAGS:= -DLOG_TAG=\"SensorService\"
24
25LOCAL_CFLAGS += -Wall -Werror -Wextra
26
27LOCAL_CFLAGS += -fvisibility=hidden
28
29LOCAL_SHARED_LIBRARIES := \
30 libcutils \
31 libhardware \
32 libhardware_legacy \
33 libutils \
34 liblog \
35 libbinder \
36 libui \
37 libgui \
38 libcrypto
39
40LOCAL_MODULE:= libsensorservice
41
42include $(BUILD_SHARED_LIBRARY)
43
44#####################################################################
45# build executable
46include $(CLEAR_VARS)
47
48LOCAL_SRC_FILES:= \
49 main_sensorservice.cpp
50
51LOCAL_SHARED_LIBRARIES := \
52 libsensorservice \
53 libbinder \
54 libutils
55
56LOCAL_CFLAGS := -Wall -Werror -Wextra
57
58LOCAL_MODULE_TAGS := optional
59
60LOCAL_MODULE:= sensorservice
61
62include $(BUILD_EXECUTABLE)