File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 3434 error ("Unknown abi: ${ANDROID_ABI} " )
3535endif ()
3636set (FFMPEG_DIR "${THIRDPARTY_DIR} /ffmpeg/build/${FFMPEG_ABI} " )
37- set (LIBVPX_DIR "${THIRDPARTY_DIR} /libvpx/build/${FFMPEG_ABI} " )
3837set (FFMPEG_LIBS
3938 swresample
4039 avformat
@@ -44,6 +43,9 @@ set(FFMPEG_LIBS
4443 avutil
4544)
4645
46+ set (VPX_DIR "${THIRDPARTY_DIR} /libvpx/build/${FFMPEG_ABI} " )
47+ set (VPX_LIB_PATH "${VPX_DIR} /lib/libvpx.a" )
48+
4749# == Setup ==
4850
4951set (CMAKE_C_VISIBILITY_PRESET hidden)
@@ -92,6 +94,7 @@ set(EXCLUDE_LIBS
9294 libflac.a
9395 libtgvoip.a
9496 libyuv.a
97+ "${VPX_LIB_PATH} "
9598 libopus.a
9699 libogg.a
97100 libopusfile.a
@@ -108,7 +111,6 @@ if (${USE_WEBP})
108111 libwebpdecoder_static.a
109112 )
110113endif ()
111- list (APPEND EXCLUDE_LIBS "${LIBVPX_DIR} /lib/libvpx.a" )
112114foreach (ffmpeg_lib ${FFMPEG_LIBS} )
113115 list (APPEND EXCLUDE_LIBS
114116 "${FFMPEG_DIR} /lib/lib${ffmpeg_lib} .a"
@@ -169,8 +171,8 @@ include("${CMAKE_HOME_DIRECTORY}/BuildYuv.cmake")
169171
170172# vpx
171173add_library (vpx STATIC IMPORTED )
172- set_target_properties (vpx PROPERTIES IMPORTED_LOCATION "${LIBVPX_DIR} /lib/libvpx.a " )
173- target_include_directories (vpx INTERFACE "${LIBVPX_DIR } /include" )
174+ set_target_properties (vpx PROPERTIES IMPORTED_LOCATION "${VPX_LIB_PATH} " )
175+ target_include_directories (vpx INTERFACE "${VPX_DIR } /include" )
174176
175177# opus
176178include ("${CMAKE_HOME_DIRECTORY} /BuildOpus.cmake" )
You can’t perform that action at this time.
0 commit comments