- Timestamp:
- Oct 16, 2013 9:19:08 AM (11 years ago)
- Location:
- pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/python
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/python
- Property svn:ignore
-
old new 3 3 build 4 4 pjsua2_wrap.h 5 _pjsua2.pyd
-
- Property svn:ignore
-
pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/python/Makefile
r4597 r4619 1 1 PYTHON_SO=_pjsua2.so 2 3 PYTHON_SETUP_FLAGS = --inplace 4 ifeq ($(OS),Windows_NT) 5 PYTHON_SETUP_FLAGS += --compiler=mingw32 6 endif 2 7 3 8 .PHONY: all … … 6 11 7 12 $(PYTHON_SO): pjsua2_wrap.cpp setup.py 8 python setup.py build_ext --inplace13 python setup.py build_ext $(PYTHON_SETUP_FLAGS) 9 14 10 15 pjsua2_wrap.cpp: ../pjsua2.i $(SRCS) -
pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/python/helper.mak
r4597 r4619 16 16 done 17 17 18 target_name: 19 $(TARGET_NAME) 20 -
pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/python/setup.py
r4597 r4619 62 62 #print 'PJ_VERSION = "'+ pj_version + '"' 63 63 64 # Get targetname 65 f = os.popen("make --no-print-directory -f helper.mak target_name") 66 pj_target_name = f.read().rstrip("\r\n") 67 f.close() 64 68 65 69 # Fill in pj_inc_dirs … … 78 82 79 83 # Fill in pj_libs 80 pj_libs = ['pjsua2- x86_64-unknown-linux-gnu'] ### <--- xxxx HARDCODED xxxx84 pj_libs = ['pjsua2-' + pj_target_name] 81 85 f = os.popen("make --no-print-directory -f helper.mak libs") 82 86 for line in f: … … 84 88 f.close() 85 89 86 # Mac OS X depedencies 90 # Fill in extra link args 91 extra_link_args = ['-static-libstdc++'] 87 92 if 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"] 90 96 # OS X Lion support 91 97 if platform.mac_ver()[0].startswith("10.7"): 92 98 extra_link_args += ["-framework", "AudioUnit"] 93 else: 94 extra_link_args = [] 99 95 100 96 101 setup(name="pjsua2", -
pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/python/test.py
r4597 r4619 8 8 def ua_data_test(): 9 9 # 10 # CredInfo10 # AuthCredInfo 11 11 # 12 12 print "UA data types test.." 13 13 the_realm = "pjsip.org" 14 ci = pj. CredInfo()14 ci = pj.AuthCredInfo() 15 15 ci.realm = the_realm 16 16 ci.dataType = 20 … … 58 58 assert e.status == 70013 59 59 assert e.reason == "Invalid operation (PJ_EINVALIDOP)" 60 assert e.title == "Endpoint::testException()"60 #assert e.title == "Endpoint::testException()" 61 61 assert got_exception 62 62
Note: See TracChangeset
for help on using the changeset viewer.