- Timestamp:
- Sep 17, 2007 12:55:05 PM (17 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src/py_pjsua
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/py_pjsua/setup.py
r936 r1437 2 2 import os 3 3 4 pjproject = "../../../" 4 # Fill in pj_inc_dirs 5 pj_inc_dirs = [] 6 f = os.popen("make -f helper.mak inc_dir") 7 for line in f: 8 pj_inc_dirs.append(line.rstrip("\r\n")) 9 f.close() 5 10 6 # Determine target 7 #target = "i686-pc-linux-gnu" 8 f = os.popen("grep TARGET_NAME ../../../build.mak") 9 line = f.readline() 10 tokens = line.split() 11 found = 0 12 for token in tokens: 13 if token == ":=" or token == "=": 14 found = 1 15 elif found != 0: 16 target = token 17 break 11 # Fill in pj_lib_dirs 12 pj_lib_dirs = [] 13 f = os.popen("make -f helper.mak lib_dir") 14 for line in f: 15 pj_lib_dirs.append(line.rstrip("\r\n")) 16 f.close() 18 17 19 print "Building py_pjsua module for " + target 18 # Fill in pj_libs 19 pj_libs = [] 20 f = os.popen("make -f helper.mak libs") 21 for line in f: 22 pj_libs.append(line.rstrip("\r\n")) 23 f.close() 20 24 21 setup(name="py_pjsua", version="0. 1",25 setup(name="py_pjsua", version="0.7", 22 26 ext_modules = [ 23 27 Extension("py_pjsua", 24 28 ["py_pjsua.c"], 25 include_dirs=[pjproject + "pjsip/include", 26 pjproject + "pjlib/include", 27 pjproject + "pjlib-util/include", pjproject + "pjmedia/include"], 28 library_dirs=[pjproject + "pjsip/lib", 29 pjproject + "pjlib/lib", 30 pjproject + "pjmedia/lib", 31 pjproject + "pjlib-util/lib"], 32 libraries=[ "pjsua-" + target, 33 "pjsip-ua-" + target, 34 "pjsip-simple-" + target, 35 "pjsip-" + target, 36 "pjmedia-codec-" + target, 37 "pjmedia-" + target, 38 "pjmedia-codec-" + target, 39 "pjlib-util-" + target, 40 "pj-" + target, 41 "ssl", 42 "crypto", 43 "asound"]), 29 include_dirs=pj_inc_dirs, 30 library_dirs=pj_lib_dirs, 31 libraries=pj_libs), 44 32 ]) 45 33
Note: See TracChangeset
for help on using the changeset viewer.