- Timestamp:
- May 3, 2016 4:27:07 AM (9 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/python/setup.py
r4232 r5281 62 62 #print 'PJ_VERSION = "'+ pj_version + '"' 63 63 64 # Get 'make' from environment variable if any 65 MAKE = os.environ.get('MAKE') or "make" 64 66 65 67 # Fill in pj_inc_dirs 66 68 pj_inc_dirs = [] 67 f = os.popen(" make -f helper.mak inc_dir")69 f = os.popen("%s -f helper.mak inc_dir" % MAKE) 68 70 for line in f: 69 71 pj_inc_dirs.append(line.rstrip("\r\n")) … … 72 74 # Fill in pj_lib_dirs 73 75 pj_lib_dirs = [] 74 f = os.popen(" make -f helper.mak lib_dir")76 f = os.popen("%s -f helper.mak lib_dir" % MAKE) 75 77 for line in f: 76 78 pj_lib_dirs.append(line.rstrip("\r\n")) … … 79 81 # Fill in pj_libs 80 82 pj_libs = [] 81 f = os.popen(" make -f helper.mak libs")83 f = os.popen("%s -f helper.mak libs" % MAKE) 82 84 for line in f: 83 85 pj_libs.append(line.rstrip("\r\n")) -
pjproject/trunk/pjsip-apps/src/swig/python/setup.py
r4756 r5281 62 62 #print 'PJ_VERSION = "'+ pj_version + '"' 63 63 64 # Get 'make' from environment variable if any 65 MAKE = os.environ.get('MAKE') or "make" 66 64 67 # Get targetname 65 f = os.popen(" make --no-print-directory -f helper.mak target_name")68 f = os.popen("%s --no-print-directory -f helper.mak target_name" % MAKE) 66 69 pj_target_name = f.read().rstrip("\r\n") 67 70 f.close() … … 69 72 # Fill in extra_compile_args 70 73 extra_compile_args = [] 71 f = os.popen(" make --no-print-directory -f helper.mak cflags")74 f = os.popen("%s --no-print-directory -f helper.mak cflags" % MAKE) 72 75 for line in f: 73 76 extra_compile_args.append(line.rstrip("\r\n")) … … 76 79 # Fill in libraries 77 80 libraries = [] 78 f = os.popen(" make --no-print-directory -f helper.mak libs")81 f = os.popen("%s --no-print-directory -f helper.mak libs" % MAKE) 79 82 for line in f: 80 83 libraries.append(line.rstrip("\r\n")) … … 83 86 # Fill in extra_link_args 84 87 extra_link_args = [] 85 f = os.popen(" make --no-print-directory -f helper.mak ldflags")88 f = os.popen("%s --no-print-directory -f helper.mak ldflags" % MAKE) 86 89 for line in f: 87 90 extra_link_args.append(line.rstrip("\r\n"))
Note: See TracChangeset
for help on using the changeset viewer.