diff options
author | Liong Sauw Ming <ming@teluu.com> | 2011-11-19 03:35:48 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2011-11-19 03:35:48 +0000 |
commit | 34a6f954e511b78df9dae880bf3e16152e2cab81 (patch) | |
tree | 2cb0a44f626f9fe6e6212e2f144e00128b1a746e | |
parent | 01be4b413b46034e5a2e9ce7977551c11017b9cc (diff) |
Re #1417 (misc fix): Add OS X Lion support for Python build
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3888 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjsip-apps/src/python/setup.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pjsip-apps/src/python/setup.py b/pjsip-apps/src/python/setup.py index 98b2d786..43e4ef7e 100644 --- a/pjsip-apps/src/python/setup.py +++ b/pjsip-apps/src/python/setup.py @@ -21,6 +21,7 @@ from distutils.core import setup, Extension import os import sys +import platform # find pjsip version pj_version="" @@ -58,9 +59,12 @@ for line in f: f.close() # Mac OS X depedencies -if sys.platform == 'darwin': +if platform.system() == 'Darwin': extra_link_args = ["-framework", "CoreFoundation", "-framework", "AudioToolbox"] + # OS X Lion support + if platform.mac_ver()[0].startswith("10.7"): + extra_link_args += ["-framework", "AudioUnit"] else: extra_link_args = [] |