- Timestamp:
- Feb 20, 2014 8:08:06 AM (11 years ago)
- Location:
- pjproject/trunk/pjsip-apps
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/build/Makefile
r4732 r4753 40 40 main.o pjsua_app.o pjsua_app_cli.o pjsua_app_common.o \ 41 41 pjsua_app_config.o pjsua_app_legacy.o 42 export PJSUA_CFLAGS += $(PJ_CFLAGS) 43 export PJSUA_CXXFLAGS += $(PJ_CXXFLAGS) 44 export PJSUA_LDFLAGS += $(PJ_LDFLAGS) $(PJ_LDLIBS) 42 export PJSUA_CFLAGS += $(PJ_CFLAGS) $(CFLAGS) 43 export PJSUA_CXXFLAGS += $(PJ_CXXFLAGS) $(CFLAGS) 44 export PJSUA_LDFLAGS += $(PJ_LDFLAGS) $(PJ_LDLIBS) $(LDFLAGS) 45 45 export PJSUA_EXE:=pjsua-$(TARGET_NAME)$(HOST_EXE) 46 46 … … 52 52 export PJSYSTEST_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ 53 53 systest.o main_console.o 54 export PJSYSTEST_CFLAGS += $(PJ_CFLAGS) 55 export PJSYSTEST_CXXFLAGS += $(PJ_CXXFLAGS) 56 export PJSYSTEST_LDFLAGS += $(PJ_LDFLAGS) $(PJ_LDLIBS) 54 export PJSYSTEST_CFLAGS += $(PJ_CFLAGS) $(CFLAGS) 55 export PJSYSTEST_CXXFLAGS += $(PJ_CXXFLAGS) $(CFLAGS) 56 export PJSYSTEST_LDFLAGS += $(PJ_LDFLAGS) $(PJ_LDLIBS) $(LDFLAGS) 57 57 export PJSYSTEST_EXE:=pjsystest-$(TARGET_NAME)$(HOST_EXE) 58 58 -
pjproject/trunk/pjsip-apps/build/Samples.mak
r4711 r4753 9 9 # 10 10 export _CFLAGS := $(PJ_CFLAGS) $(CFLAGS) 11 export _CXXFLAGS:= $(PJ_CXXFLAGS) 11 export _CXXFLAGS:= $(PJ_CXXFLAGS) $(CFLAGS) 12 12 export _LDFLAGS := $(PJ_LDFLAGS) $(PJ_LDLIBS) $(LDFLAGS) 13 13 export _LDXXFLAGS := $(PJ_LDXXFLAGS) $(PJ_LDXXLIBS) $(LDFLAGS) -
pjproject/trunk/pjsip-apps/src/swig/python/helper.mak
r4744 r4753 1 1 include ../../../../build.mak 2 include $(PJDIR)/build/common.mak 2 3 3 l ib_dir:4 @for token in `echo $( APP_LDFLAGS)`; do \5 echo $$token | grep \\-L | sed 's/-L//'; \4 ldflags: 5 @for token in `echo $(PJ_LDXXLIBS) $(PJ_LDXXFLAGS) $(LDFLAGS)`; do \ 6 echo $$token; \ 6 7 done 7 8 8 inc_dir: 9 @for token in `echo $(APP_CFLAGS)`; do \ 10 echo $$token | grep \\-I | sed 's/-I//'; \ 11 done 12 13 libs: 14 @for token in `echo $(APP_LDLIBS)`; do \ 15 echo $$token | grep \\-l | sed 's/-l//'; \ 9 cflags: 10 @for token in `echo $(PJ_CXXFLAGS) $(CFLAGS)`; do \ 11 echo $$token; \ 16 12 done 17 13 -
pjproject/trunk/pjsip-apps/src/swig/python/setup.py
r4744 r4753 67 67 f.close() 68 68 69 # Fill in pj_inc_dirs70 pj_inc_dirs = []71 f = os.popen("make --no-print-directory -f helper.mak inc_dir")69 # Fill in extra_compile_args 70 extra_compile_args = [] 71 f = os.popen("make --no-print-directory -f helper.mak cflags") 72 72 for line in f: 73 pj_inc_dirs.append(line.rstrip("\r\n"))73 extra_compile_args.append(line.rstrip("\r\n")) 74 74 f.close() 75 75 76 # Fill in pj_lib_dirs77 pj_lib_dirs = []78 f = os.popen("make --no-print-directory -f helper.mak l ib_dir")76 # Fill in extra_link_args 77 extra_link_args = [] 78 f = os.popen("make --no-print-directory -f helper.mak ldflags") 79 79 for line in f: 80 pj_lib_dirs.append(line.rstrip("\r\n"))80 extra_link_args.append(line.rstrip("\r\n")) 81 81 f.close() 82 83 # Fill in pj_libs84 pj_libs = ['pjsua2-' + pj_target_name]85 f = os.popen("make --no-print-directory -f helper.mak libs")86 for line in f:87 pj_libs.append(line.rstrip("\r\n"))88 f.close()89 90 # Fill in extra link args91 extra_link_args = []92 if platform.system() == 'Darwin':93 # Mac OS X depedencies94 extra_link_args += ["-framework", "CoreFoundation",95 "-framework", "AudioToolbox",96 "-framework", "QTKit"]97 # OS X Lion support98 if platform.mac_ver()[0].startswith("10.7"):99 extra_link_args += ["-framework", "AudioUnit"]100 82 101 83 # MinGW specific action: put current working dir to PATH, so Python distutils … … 110 92 ext_modules = [Extension("_pjsua2", 111 93 ["pjsua2_wrap.cpp"], 112 define_macros=[('PJ_AUTOCONF', '1'),], 113 include_dirs=pj_inc_dirs, 114 library_dirs=pj_lib_dirs, 115 libraries=pj_libs, 94 extra_compile_args=extra_compile_args, 116 95 extra_link_args=extra_link_args 117 96 )
Note: See TracChangeset
for help on using the changeset viewer.