- Timestamp:
- May 14, 2012 10:42:56 AM (13 years ago)
- Location:
- pjproject/branches/1.x
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjsip-apps/src/python/setup-vc.py
r2394 r4121 25 25 # Find version 26 26 pj_version="" 27 f = open('../../../pjlib/src/pj/config.c', 'r') 27 pj_version_major="" 28 pj_version_minor="" 29 pj_version_rev="" 30 pj_version_suffix="" 31 f = open('../../../version.mak', 'r') 28 32 for line in f: 29 if line.find("PJ_VERSION") != -1: 30 pj_version = line.split("=")[1].strip('";\r\n ') 31 break 33 if line.find("export PJ_VERSION_MAJOR") != -1: 34 tokens=line.split("=") 35 if len(tokens)>1: 36 pj_version_major= tokens[1].strip() 37 elif line.find("export PJ_VERSION_MINOR") != -1: 38 tokens=line.split("=") 39 if len(tokens)>1: 40 pj_version_minor= line.split("=")[1].strip() 41 elif line.find("export PJ_VERSION_REV") != -1: 42 tokens=line.split("=") 43 if len(tokens)>1: 44 pj_version_rev= line.split("=")[1].strip() 45 elif line.find("export PJ_VERSION_SUFFIX") != -1: 46 tokens=line.split("=") 47 if len(tokens)>1: 48 pj_version_suffix= line.split("=")[1].strip() 49 32 50 f.close() 33 if pj_version=="":34 print 'Unable to get PJ_ pj_version'51 if not pj_version_major: 52 print 'Unable to get PJ_VERSION_MAJOR' 35 53 sys.exit(1) 54 55 pj_version = pj_version_major + "." + pj_version_minor 56 if pj_version_rev: 57 pj_version += "." + pj_version_rev 58 if pj_version_suffix: 59 pj_version += "-" + pj_version_suffix 60 36 61 #print 'PJ_VERSION = "'+ pj_version + '"' 62 37 63 38 64 # Check that extension has been built -
pjproject/branches/1.x/pjsip-apps/src/python/setup.py
r3888 r4121 26 26 # find pjsip version 27 27 pj_version="" 28 f = open('../../../pjlib/src/pj/config.c', 'r') 28 pj_version_major="" 29 pj_version_minor="" 30 pj_version_rev="" 31 pj_version_suffix="" 32 f = open('../../../version.mak', 'r') 29 33 for line in f: 30 if line.find("PJ_VERSION") != -1: 31 pj_version= line.split(" = ")[1].strip('";\r\n') 32 break 34 if line.find("export PJ_VERSION_MAJOR") != -1: 35 tokens=line.split("=") 36 if len(tokens)>1: 37 pj_version_major= tokens[1].strip() 38 elif line.find("export PJ_VERSION_MINOR") != -1: 39 tokens=line.split("=") 40 if len(tokens)>1: 41 pj_version_minor= line.split("=")[1].strip() 42 elif line.find("export PJ_VERSION_REV") != -1: 43 tokens=line.split("=") 44 if len(tokens)>1: 45 pj_version_rev= line.split("=")[1].strip() 46 elif line.find("export PJ_VERSION_SUFFIX") != -1: 47 tokens=line.split("=") 48 if len(tokens)>1: 49 pj_version_suffix= line.split("=")[1].strip() 50 33 51 f.close() 34 if pj_version=="":35 print 'Unable to get PJ_VERSION '52 if not pj_version_major: 53 print 'Unable to get PJ_VERSION_MAJOR' 36 54 sys.exit(1) 55 56 pj_version = pj_version_major + "." + pj_version_minor 57 if pj_version_rev: 58 pj_version += "." + pj_version_rev 59 if pj_version_suffix: 60 pj_version += "-" + pj_version_suffix 61 37 62 #print 'PJ_VERSION = "'+ pj_version + '"' 38 63 -
pjproject/branches/1.x/version.mak
r4111 r4121 1 # Don't change the "export PJ_VERSION_xxx" style, they are parsed by setup.py 1 2 export PJ_VERSION_MAJOR := 1 2 3 export PJ_VERSION_MINOR := 14
Note: See TracChangeset
for help on using the changeset viewer.