diff options
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/win/idl-rules/idl_compiler.py')
-rw-r--r-- | media/webrtc/trunk/tools/gyp/test/win/idl-rules/idl_compiler.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/win/idl-rules/idl_compiler.py b/media/webrtc/trunk/tools/gyp/test/win/idl-rules/idl_compiler.py new file mode 100644 index 000000000..a12b274d6 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/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) |