summaryrefslogtreecommitdiffstats
path: root/media/webrtc/trunk/tools/gyp/test/actions/generated-header/action.py
diff options
context:
space:
mode:
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/actions/generated-header/action.py')
-rw-r--r--media/webrtc/trunk/tools/gyp/test/actions/generated-header/action.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/actions/generated-header/action.py b/media/webrtc/trunk/tools/gyp/test/actions/generated-header/action.py
new file mode 100644
index 000000000..9be98798d
--- /dev/null
+++ b/media/webrtc/trunk/tools/gyp/test/actions/generated-header/action.py
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2013 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import os
+import sys
+
+outfile = sys.argv[1]
+open(outfile, 'w').write('const char kFoo[] = "%s";' % sys.argv[2])