Mac: Add version number to dylib files (issue #730).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@797 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
4d30b132c6
commit
b42dc21a99
|
@ -8,6 +8,10 @@
|
|||
'chromium_code': 1,
|
||||
'repack_locales_cmd': ['python', 'tools/repack_locales.py'],
|
||||
'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/cef',
|
||||
'revision': '<!(python tools/revision.py)',
|
||||
# Need to be creative to match dylib version formatting requirements.
|
||||
'version_mac_dylib':
|
||||
'<!(python ../chrome/tools/build/version.py -f ../chrome/VERSION -t "1<(revision).@BUILD_HI@.@BUILD_LO@" -e "BUILD_HI=int(BUILD)/256" -e "BUILD_LO=int(BUILD)%256")',
|
||||
},
|
||||
'conditions': [
|
||||
[ 'os_posix==1 and OS!="mac" and OS!="android" and gcc_version==46', {
|
||||
|
@ -477,6 +481,8 @@
|
|||
# runtime error. See http://developer.apple.com/library/mac/#qa/qa1490/_index.html
|
||||
# for more information.
|
||||
'OTHER_LDFLAGS': ['-Wl,-ObjC'],
|
||||
'DYLIB_COMPATIBILITY_VERSION': '<(version_mac_dylib)',
|
||||
'DYLIB_CURRENT_VERSION': '<(version_mac_dylib)',
|
||||
},
|
||||
'conditions': [
|
||||
['OS=="win"', {
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
# Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
# reserved. Use of this source code is governed by a BSD-style license that
|
||||
# can be found in the LICENSE file.
|
||||
|
||||
import svn_util as svn
|
||||
import git_util as git
|
||||
import sys
|
||||
|
||||
# cannot be loaded as a module
|
||||
if __name__ != "__main__":
|
||||
sys.stderr.write('This file cannot be loaded as a module!')
|
||||
sys.exit()
|
||||
|
||||
try:
|
||||
sys.stdout.write(svn.get_revision())
|
||||
except:
|
||||
sys.stdout.write(git.get_svn_revision())
|
||||
|
||||
|
Loading…
Reference in New Issue