Will now copy apprtc to out/ in order to resolve symlinks on Windows.

Turns out shutil.copytree automatically resolves symlinks, even on Windows.
This solves the problem we had with the adapter.js file as described in
https://code.google.com/p/webrtc/issues/detail?id=2542.

BUG=webrtc:2542
R=kjellander@chromium.org

Review URL: https://codereview.chromium.org/32063003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/webrtc/webrtc.DEPS@229781 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
diff --git a/DEPS b/DEPS
index 482aca2..66c99ba 100644
--- a/DEPS
+++ b/DEPS
@@ -30,4 +30,11 @@
                 "webrtc.DEPS/download_appengine_sdk.py",
                 "webrtc.DEPS"],
   },
+  {
+    # "Build" AppRTC, i.e. move it to the out/ dir where the browser test
+    # can find it. This is only done on runhooks.
+    "pattern": ".",
+    "action" : ["python",
+                "webrtc.DEPS/copy_apprtc.py"],
+  }
 ]
diff --git a/copy_apprtc.py b/copy_apprtc.py
new file mode 100755
index 0000000..3a7723f
--- /dev/null
+++ b/copy_apprtc.py
@@ -0,0 +1,19 @@
+#!/usr/bin/python
+# Copyright 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Moves Apprtc to the out/ directory, where the browser test can find it.
+
+This copy will resolve symlinks on all platforms, which is useful for Apprtc
+since it uses symlinks for its common javascript files (and Windows does not
+understand those symlinks).
+"""
+
+import shutil
+
+
+if __name__ == '__main__':
+  shutil.rmtree('src/out/apprtc', ignore_errors=True);
+  shutil.copytree('src/third_party/webrtc_apprtc/apprtc',
+                  'src/out/apprtc', ignore=shutil.ignore_patterns('.svn'))