Index: test/win/idl-rules/idl_compiler.py |
diff --git a/test/win/idl-rules/idl_compiler.py b/test/win/idl-rules/idl_compiler.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a5a2ad04708ed8a7633cd72b09b9f15337e65363 |
--- /dev/null |
+++ b/test/win/idl-rules/idl_compiler.py |
@@ -0,0 +1,17 @@ |
+#!/usr/bin/env python |
+ |
+# Copyright (c) 2014 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. |
+ |
+# mock, just outputs empty .h/.cpp files |
+ |
+import os |
+import sys |
+ |
+if len(sys.argv) == 2: |
+ basename, ext = os.path.splitext(sys.argv[1]) |
+ with open('%s.h' % basename, 'w') as f: |
+ f.write('// %s.h\n' % basename) |
+ with open('%s.cpp' % basename, 'w') as f: |
+ f.write('// %s.cpp\n' % basename) |