@@ -8,21 +8,18 @@ import("//testing/test.gni")
8
8
# Introduced for using libvpx config files. We only enable libvpx rate
9
9
# controller for VP9 on Windows.
10
10
if (is_win ) {
11
- os_category = current_os
12
-
13
- if (current_cpu == " x86" ) {
14
- cpu_arch_full = " ia32"
15
- } else if (current_cpu == " x64" ) {
16
- cpu_arch_full = " x64"
17
- } else if (current_cpu == " arm" ) {
18
- if (arm_use_neon ) {
19
- cpu_arch_full = " arm-neon"
20
- } else if (is_android ) {
21
- cpu_arch_full = " arm-neon-cpu-detect"
22
- } else {
23
- cpu_arch_full = " arm"
24
- }
25
- }
11
+
12
+ if (current_cpu == " x86" ) {
13
+ cpu_arch_full = " ia32"
14
+ } else if (current_cpu == " x64" ) {
15
+ cpu_arch_full = " x64"
16
+ } else if (current_cpu == " arm" ) {
17
+ if (arm_use_neon ) {
18
+ cpu_arch_full = " arm-neon"
19
+ } else {
20
+ cpu_arch_full = " arm"
21
+ }
22
+ }
26
23
}
27
24
28
25
if (is_android ) {
@@ -204,6 +201,14 @@ static_library("owt_sdk_base") {
204
201
" sdk/base/win/sysmem_allocator.cc" ,
205
202
" sdk/base/win/sysmem_allocator.h" ,
206
203
" sdk/base/win/vpedefs.h" ,
204
+ " sdk/base/win/vp9ratecontrol.cc" ,
205
+ " sdk/base/win/vp9ratecontrol.h" ,
206
+ ]
207
+ public_deps += [ " //third_party/libvpx" ]
208
+ include_dirs += [
209
+ " //third_party/libvpx/source/config" ,
210
+ " //third_party/libvpx/source/config/$current_os /$cpu_arch_full " ,
211
+ " //third_party/libvpx/source/libvpx" ,
207
212
]
208
213
}
209
214
@@ -241,21 +246,14 @@ static_library("owt_sdk_base") {
241
246
" sdk/base/win/videorendererwin.h" ,
242
247
" sdk/base/win/videorendererd3d11.cc" ,
243
248
" sdk/base/win/videorendererd3d11.h" ,
244
- " sdk/base/win/vp9ratecontrol.cc" ,
245
- " sdk/base/win/vp9ratecontrol.h" ,
246
249
" sdk/base/win/d3d11_manager.h" ,
247
250
" sdk/base/win/device_info_mf.h" ,
248
251
" sdk/base/win/device_info_mf.cc" ,
249
252
" sdk/base/win/video_capture_mf.h" ,
250
253
" sdk/base/win/video_capture_mf.cc" ,
251
254
]
252
255
public_deps += [ " //third_party/webrtc/modules/audio_device:audio_device_module_from_input_and_output" ]
253
- public_deps += [ " //third_party/libvpx" ]
254
- include_dirs += [
255
- " //third_party/libvpx/source/config" ,
256
- " //third_party/libvpx/source/config/$os_category /$cpu_arch_full " ,
257
- " //third_party/libvpx/source/libvpx" ,
258
- ]
256
+
259
257
}
260
258
if (is_linux ) {
261
259
if (owt_msdk_header_root != " " ) {
0 commit comments