We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a76e176 commit 1b4d1e9Copy full SHA for 1b4d1e9
1 file changed
CMakeLists.txt
@@ -254,6 +254,22 @@ if(APPLE)
254
-flax-vector-conversions)
255
endif()
256
257
+
258
+if(ANDROID)
259
+ if(DEFINED ANDROID_NDK)
260
+ set(_android_ndk "${ANDROID_NDK}")
261
+ elseif(DEFINED CMAKE_ANDROID_NDK)
262
+ set(_android_ndk "${CMAKE_ANDROID_NDK}")
263
+ endif()
264
+ if(_android_ndk)
265
+ target_include_directories(openshot-audio PRIVATE
266
+ "${_android_ndk}/sources/android/cpufeatures")
267
+ target_sources(openshot-audio PRIVATE
268
+ "${_android_ndk}/sources/android/cpufeatures/cpu-features.c")
269
270
+ target_link_libraries(openshot-audio PUBLIC log)
271
+endif()
272
273
# ALSA (Linux only)
274
if(UNIX AND NOT APPLE)
275
set(NEED_ALSA TRUE)
0 commit comments