-
Notifications
You must be signed in to change notification settings - Fork 135
/
Android.mk
182 lines (164 loc) · 5.8 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
LOCAL_PATH := $(call my-dir)
COMMON_CFLAGS := \
-DGIT_VERSION=\"$(shell git -C $(LOCAL_PATH) describe --dirty)\" \
-DBUILD_LH1_SUPPORT \
-DSURVIVE_LIBUSB_UNVER_DIR \
-Wno-error=unused-function \
-Wno-error=unused-parameter \
-Wno-error=unused-variable \
-Wno-error=typedef-redefinition \
-Wno-error=ignored-qualifiers \
-Wno-error=switch \
-Wno-error=missing-braces \
-Wno-error=absolute-value \
-Wno-error=sign-compare \
-Wno-error=format \
-Wno-error=parentheses \
-Wno-error=unknown-pragmas
COMMON_C_INCLUDES := \
$(LOCAL_PATH)/include/libsurvive \
$(LOCAL_PATH)/redist
include $(CLEAR_VARS)
LOCAL_MODULE := libsurvive
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_CFLAGS := $(COMMON_CFLAGS)
LOCAL_C_INCLUDES := $(COMMON_C_INCLUDES)
LOCAL_PROPRIETARY_MODULE := true
LOCAL_EXPORT_C_INCLUDE_DIRS := \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/redist
LOCAL_STATIC_LIBRARIES := \
libcnkalman \
libcnmatrix
LOCAL_EXPORT_STATIC_LIBRARY_HEADERS := \
libcnkalman \
libcnmatrix
LOCAL_SHARED_LIBRARIES := \
libusb \
libutils \
libz
LOCAL_SRC_FILES := \
redist/mpfit/mpfit.c \
redist/crc32.c \
redist/glutil.c \
redist/jsmn.c \
redist/json_helpers.c \
redist/linmath.c \
redist/puff.c \
src/barycentric_svd/barycentric_svd.c \
src/lfsr.c \
src/lfsr_lh2.c \
src/ootx_decoder.c \
src/poser.c \
src/poser_general_optimizer.c \
src/survive.c \
src/survive_api.c \
src/survive_async_optimizer.c \
src/survive_buildinfo.c \
src/survive_config.c \
src/survive_default_devices.c \
src/survive_disambiguator.c \
src/survive_driverman.c \
src/survive_kalman_lighthouses.c \
src/survive_kalman_tracker.c \
src/survive_optimizer.c \
src/survive_recording.c \
src/survive_plugins.c \
src/survive_process.c \
src/survive_process_gen1.c \
src/survive_process_gen2.c \
src/survive_reproject.c \
src/survive_reproject_gen2.c \
src/survive_sensor_activations.c \
src/survive_str.c
ifneq ($(TARGET_SURVIVE_CONFIG_PATH),)
LOCAL_CFLAGS += -DSURVIVE_CONFIG_PATH=\"$(TARGET_SURVIVE_CONFIG_PATH)\"
endif
include $(BUILD_SHARED_LIBRARY)
# driver_global_scene_solver
include $(CLEAR_VARS)
LOCAL_MODULE := libsurvive-plugin-driver_global_scene_solver
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_CFLAGS := $(COMMON_CFLAGS)
LOCAL_C_INCLUDES := $(COMMON_C_INCLUDES)
LOCAL_SHARED_LIBRARIES := libsurvive libz
LOCAL_SRC_FILES := src/driver_global_scene_solver.c
LOCAL_PROPRIETARY_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := libsurvive/plugins
include $(BUILD_SHARED_LIBRARY)
# driver_playback
include $(CLEAR_VARS)
LOCAL_MODULE := libsurvive-plugin-driver_playback
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_CFLAGS := $(COMMON_CFLAGS)
LOCAL_C_INCLUDES := $(COMMON_C_INCLUDES)
LOCAL_SHARED_LIBRARIES := libsurvive libz
LOCAL_SRC_FILES := src/driver_playback.c
LOCAL_PROPRIETARY_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := libsurvive/plugins
include $(BUILD_SHARED_LIBRARY)
# driver_vive
include $(CLEAR_VARS)
LOCAL_MODULE := libsurvive-plugin-driver_vive
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_CFLAGS := $(COMMON_CFLAGS)
LOCAL_C_INCLUDES := $(COMMON_C_INCLUDES)
LOCAL_SHARED_LIBRARIES := libsurvive libusb
LOCAL_SRC_FILES := src/driver_vive.c
LOCAL_PROPRIETARY_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := libsurvive/plugins
include $(BUILD_SHARED_LIBRARY)
# disambiguator_statebased
include $(CLEAR_VARS)
LOCAL_MODULE := libsurvive-plugin-disambiguator_statebased
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_CFLAGS := $(COMMON_CFLAGS)
LOCAL_C_INCLUDES := $(COMMON_C_INCLUDES)
LOCAL_SHARED_LIBRARIES := libsurvive
LOCAL_SRC_FILES := src/disambiguator_statebased.c
LOCAL_PROPRIETARY_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := libsurvive/plugins
include $(BUILD_SHARED_LIBRARY)
# poser_barycentric_svd
include $(CLEAR_VARS)
LOCAL_MODULE := libsurvive-plugin-poser_barycentric_svd
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_CFLAGS := $(COMMON_CFLAGS)
LOCAL_C_INCLUDES := $(COMMON_C_INCLUDES)
LOCAL_SHARED_LIBRARIES := libsurvive
LOCAL_SRC_FILES := src/poser_barycentric_svd.c
LOCAL_PROPRIETARY_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := libsurvive/plugins
include $(BUILD_SHARED_LIBRARY)
# poser_kalman
include $(CLEAR_VARS)
LOCAL_MODULE := libsurvive-plugin-poser_kalman_only
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_CFLAGS := $(COMMON_CFLAGS)
LOCAL_C_INCLUDES := $(COMMON_C_INCLUDES)
LOCAL_SHARED_LIBRARIES := libsurvive
LOCAL_SRC_FILES := src/poser_kalman_only.c
LOCAL_PROPRIETARY_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := libsurvive/plugins
include $(BUILD_SHARED_LIBRARY)
# poser_mpfit
include $(CLEAR_VARS)
LOCAL_MODULE := libsurvive-plugin-poser_mpfit
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_CFLAGS := $(COMMON_CFLAGS)
LOCAL_C_INCLUDES := $(COMMON_C_INCLUDES)
LOCAL_SHARED_LIBRARIES := libsurvive
LOCAL_SRC_FILES := src/poser_mpfit.c
LOCAL_PROPRIETARY_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := libsurvive/plugins
include $(BUILD_SHARED_LIBRARY)
# survive-cli
include $(CLEAR_VARS)
LOCAL_MODULE := survive-cli
LOCAL_MODULE_CLASS := EXECUTABLES
LOCAL_CFLAGS := $(COMMON_CFLAGS)
LOCAL_C_INCLUDES := $(COMMON_C_INCLUDES)
LOCAL_SHARED_LIBRARIES := libsurvive
LOCAL_SRC_FILES := survive-cli.c
LOCAL_PROPRIETARY_MODULE := true
include $(BUILD_EXECUTABLE)