Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #386 from rakuco/gn-rssdk
Browse files Browse the repository at this point in the history
[Windows] GN: Add missing RSSDK files in media/.
  • Loading branch information
Raphael Kubo da Costa authored Sep 30, 2016
2 parents f3c69fc + f1476d3 commit b53bd1c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions media/capture/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import("//build/config/features.gni")
import("//media/media_options.gni")
import("//testing/test.gni")

declare_args() {
# Windows: whether to use Intel's RealSense SDK for video capture.
use_rssdk = false
}

source_set("capture") {
sources = [
"content/animated_content_sampler.cc",
Expand Down Expand Up @@ -128,6 +133,20 @@ source_set("capture") {
"/DELAYLOAD:mfplat.dll",
"/DELAYLOAD:mfreadwrite.dll",
]

if (use_rssdk) {
defines = [ "USE_RSSDK" ]
deps += [ "//third_party/libpxc" ]
sources += [
"video/win/video_capture_device_rs_win.cc",
"video/win/video_capture_device_rs_win.h",
]
} else {
sources += [
"video/win/video_capture_device_rs_win_null.cc",
"video/win/video_capture_device_rs_win_null.h",
]
}
}
}

Expand Down

0 comments on commit b53bd1c

Please sign in to comment.