summaryrefslogtreecommitdiff
path: root/deps/gyp/test/win/idl-rules/idl_compiler.py
blob: a12b274d6754c4e7d8b6d669abacfa59987e5604 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)