File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 34
34
error("Unknown abi: ${ANDROID_ABI} " )
35
35
endif ()
36
36
set (FFMPEG_DIR "${THIRDPARTY_DIR} /ffmpeg/build/${FFMPEG_ABI} " )
37
- set (LIBVPX_DIR "${THIRDPARTY_DIR} /libvpx/build/${FFMPEG_ABI} " )
38
37
set (FFMPEG_LIBS
39
38
swresample
40
39
avformat
@@ -44,6 +43,9 @@ set(FFMPEG_LIBS
44
43
avutil
45
44
)
46
45
46
+ set (VPX_DIR "${THIRDPARTY_DIR} /libvpx/build/${FFMPEG_ABI} " )
47
+ set (VPX_LIB_PATH "${VPX_DIR} /lib/libvpx.a" )
48
+
47
49
# == Setup ==
48
50
49
51
set (CMAKE_C_VISIBILITY_PRESET hidden)
@@ -92,6 +94,7 @@ set(EXCLUDE_LIBS
92
94
libflac.a
93
95
libtgvoip.a
94
96
libyuv.a
97
+ "${VPX_LIB_PATH} "
95
98
libopus.a
96
99
libogg.a
97
100
libopusfile.a
@@ -108,7 +111,6 @@ if (${USE_WEBP})
108
111
libwebpdecoder_static.a
109
112
)
110
113
endif ()
111
- list (APPEND EXCLUDE_LIBS "${LIBVPX_DIR} /lib/libvpx.a" )
112
114
foreach (ffmpeg_lib ${FFMPEG_LIBS} )
113
115
list (APPEND EXCLUDE_LIBS
114
116
"${FFMPEG_DIR} /lib/lib${ffmpeg_lib} .a"
@@ -169,8 +171,8 @@ include("${CMAKE_HOME_DIRECTORY}/BuildYuv.cmake")
169
171
170
172
# vpx
171
173
add_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" )
174
176
175
177
# opus
176
178
include ("${CMAKE_HOME_DIRECTORY} /BuildOpus.cmake" )
You can’t perform that action at this time.
0 commit comments