Changeset 1900 for pjproject/trunk


Ignore:
Timestamp:
Mar 29, 2008 1:03:47 PM (17 years ago)
Author:
bennylp
Message:

Added missing framework link command for MacOS X in Python setup.py (thanks Nir Soffer)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/py_pjsua/setup.py

    r1706 r1900  
    11from distutils.core import setup, Extension 
    22import os 
     3import sys 
    34 
    45# Fill in pj_inc_dirs 
     
    2324f.close() 
    2425 
     26# Mac OS X depedencies 
     27if sys.platform == 'darwin': 
     28        extra_link_args = ["-framework", "CoreFoundation",  
     29                           "-framework", "AudioToolbox"] 
     30else: 
     31        extra_link_args = [] 
     32 
     33 
    2534setup(name="py_pjsua", version="0.8", 
    2635        ext_modules = [ 
     
    3039                          include_dirs=pj_inc_dirs,  
    3140                          library_dirs=pj_lib_dirs,  
    32                           libraries=pj_libs), 
     41                          libraries=pj_libs, 
     42                          extra_link_args=extra_link_args), 
    3343        ]) 
    3444 
Note: See TracChangeset for help on using the changeset viewer.