Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Unified Diff: chrome/tools/build/make_version_cc.py

Issue 267102: Better code to determine the framework and helper app paths (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« chrome/common/chrome_paths_mac.mm ('K') | « chrome/common/chrome_paths_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/build/make_version_cc.py
===================================================================
--- chrome/tools/build/make_version_cc.py (revision 0)
+++ chrome/tools/build/make_version_cc.py (revision 0)
@@ -0,0 +1,35 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Creates chrome_version.cc which contains the definition of the
+# kChromeVersion constant.
+
+import sys
+
+def main(me, args):
+ if len(args) != 2:
+ print >>sys.stderr, 'usage: %s version.cc version' % me
+ return 1
+
+ (cc_file, version) = args
+
+ contents = '''// automatically generated by %s
+
+namespace chrome {
+
+extern const char kChromeVersion[] = "%s";
TVL 2009/10/14 21:09:15 why extern?
Mark Mentovai 2009/10/14 21:26:46 TVL wrote:
+
+} // namespace chrome
+''' % (me, version)
+
+ output = open(cc_file, 'w')
+ output.write(contents)
+ output.close()
+
+ return 0
+
+if __name__ == '__main__':
+ sys.exit(main(sys.argv[0], sys.argv[1:]))
Property changes on: chrome/tools/build/make_version_cc.py
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:eol-style
+ LF
« chrome/common/chrome_paths_mac.mm ('K') | « chrome/common/chrome_paths_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698