GN: Enable libvpx, add link target and convert some test targets
Libvpx now supports GN and this CL turns on compiling it. I also introduced an executable target 'webrtc_tests' that depends on all in WeBRTC + tests in order to get a full linking step executed (since we've seen link problems for GN when rolling WebRTC into Chromium). I also converted a few test targets and made a GN file for third_party/gflags. BUG=3441 TESTED=Trybots + full Chromium build with a symlinked src/third_party/webrtc dir to a workspace wit this CL applied. R=brettw@chromium.org TBR=niklas.enbom@webrtc.org Review URL: https://webrtc-codereview.appspot.com/25569004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7344 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -86,6 +86,8 @@ source_set("video_coding_utility") {
|
||||
sources = [
|
||||
"utility/include/frame_dropper.h",
|
||||
"utility/frame_dropper.cc",
|
||||
"utility/quality_scaler.cc",
|
||||
"utility/quality_scaler.h",
|
||||
]
|
||||
|
||||
configs += [ "../..:common_config" ]
|
||||
@ -118,21 +120,19 @@ source_set("webrtc_i420") {
|
||||
deps = [ "../../system_wrappers" ]
|
||||
}
|
||||
|
||||
# TODO(holmer): Some files below has been commented out since libvpx is still
|
||||
# missing a BUILD.gn file.
|
||||
source_set("webrtc_vp8") {
|
||||
sources = [
|
||||
# "codecs/vp8/default_temporal_layers.cc",
|
||||
# "codecs/vp8/default_temporal_layers.h",
|
||||
# "codecs/vp8/realtime_temporal_layers.cc",
|
||||
# "codecs/vp8/reference_picture_selection.cc",
|
||||
# "codecs/vp8/reference_picture_selection.h",
|
||||
"codecs/vp8/default_temporal_layers.cc",
|
||||
"codecs/vp8/default_temporal_layers.h",
|
||||
"codecs/vp8/realtime_temporal_layers.cc",
|
||||
"codecs/vp8/reference_picture_selection.cc",
|
||||
"codecs/vp8/reference_picture_selection.h",
|
||||
"codecs/vp8/include/vp8.h",
|
||||
"codecs/vp8/include/vp8_common_types.h",
|
||||
"codecs/vp8/temporal_layers.h",
|
||||
"codecs/vp8/vp8_factory.cc",
|
||||
# "codecs/vp8/vp8_impl.cc",
|
||||
# "codecs/vp8/vp8_impl.h",
|
||||
"codecs/vp8/vp8_impl.cc",
|
||||
"codecs/vp8/vp8_impl.h",
|
||||
]
|
||||
|
||||
configs += [ "../..:common_config" ]
|
||||
@ -144,14 +144,18 @@ source_set("webrtc_vp8") {
|
||||
configs -= [ "//build/config/clang:find_bad_constructs" ]
|
||||
}
|
||||
|
||||
# TODO(kjellander): Remove once libvpx has changed it's libvpx_config to be
|
||||
# in direct_dependent_configs.
|
||||
configs += [ "//third_party/libvpx:libvpx_config" ]
|
||||
|
||||
deps = [
|
||||
":video_coding_utility",
|
||||
"../../common_video",
|
||||
"../../system_wrappers",
|
||||
]
|
||||
# if (rtc_build_libvpx) {
|
||||
# deps += [
|
||||
# "//third_party/libvpx",
|
||||
# ]
|
||||
# }
|
||||
if (rtc_build_libvpx) {
|
||||
deps += [
|
||||
"//third_party/libvpx",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user