Changeset 144 for pjproject/trunk
- Timestamp:
- Feb 7, 2006 7:31:53 PM (19 years ago)
- Location:
- pjproject/trunk/pjmedia
- Files:
-
- 3 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/build
- Property svn:ignore
-
old new 1 1 *.ncb 2 2 *.opt 3 .pjmedia*
-
- Property svn:ignore
-
pjproject/trunk/pjmedia/build/Makefile
r65 r144 1 include make-$(TARGET).inc1 include ../../build/common.mak 2 2 3 export PJMEDIA_SRCEXT = .c 3 RULES_MAK := ../../build/rules.mak 4 5 PJLIB_LIB:=../../pjlib/lib/libpj-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(LIBEXT) 6 PJLIB_UTIL_LIB:=../../pjlib-util/lib/libpjlib-util-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(LIBEXT) 7 8 export PJMEDIA_LIB:=../lib/libpjmedia-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(LIBEXT) 9 10 ############################################################################### 11 # Gather all flags. 12 # 13 export _CFLAGS := -O2 -g $(CC_CFLAGS) $(OS_CFLAGS) $(HOST_CFLAGS) $(M_CFLAGS) \ 14 $(CFLAGS) $(CC_INC)../include $(CC_INC)../../pjlib/include \ 15 $(CC_INC)../../pjlib-util/include 16 export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \ 17 $(HOST_CXXFLAGS) $(CXXFLAGS) 18 export _LDFLAGS := $(subst /,$(HOST_PSEP),$(PJMEDIA_LIB)) \ 19 $(subst /,$(HOST_PSEP),$(PJLIB_LIB)) \ 20 $(subst /,$(HOST_PSEP),$(PJLIB_UTIL_LIB)) \ 21 $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \ 22 $(LDFLAGS) 23 24 ############################################################################### 25 # Defines for building PJMEDIA library 26 # 27 PA_DIR:=portaudio 4 28 export PJMEDIA_SRCDIR = ../src/pjmedia 5 export PJMEDIA_SRCS = $(PJMEDIA_SOURCES) codec.c jbuf.c rtp.c mediamgr.c \ 6 session.c g711.c rtcp.c stream.c sdp.c pasound.c \ 7 $(PA_DIR)/pa_allocation.c \ 8 $(PA_DIR)/pa_converters.c \ 9 $(PA_DIR)/pa_cpuload.c \ 10 $(PA_DIR)/pa_dither.c \ 11 $(PA_DIR)/pa_front.c \ 12 $(PA_DIR)/pa_process.c \ 13 $(PA_DIR)/pa_skeleton.c \ 14 $(PA_DIR)/pa_stream.c \ 15 $(PA_DIR)/pa_trace.c 29 export PJMEDIA_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ 30 codec.o errno.o g711.o jbuf.o mediamgr.o rtcp.o \ 31 rtp.o sdp.o sdp_cmp.o sdp_neg.o stream.o \ 32 # pasound.o \ 33 # $(PA_DIR)/pa_allocation.o \ 34 # $(PA_DIR)/pa_converters.o \ 35 # $(PA_DIR)/pa_cpuload.o \ 36 # $(PA_DIR)/pa_dither.o \ 37 # $(PA_DIR)/pa_front.o \ 38 # $(PA_DIR)/pa_process.o \ 39 # $(PA_DIR)/pa_skeleton.o \ 40 # $(PA_DIR)/pa_stream.o \ 41 # $(PA_DIR)/pa_trace.o 16 42 17 export TEST_SRCEXT = .c 18 export TEST_SRCDIR = ../src/test 19 export TEST_SRCS = $(TEST_SOURCES) jbuf_test.c rtp_test.c main.c \ 20 session_test.c sdptest.c 21 43 export PJMEDIA_CFLAGS += $(_CFLAGS) 22 44 23 export PJAUT_SRCEXT = .c24 export PJAUT_SRCDIR = ../src/test25 export PJAUT_SRCS = $(PJAUT_SOURCES) audio_tool.c26 45 27 export CCOUT CC AR RANLIB MV RM RMDIR MKDIR OBJEXT LD LDOUT 46 ############################################################################### 47 # Defines for building test application 48 # 49 export PJMEDIA_TEST_SRCDIR = ../src/test 50 export PJMEDIA_TEST_OBJS += jbuf_test.o main.o rtp_test.o sdp_neg_test.o test.o 51 export PJMEDIA_TEST_CFLAGS += $(_CFLAGS) 52 export PJMEDIA_TEST_LDFLAGS += $(_LDFLAGS) 53 export PJMEDIA_TEST_EXE:=../bin/pjmedia-test-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(HOST_EXE) 28 54 29 all: pjmedia test pjaut 55 56 export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT 57 ############################################################################### 58 # Main entry 59 # 60 # $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. 61 # 62 TARGETS := pjmedia pjmedia-test 63 64 all: $(TARGETS) 30 65 31 66 doc: 32 67 cd .. && doxygen docs/doxygen.cfg 33 68 34 print: 35 $(MAKE) -f make-rules APP=PJMEDIA app=pjmedia print_lib 36 $(MAKE) -f make-rules APP=TEST app=test print_bin 37 $(MAKE) -f make-rules APP=PJAUT app=pjaut print_bin 38 39 depend: 40 $(MAKE) -f make-rules APP=PJMEDIA app=pjmedia depend 41 $(MAKE) -f make-rules APP=TEST app=test depend 42 $(MAKE) -f make-rules APP=PJAUT app=pjaut depend 69 dep: depend 70 distclean: realclean 43 71 44 dep: depend 72 .PHONY: dep depend pjmedia pjmedia-test clean realclean distclean 45 73 46 74 pjmedia: 47 $(MAKE) -f make-rulesAPP=PJMEDIA app=pjmedia $(PJMEDIA_LIB)75 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA app=pjmedia $(PJMEDIA_LIB) 48 76 49 test: 50 $(MAKE) -f make-rules APP=TEST app=test $(TEST_EXE)77 pjmedia-test: $(PJMEDIA_LIB) 78 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_TEST app=pjmedia-test $(PJMEDIA_TEST_EXE) 51 79 52 pjaut: 53 $(MAKE) -f make-rules APP=PJAUT app=pjaut $(PJAUT_EXE) 54 55 clean: 56 $(MAKE) -f make-rules APP=PJMEDIA app=pjmedia clean 57 $(MAKE) -f make-rules APP=TEST app=test clean 58 $(MAKE) -f make-rules APP=PJAUT app=pjaut clean 80 .PHONY: ../lib/pjmedia.ko 81 ../lib/pjmedia.ko: 82 echo Making $@ 83 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA app=pjmedia $@ 59 84 60 realclean: 61 $(MAKE) -f make-rules APP=PJMEDIA app=pjmedia realclean 62 $(MAKE) -f make-rules APP=TEST app=test realclean 63 $(MAKE) -f make-rules APP=PJAUT app=pjaut realclean 85 .PHONY: ../lib/pjmedia-test.ko 86 ../lib/pjmedia-test.ko: 87 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_TEST app=pjmedia-test $@ 64 88 65 distclean: realclean 89 clean depend realclean: 90 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA app=pjmedia $@ 91 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_TEST app=pjmedia-test $@ 92 @if test "$@" == "depend"; then \ 93 echo '$(PJMEDIA_TEST_EXE): $(PJMEDIA_LIB)' >> .pjmedia-test-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).depend; \ 94 fi 66 95 67 96 -
pjproject/trunk/pjmedia/src/test/sdp_neg_test.c
r129 r144 1018 1018 1019 1019 /* Give the answer to negotiator. */ 1020 status = pjmedia_sdp_neg_ rx_remote_answer(pool, neg, sdp2);1020 status = pjmedia_sdp_neg_set_remote_answer(pool, neg, sdp2); 1021 1021 if (status != PJ_SUCCESS) { 1022 1022 app_perror(status, " error: pjmedia_sdp_neg_rx_remote_answer"); … … 1032 1032 1033 1033 /* Get the local active media. */ 1034 status = pjmedia_sdp_neg_get_ local(neg, &active);1034 status = pjmedia_sdp_neg_get_active_local(neg, &active); 1035 1035 if (status != PJ_SUCCESS) { 1036 1036 app_perror(status, " error: pjmedia_sdp_neg_get_local"); … … 1104 1104 } else { 1105 1105 /* Received subsequent offer from remote. */ 1106 status = pjmedia_sdp_neg_ rx_remote_offer(pool, neg, sdp1);1106 status = pjmedia_sdp_neg_set_remote_offer(pool, neg, sdp1); 1107 1107 if (status != PJ_SUCCESS) { 1108 1108 app_perror(status, " error: pjmedia_sdp_neg_rx_remote_offer"); … … 1119 1119 1120 1120 /* Get our answer. */ 1121 status = pjmedia_sdp_neg_get_ local(neg, &answer);1121 status = pjmedia_sdp_neg_get_active_local(neg, &answer); 1122 1122 if (status != PJ_SUCCESS) { 1123 1123 app_perror(status, " error: pjmedia_sdp_neg_get_local");
Note: See TracChangeset
for help on using the changeset viewer.