Ignore:
Timestamp:
Oct 16, 2013 9:19:08 AM (11 years ago)
Author:
nanang
Message:

Re #1519:

  • allow build on mingw32
  • fixed tests
Location:
pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/python

    • Property svn:ignore
      •  

        old new  
        33build 
        44pjsua2_wrap.h 
         5_pjsua2.pyd 
  • pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/python/setup.py

    r4597 r4619  
    6262#print 'PJ_VERSION = "'+ pj_version + '"' 
    6363 
     64# Get targetname 
     65f = os.popen("make --no-print-directory -f helper.mak target_name") 
     66pj_target_name = f.read().rstrip("\r\n") 
     67f.close() 
    6468 
    6569# Fill in pj_inc_dirs 
     
    7882 
    7983# Fill in pj_libs 
    80 pj_libs = ['pjsua2-x86_64-unknown-linux-gnu']                      ### <--- xxxx HARDCODED xxxx 
     84pj_libs = ['pjsua2-' + pj_target_name] 
    8185f = os.popen("make --no-print-directory -f helper.mak libs") 
    8286for line in f: 
     
    8488f.close() 
    8589 
    86 # Mac OS X depedencies 
     90# Fill in extra link args 
     91extra_link_args = ['-static-libstdc++'] 
    8792if platform.system() == 'Darwin': 
    88     extra_link_args = ["-framework", "CoreFoundation",  
    89                        "-framework", "AudioToolbox"] 
     93    # Mac OS X depedencies 
     94    extra_link_args += ["-framework", "CoreFoundation",  
     95                        "-framework", "AudioToolbox"] 
    9096    # OS X Lion support 
    9197    if platform.mac_ver()[0].startswith("10.7"): 
    9298        extra_link_args += ["-framework", "AudioUnit"] 
    93 else: 
    94     extra_link_args = [] 
     99 
    95100 
    96101setup(name="pjsua2",  
Note: See TracChangeset for help on using the changeset viewer.