Changeset 342 for pjproject


Ignore:
Timestamp:
Mar 20, 2006 4:59:23 PM (19 years ago)
Author:
bennylp
Message:

Added sndinfo sample and tested samples on MacOSX Jaguar

Location:
pjproject/trunk/pjsip-apps
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/build/Makefile

    r320 r342  
    6262# 
    6363# 
    64 TARGETS := pjsua pjsip-perf 
     64TARGETS := pjsua pjsip-perf samples 
    6565 
    6666.PHONY: $(TARGETS) 
     
    8282        $(MAKE) -f $(RULES_MAK) APP=PJSIPPERF app=pjsip-perf $(PJSUA_EXE) 
    8383 
     84samples: 
     85        $(MAKE) -f Samples.mak 
    8486 
    8587.PHONY: ../lib/pjsua.ko 
     
    9092        $(MAKE) -f $(RULES_MAK) APP=PJSUA app=pjsua $@ 
    9193        $(MAKE) -f $(RULES_MAK) APP=PJSIPPERF app=pjsip-perf $@ 
     94        $(MAKE) -f Samples.mak $@ 
    9295        @if test "$@" == "depend"; then \ 
    9396          echo '$(PJSUA_EXE): $(PJSIP_LIB) $(PJSIP_UA_LIB) $(PJSIP_SIMPLE) $(PJSUA_LIB_LIB) $(PJLIB_LIB) $(PJLIB_UTIL_LIB) $(PJMEDIA_LIB) $(PJMEDIA_CODEC_LIB) Makefile' >> .pjsua-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).depend; \ 
  • pjproject/trunk/pjsip-apps/build/Samples-vc.mak

    r336 r342  
    3939 
    4040SAMPLES = $(BINDIR)\simpleua.exe $(BINDIR)\playfile.exe $(BINDIR)\playsine.exe \ 
    41           $(BINDIR)\confsample.exe 
     41          $(BINDIR)\confsample.exe $(BINDIR)\sndinfo.exe 
    4242 
    4343all: $(OBJDIR) $(SAMPLES) 
  • pjproject/trunk/pjsip-apps/build/Samples.mak

    r328 r342  
    2020export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \ 
    2121                   $(HOST_CXXFLAGS) $(CXXFLAGS) 
    22 export _LDFLAGS := $(subst /,$(HOST_PSEP),$(PJSUA_LIB_LIB)) \ 
    23                    $(subst /,$(HOST_PSEP),$(PJSIP_UA_LIB)) \ 
    24                    $(subst /,$(HOST_PSEP),$(PJSIP_SIMPLE_LIB)) \ 
    25                    $(subst /,$(HOST_PSEP),$(PJSIP_LIB)) \ 
    26                    $(subst /,$(HOST_PSEP),$(PJMEDIA_CODEC_LIB)) \ 
    27                    $(subst /,$(HOST_PSEP),$(PJMEDIA_LIB)) \ 
    28                    $(subst /,$(HOST_PSEP),$(PJLIB_UTIL_LIB)) \ 
    29                    $(subst /,$(HOST_PSEP),$(PJLIB_LIB)) \ 
     22 
     23export LIBS :=  $(subst /,$(HOST_PSEP),$(PJSUA_LIB_LIB)) \ 
     24                $(subst /,$(HOST_PSEP),$(PJSIP_UA_LIB)) \ 
     25                $(subst /,$(HOST_PSEP),$(PJSIP_SIMPLE_LIB)) \ 
     26                $(subst /,$(HOST_PSEP),$(PJSIP_LIB)) \ 
     27                $(subst /,$(HOST_PSEP),$(PJMEDIA_CODEC_LIB)) \ 
     28                $(subst /,$(HOST_PSEP),$(PJMEDIA_LIB)) \ 
     29                $(subst /,$(HOST_PSEP),$(PJLIB_UTIL_LIB)) \ 
     30                $(subst /,$(HOST_PSEP),$(PJLIB_LIB)) 
     31 
     32 
     33export _LDFLAGS := $(LIBS) \ 
    3034                   $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \ 
    3135                   $(LDFLAGS) -lm 
     
    3842LDFLAGS = $(_LDFLAGS) 
    3943 
    40 SAMPLES := simpleua 
     44SAMPLES := simpleua playfile playsine confsample sndinfo 
     45 
    4146EXES := $(foreach file, $(SAMPLES), $(BINDIR)/$(file)-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(HOST_EXE)) 
    4247 
    4348all: $(OBJDIR) $(EXES) 
    4449 
    45 $(BINDIR)/%-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(HOST_EXE): $(OBJDIR)/%$(OBJEXT) 
     50$(BINDIR)/%-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(HOST_EXE): $(OBJDIR)/%$(OBJEXT) $(LIBS) 
    4651        $(LD) $(LDOUT)$(subst /,$(HOST_PSEP),$@) \ 
    4752            $(subst /,$(HOST_PSEP),$<) \ 
     
    5661        $(subst @@,$(subst /,$(HOST_PSEP),$@),$(HOST_MKDIR))  
    5762 
     63depend: 
     64 
    5865clean: 
    5966        $(subst @@,$(subst /,$(HOST_PSEP),$(OBJDIR)/*),$(HOST_RMR)) 
    6067        $(subst @@,$(subst /,$(HOST_PSEP),$(OBJDIR)),$(HOST_RMDIR)) 
     68        $(subst @@,$(EXES),$(HOST_RM)) 
    6169 
    6270distclean realclean: clean 
    63         $(subst @@,$(EXES),$(HOST_RM)) 
    6471#       $(subst @@,$(subst /,$(HOST_PSEP),$(EXES)) $(subst /,$(HOST_PSEP),$(EXES)),$(HOST_RM)) 
    6572#       $(subst @@,$(DEP_FILE),$(HOST_RM)) 
  • pjproject/trunk/pjsip-apps/src/samples/playsine.c

    r336 r342  
    1717 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
    1818 */ 
    19  
    20 #include <pjmedia.h> 
    2119 
    2220/* 
Note: See TracChangeset for help on using the changeset viewer.