Ignore:
Timestamp:
Nov 19, 2011 3:35:48 AM (12 years ago)
Author:
ming
Message:

Re #1417 (misc fix): Add OS X Lion support for Python build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjsip-apps/src/python/setup.py

    r2394 r3888  
    2222import os 
    2323import sys 
     24import platform 
    2425 
    2526# find pjsip version 
     
    5960 
    6061# Mac OS X depedencies 
    61 if sys.platform == 'darwin': 
     62if platform.system() == 'Darwin': 
    6263    extra_link_args = ["-framework", "CoreFoundation",  
    6364                       "-framework", "AudioToolbox"] 
     65    # OS X Lion support 
     66    if platform.mac_ver()[0].startswith("10.7"): 
     67        extra_link_args += ["-framework", "AudioUnit"] 
    6468else: 
    6569    extra_link_args = [] 
Note: See TracChangeset for help on using the changeset viewer.