Index: webrtc/build/no_op_function.cc |
diff --git a/webrtc/modules/desktop_capture/screen_drawer_mac.cc b/webrtc/build/no_op_function.cc |
similarity index 62% |
copy from webrtc/modules/desktop_capture/screen_drawer_mac.cc |
copy to webrtc/build/no_op_function.cc |
index 1d0437b5a1022b26afaa5942d6abe76066fe455b..4c10e37d39f9b4c89769b7ee72a8357d48156d26 100644 |
--- a/webrtc/modules/desktop_capture/screen_drawer_mac.cc |
+++ b/webrtc/build/no_op_function.cc |
@@ -8,15 +8,16 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
-// TODO(zijiehe): Implement ScreenDrawerMac |
- |
-#include "webrtc/modules/desktop_capture/screen_drawer.h" |
- |
namespace webrtc { |
-// static |
-std::unique_ptr<ScreenDrawer> ScreenDrawer::Create() { |
- return nullptr; |
+// TODO(kjellander): Remove this whenever possible. GN's static_library |
+// target type requires at least one object to avoid errors linking. |
+ |
+// No-op function that can be used to compile an object necessary |
+// for linking into a static library. |
+int foobarbaz() { |
+ return 0; |
} |
} // namespace webrtc |
+ |