From ef9f6eb8c3f2bda1dfb0de3aeca3f407d699b2d0 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Mon, 5 Oct 2015 12:50:18 +0800 Subject: [PATCH] Define related marcos for webrtc on Windows and OS X. --- brightray/brightray.gypi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/brightray/brightray.gypi b/brightray/brightray.gypi index fa442967671..cd567485a83 100644 --- a/brightray/brightray.gypi +++ b/brightray/brightray.gypi @@ -163,6 +163,13 @@ '-fno-rtti', ], }], # OS=="linux" + ['OS=="mac"', { + 'defines': [ + # The usage of "webrtc/modules/desktop_capture/desktop_capture_options.h" + # is required to see this macro. + 'WEBRTC_MAC', + ], + }], # OS=="mac" ['OS=="win"', { 'include_dirs': [ '<(libchromiumcontent_src_dir)/third_party/wtl/include', @@ -179,6 +186,9 @@ 'WIN32_LEAN_AND_MEAN', '_ATL_NO_OPENGL', '_SECURE_ATL', + # The usage of "webrtc/modules/desktop_capture/desktop_capture_options.h" + # is required to see this macro. + 'WEBRTC_WIN', ], 'conditions': [ ['target_arch=="x64"', {