Delete chrome.mediaGalleriesPrivate because the functionality unique to it has since...
[chromium-blink-merge.git] / chrome / tools / build / make_version_cc.py
blobd25d8d4836f1f3532ce83400c2678106a0cecde8
1 #!/usr/bin/env python
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
7 # Creates chrome_version.cc which contains the definition of the
8 # kChromeVersion constant.
10 import sys
12 def main(me, args):
13 if len(args) != 2:
14 print >>sys.stderr, 'usage: %s version.cc version' % me
15 return 1
17 (cc_file, version) = args
19 contents = '''// automatically generated by %s
21 #include "chrome/common/chrome_constants.h"
23 namespace chrome {
25 const char kChromeVersion[] = "%s";
27 } // namespace chrome
28 ''' % (me, version)
30 output = open(cc_file, 'w')
31 output.write(contents)
32 output.close()
34 return 0
36 if __name__ == '__main__':
37 sys.exit(main(sys.argv[0], sys.argv[1:]))