Changeset 1202 for pjproject/branches/split-3rd-party
- Timestamp:
- Apr 18, 2007 9:24:31 AM (18 years ago)
- Location:
- pjproject/branches/split-3rd-party
- Files:
-
- 6 added
- 1 deleted
- 15 edited
- 1 copied
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/split-3rd-party/Makefile
r1112 r1202 2 2 include build/host-$(HOST_NAME).mak 3 3 4 DIRS = pjlib pjlib-util pjnath pjmedia pjsip pjsip-apps4 DIRS = pjlib pjlib-util pjnath third_party pjmedia pjsip pjsip-apps 5 5 6 6 ifdef MINSIZE … … 10 10 all clean dep depend distclean doc print realclean: 11 11 for dir in $(DIRS); do \ 12 if [ -d $$dir ]; then \13 12 if $(MAKE) $(MAKE_FLAGS) -C $$dir/build $@; then \ 14 13 true; \ … … 16 15 exit 1; \ 17 16 fi; \ 18 fi; \19 17 done 20 18 -
pjproject/branches/split-3rd-party/aconfigure
r1201 r1202 309 309 #endif" 310 310 311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX ac_pjdir CPP EGREP ac_os_objs ac_pjmedia_snd ac_pa_cflags ac_pa_use_alsa ac_no_small_filter ac_no_large_filter ac_no_ g711_plc ac_no_speex_aec ac_no_g711_codec ac_no_l16_codec ac_no_gsm_codec ac_no_speex_codec ac_no_ilbc_codec ac_no_ssl openssl_h_present libssl_present libcrypto_present ac_cross_compile ac_linux_poll ac_host ac_main_obj LIBOBJS LTLIBOBJS'311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX ac_pjdir CPP EGREP ac_os_objs ac_pjmedia_snd ac_pa_cflags ac_pa_use_alsa ac_no_small_filter ac_no_large_filter ac_no_speex_aec ac_no_g711_codec ac_no_l16_codec ac_no_gsm_codec ac_no_speex_codec ac_no_ilbc_codec ac_no_ssl openssl_h_present libssl_present libcrypto_present ac_cross_compile ac_linux_poll ac_host ac_main_obj LIBOBJS LTLIBOBJS' 312 312 ac_subst_files='' 313 313 … … 1440 1440 ac_config_headers="$ac_config_headers pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h pjmedia/include/pjmedia/config_auto.h pjmedia/include/pjmedia-codec/config_auto.h pjsip/include/pjsip/sip_autoconf.h" 1441 1441 1442 ac_config_files="$ac_config_files build.mak build/os-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/ Makefile third_party/build/portaudio/Makefile"1442 ac_config_files="$ac_config_files build.mak build/os-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/portaudio/os-auto.mak third_party/build/os-auto.mak" 1443 1443 1444 1444 … … 9013 9013 echo "${ECHO_T}Checking if large filter is disabled... no" >&6 9014 9014 fi; 9015 9016 ac_no_g711_plc=yes9017 9018 9015 9019 9016 … … 10082 10079 "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; 10083 10080 "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; 10084 "third_party/ Makefile" ) CONFIG_FILES="$CONFIG_FILES third_party/Makefile" ;;10085 "third_party/build/ portaudio/Makefile" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/Makefile" ;;10081 "third_party/build/portaudio/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;; 10082 "third_party/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;; 10086 10083 "pjlib/include/pj/compat/os_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; 10087 10084 "pjlib/include/pj/compat/m_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; … … 10204 10201 s,@ac_no_small_filter@,$ac_no_small_filter,;t t 10205 10202 s,@ac_no_large_filter@,$ac_no_large_filter,;t t 10206 s,@ac_no_g711_plc@,$ac_no_g711_plc,;t t10207 10203 s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t 10208 10204 s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t … … 10708 10704 10709 10705 10706 10707 echo "$as_me:$LINENO: result: 10708 10709 The configuration for current target has been written to 'build.mak', and 'os-auto.mak' in various build directories. 10710 10711 Customizations can be put in: 10712 - 'user.mak' 10713 - 'pjlib/include/pj/config_site.h' 10714 10715 The next step now is to run 'make dep' and 'make'. 10716 " >&5 10717 echo "${ECHO_T} 10718 10719 The configuration for current target has been written to 'build.mak', and 'os-auto.mak' in various build directories. 10720 10721 Customizations can be put in: 10722 - 'user.mak' 10723 - 'pjlib/include/pj/config_site.h' 10724 10725 The next step now is to run 'make dep' and 'make'. 10726 " >&6 10727 -
pjproject/branches/split-3rd-party/aconfigure.ac
r1201 r1202 18 18 pjmedia/build/os-auto.mak 19 19 pjsip/build/os-auto.mak 20 third_party/ Makefile21 third_party/build/ portaudio/Makefile20 third_party/build/portaudio/os-auto.mak 21 third_party/build/os-auto.mak 22 22 ]) 23 23 … … 518 518 AC_OUTPUT() 519 519 520 521 AC_MSG_RESULT([ 522 523 The configuration for current target has been written to 'build.mak', and 'os-auto.mak' in various build directories. 524 525 Customizations can be put in: 526 - 'user.mak' 527 - 'pjlib/include/pj/config_site.h' 528 529 The next step now is to run 'make dep' and 'make'. 530 ]) 531 -
pjproject/branches/split-3rd-party/build/os-linux.mak
r689 r1202 3 3 export OS_CXXFLAGS := 4 4 5 export OS_LDFLAGS := $(CC_LIB)pthread$(LIBEXT2) -lm5 export OS_LDFLAGS := -lportaudio-$(TARGET_NAME) -lgsmcodec-$(TARGET_NAME) -lilbccodec-$(TARGET_NAME) -lspeex-$(TARGET_NAME) -lresample-$(TARGET_NAME) $(CC_LIB)pthread$(LIBEXT2) -lm 6 6 7 7 export OS_SOURCES := -
pjproject/branches/split-3rd-party/configure-legacy
r795 r1202 1 1 #!/bin/sh 2 3 PJDIR=`pwd` 2 4 3 5 # … … 92 94 fi 93 95 94 echo 'Writing build.mak as follows:' 95 echo " MACHINE_NAME = $MACHINE_NAME" 96 echo " OS_NAME = $OS_NAME" 97 echo " HOST_NAME = $HOST_NAME" 98 echo " CC_NAME = $CC_NAME" 99 echo " TARGET_NAME = $TARGET_NAME" 100 echo " CROSS_COMPILE= $CROSS_COMPILE" 101 echo " LINUX_POLL = $LINUX_POLL" 96 echo 'build.mak configurations are set as follows:' 97 echo " PJDIR = $PJDIR" 98 echo " MACHINE_NAME = $MACHINE_NAME" 99 echo " OS_NAME = $OS_NAME" 100 echo " HOST_NAME = $HOST_NAME" 101 echo " CC_NAME = $CC_NAME" 102 echo " TARGET_NAME = $TARGET_NAME" 103 echo " CROSS_COMPILE = $CROSS_COMPILE" 104 echo " LINUX_POLL = $LINUX_POLL" 102 105 103 106 echo "# Auto-generated build.mak" > build.mak 107 echo "export PJDIR := $PJDIR" >> build.mak 104 108 echo "export MACHINE_NAME := $MACHINE_NAME" >> build.mak 105 109 echo "export OS_NAME := $OS_NAME" >> build.mak … … 110 114 echo "export LINUX_POLL := $LINUX_POLL" >> build.mak 111 115 116 echo >> build.mak 117 118 cat << EOF >> build.mak 119 export APP_CC = \$(CROSS_COMPILE)\$(CC_NAME) 120 121 export APP_CFLAGS = \$(CC_CFLAGS) \$(OS_CFLAGS) \$(HOST_CFLAGS) \$(M_CFLAGS) \$(CFLAGS) -I\$(PJDIR)/pjlib/include -I\$(PJDIR)/pjlib-util/include -I\$(PJDIR)/pjnath/include -I\$(PJDIR)/pjmedia/include -I\$(PJDIR)/pjsip/include 122 123 export APP_CXXFLAGS = \$(APP_CFLAGS) 124 125 export APP_LDFLAGS = -L\$(PJDIR)/pjlib/lib -L\$(PJDIR)/pjlib-util/lib -L\$(PJDIR)/pjnath/lib -L\$(PJDIR)/pjmedia/lib -L\$(PJDIR)/pjsip/lib -L\$(PJDIR)/third_party/lib 126 127 export APP_LDLIBS = -lpjsua-\$(TARGET_NAME) -lpjsip-ua-\$(TARGET_NAME) -lpjsip-simple-\$(TARGET_NAME) -lpjsip-\$(TARGET_NAME) -lpjmedia-codec-\$(TARGET_NAME) -lpjmedia-\$(TARGET_NAME) -lpjnath-\$(TARGET_NAME) -lpjlib-util-\$(TARGET_NAME) \$(APP_THIRD_PARTY_LIBS) -lpj-\$(TARGET_NAME) \$(CC_LDFLAGS) \$(OS_LDFLAGS) \$(M_LDFLAGS) \$(HOST_LDFLAGS) \$(LDFLAGS) 128 129 export PJ_DIR = \$(PJDIR) 130 export PJ_CC = \$(APP_CC) 131 export PJ_CFLAGS = \$(APP_CFLAGS) 132 export PJ_CXXFLAGS = \$(APP_CXXFLAGS) 133 export PJ_LDFLAGS = \$(APP_LDFLAGS) 134 export PJ_LDLIBS = \$(APP_LDLIBS) 135 136 EOF 137 112 138 touch user.mak 139 113 140 114 141 echo -
pjproject/branches/split-3rd-party/pjmedia/build/Makefile
r1201 r1202 1 1 include ../../build.mak 2 3 THIRD_PARTY:=$(PJDIR)/third_party 4 PA_DIR := $(THIRD_PARTY)/build/portaudio/src 5 2 6 include $(PJDIR)/build/common.mak 3 7 4 THIRD_PARTY:=../../third_party5 8 RULES_MAK := $(PJDIR)/build/rules.mak 6 9 … … 39 42 export PJMEDIA_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ 40 43 alaw_ulaw.o alaw_ulaw_table.o clock_thread.o codec.o \ 41 conference.o echo_common.o echo_port.o echo_speex.o\44 conference.o echo_common.o echo_port.o \ 42 45 echo_suppress.o endpoint.o errno.o \ 43 46 g711.o jbuf.o master_port.o mem_capture.o mem_player.o \ -
pjproject/branches/split-3rd-party/pjmedia/build/os-auto.mak.in
r1201 r1202 53 53 export CFLAGS += -I$(THIRD_PARTY)/build/speex -I$(THIRD_PARTY)/speex/include 54 54 export CODEC_OBJS += speex_codec.o 55 56 ifneq (@ac_no_speex_aec@,1) 57 export PJMEDIA_OBJS += echo_speex.o 58 endif 59 55 60 endif 56 61 -
pjproject/branches/split-3rd-party/pjmedia/build/os-darwinos.mak
r353 r1202 1 # 2 # OS specific configuration for Darwin/MacOS target. 3 # 1 2 # PJMEDIA features exclusion 3 export CFLAGS += 4 5 # Define the desired sound device backend 6 # Valid values are: 7 # - pa_unix: PortAudio on Unix (OSS or ALSA) 8 # - pa_darwinos: PortAudio on MacOSX (CoreAudio) 9 # - pa_old_darwinos: PortAudio on MacOSX (old CoreAudio, for OSX 10.2) 10 # - pa_win32: PortAudio on Win32 (WMME) 11 # - ds: Win32 DirectSound (dsound.c) 12 # - null: Null sound device (nullsound.c) 13 AC_PJMEDIA_SND=pa_old_darwinos 14 15 # For Unix, specify if ALSA should be supported 16 AC_PA_USE_ALSA=0 4 17 5 18 # 6 # PJMEDIA_OBJS specified here are object files to be included in PJMEDIA 7 # (the library) for this specific operating system. Object files common 8 # to all operating systems should go in Makefile instead. 19 # Codecs 9 20 # 10 export PJMEDIA_OBJS += $(PA_DIR)/pa_mac_hostapis.o \ 11 $(PA_DIR)/pa_unix_util.o \ 12 $(PA_DIR)/pa_mac_core.o 21 AC_NO_G711_CODEC=0 22 AC_NO_L16_CODEC=0 23 AC_NO_GSM_CODEC=0 24 AC_NO_SPEEX_CODEC=0 25 AC_NO_ILBC_CODEC=0 13 26 14 # $(PA_DIR)/pa_mac_alt.o 15 # $(PA_DIR)/ringbuffer.o 27 export CODEC_OBJS= 16 28 17 export OS_CFLAGS += $(CC_DEF)PA_USE_COREAUDIO=1 $(CC_DEF)PA_BIG_ENDIAN=1 29 ifeq ($(AC_NO_G711_CODEC),1) 30 export CFLAGS += -DPJMEDIA_HAS_G711_CODEC=0 31 else 32 export CODEC_OBJS += 33 endif 34 35 ifeq ($(AC_NO_L16_CODEC),1) 36 export CFLAGS += -DPJMEDIA_HAS_L16_CODEC=0 37 else 38 export CODEC_OBJS += l16.o 39 endif 40 41 ifeq ($(AC_NO_GSM_CODEC),1) 42 export CFLAGS += -DPJMEDIA_HAS_GSM_CODEC=0 43 else 44 export CODEC_OBJS += gsm.o 45 endif 46 47 ifeq ($(AC_NO_SPEEX_CODEC),1) 48 export CFLAGS += -DPJMEDIA_HAS_SPEEX_CODEC=0 49 else 50 export CFLAGS += -I$(THIRD_PARTY)/build/speex -I$(THIRD_PARTY)/speex/include 51 export CODEC_OBJS += speex_codec.o 52 53 #ifeq (@ac_no_speex_aec@,1) 54 ifeq (0,1) 55 export PJMEDIA_OBJS += echo_speex.o 56 endif 57 58 endif 59 60 ifeq ($(AC_NO_ILBC_CODEC),1) 61 export CFLAGS += -DPJMEDIA_HAS_ILBC_CODEC=0 62 else 63 export CODEC_OBJS += ilbc.o 64 endif 65 66 67 # 68 # PortAudio 69 # 70 ifneq ($(findstring pa,$(AC_PJMEDIA_SND)),) 71 export CFLAGS += -I$(THIRD_PARTY)/build/portaudio -I$(THIRD_PARTY)/portaudio/include -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_PORTAUDIO_SOUND 72 export SOUND_OBJS = pasound.o 73 endif 74 75 # 76 # Win32 DirectSound 77 # 78 ifeq ($(AC_PJMEDIA_SND),ds) 79 export SOUND_OBJS = dsound.o 80 export CFLAGS += -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_WIN32_DIRECT_SOUND 81 endif 82 83 # 84 # Last resort, null sound device 85 # 86 ifeq ($(AC_PJMEDIA_SND),null) 87 export SOUND_OBJS = nullsound.o 88 export CFLAGS += -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_NULL_SOUND 89 endif 90 91 -
pjproject/branches/split-3rd-party/pjmedia/build/os-linux.mak
r341 r1202 1 # 2 # OS specific configuration for Linux OS target. 3 # 1 # Linux 2 3 # Define the desired sound device backend 4 # Valid values are: 5 # - pa_unix: PortAudio on Unix (OSS or ALSA) 6 # - pa_darwinos: PortAudio on MacOSX (CoreAudio) 7 # - pa_old_darwinos: PortAudio on MacOSX (old CoreAudio, for OSX 10.2) 8 # - pa_win32: PortAudio on Win32 (WMME) 9 # - ds: Win32 DirectSound (dsound.c) 10 # - null: Null sound device (nullsound.c) 11 AC_PJMEDIA_SND=pa_unix 4 12 5 13 # 6 # PJMEDIA_OBJS specified here are object files to be included in PJMEDIA 7 # (the library) for this specific operating system. Object files common 8 # to all operating systems should go in Makefile instead. 14 # Codecs 9 15 # 10 export PJMEDIA_OBJS += $(PA_DIR)/pa_unix_hostapis.o $(PA_DIR)/pa_unix_util.o \ 11 $(PA_DIR)/pa_unix_oss.o 12 # $(PA_DIR)/pa_linux_alsa.o 16 AC_NO_G711_CODEC=0 17 AC_NO_L16_CODEC=0 18 AC_NO_GSM_CODEC=0 19 AC_NO_SPEEX_CODEC=0 20 AC_NO_ILBC_CODEC=0 13 21 14 export OS_CFLAGS += $(CC_DEF)PA_USE_OSS=1 22 export CODEC_OBJS= 23 24 ifeq ($(AC_NO_G711_CODEC),1) 25 export CFLAGS += -DPJMEDIA_HAS_G711_CODEC=0 26 else 27 export CODEC_OBJS += 28 endif 29 30 ifeq ($(AC_NO_L16_CODEC),1) 31 export CFLAGS += -DPJMEDIA_HAS_L16_CODEC=0 32 else 33 export CODEC_OBJS += l16.o 34 endif 35 36 ifeq ($(AC_NO_GSM_CODEC),1) 37 export CFLAGS += -DPJMEDIA_HAS_GSM_CODEC=0 38 else 39 export CODEC_OBJS += gsm.o 40 endif 41 42 ifeq ($(AC_NO_SPEEX_CODEC),1) 43 export CFLAGS += -DPJMEDIA_HAS_SPEEX_CODEC=0 44 else 45 export CFLAGS += -I$(THIRD_PARTY)/build/speex -I$(THIRD_PARTY)/speex/include 46 export CODEC_OBJS += speex_codec.o 47 48 ifeq (1,1) 49 export PJMEDIA_OBJS += echo_speex.o 50 endif 51 52 endif 53 54 ifeq ($(AC_NO_ILBC_CODEC),1) 55 export CFLAGS += -DPJMEDIA_HAS_ILBC_CODEC=0 56 else 57 export CODEC_OBJS += ilbc.o 58 endif 59 60 61 # 62 # PortAudio 63 # 64 ifneq ($(findstring pa,$(AC_PJMEDIA_SND)),) 65 export CFLAGS += -I$(THIRD_PARTY)/build/portaudio -I$(THIRD_PARTY)/portaudio/include -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_PORTAUDIO_SOUND 66 export SOUND_OBJS = pasound.o 67 endif 68 69 # 70 # Win32 DirectSound 71 # 72 ifeq ($(AC_PJMEDIA_SND),ds) 73 export SOUND_OBJS = dsound.o 74 export CFLAGS += -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_WIN32_DIRECT_SOUND 75 endif 76 77 # 78 # Last resort, null sound device 79 # 80 ifeq ($(AC_PJMEDIA_SND),null) 81 export SOUND_OBJS = nullsound.o 82 export CFLAGS += -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_NULL_SOUND 83 endif 84 85 -
pjproject/branches/split-3rd-party/pjmedia/build/os-win32.mak
r452 r1202 1 # 2 # OS specific configuration for Win32 OS target. 3 # 1 # PJMEDIA features exclusion 2 export CFLAGS += 3 4 # Define the desired sound device backend 5 # Valid values are: 6 # - pa_unix: PortAudio on Unix (OSS or ALSA) 7 # - pa_darwinos: PortAudio on MacOSX (CoreAudio) 8 # - pa_old_darwinos: PortAudio on MacOSX (old CoreAudio, for OSX 10.2) 9 # - pa_win32: PortAudio on Win32 (WMME) 10 # - ds: Win32 DirectSound (dsound.c) 11 # - null: Null sound device (nullsound.c) 12 AC_PJMEDIA_SND=pa_win32 4 13 5 14 # 6 # PJMEDIA_OBJS specified here are object files to be included in PJMEDIA 7 # (the library) for this specific operating system. Object files common 8 # to all operating systems should go in Makefile instead. 15 # Codecs 9 16 # 10 export PJMEDIA_OBJS += $(PA_DIR)/pa_win_hostapis.o $(PA_DIR)/pa_win_util.o \ 11 $(PA_DIR)/pa_win_wmme.o 17 AC_NO_G711_CODEC=0 18 AC_NO_L16_CODEC=0 19 AC_NO_GSM_CODEC=0 20 AC_NO_SPEEX_CODEC=0 21 AC_NO_ILBC_CODEC=0 12 22 13 export OS_CFLAGS += -DPA_NO_ASIO -DPA_NO_DS \ 14 -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_PORTAUDIO_SOUND 23 export CODEC_OBJS= 15 24 16 # Example: 17 # to activate Null sound, uncomment these two lines below. 18 #export SOUND_OBJS = $(NULLSOUND_OBJS) 19 #export OS_CFLAGS += $(CC_DEF)PJMEDIA_HAS_NULL_SOUND 25 ifeq ($(AC_NO_G711_CODEC),1) 26 export CFLAGS += -DPJMEDIA_HAS_G711_CODEC=0 27 else 28 export CODEC_OBJS += 29 endif 20 30 21 # Example: 22 # to include only GSM and exclude Speex codec, uncomment the "export" line below. 23 # Note that you'll need to put "#define PJMEDIA_HAS_SPEEX_CODEC 0" in 24 # <pj/config_site.h> 25 #export CODEC_OBJS = $(GSM_OBJS) 31 ifeq ($(AC_NO_L16_CODEC),1) 32 export CFLAGS += -DPJMEDIA_HAS_L16_CODEC=0 33 else 34 export CODEC_OBJS += l16.o 35 endif 26 36 37 ifeq ($(AC_NO_GSM_CODEC),1) 38 export CFLAGS += -DPJMEDIA_HAS_GSM_CODEC=0 39 else 40 export CODEC_OBJS += gsm.o 41 endif 42 43 ifeq ($(AC_NO_SPEEX_CODEC),1) 44 export CFLAGS += -DPJMEDIA_HAS_SPEEX_CODEC=0 45 else 46 export CFLAGS += -I$(THIRD_PARTY)/build/speex -I$(THIRD_PARTY)/speex/include 47 export CODEC_OBJS += speex_codec.o 48 49 #ifeq (@ac_no_speex_aec@,1) 50 ifeq (0,1) 51 export PJMEDIA_OBJS += echo_speex.o 52 endif 53 54 endif 55 56 ifeq ($(AC_NO_ILBC_CODEC),1) 57 export CFLAGS += -DPJMEDIA_HAS_ILBC_CODEC=0 58 else 59 export CODEC_OBJS += ilbc.o 60 endif 61 62 63 # 64 # PortAudio 65 # 66 ifneq ($(findstring pa,$(AC_PJMEDIA_SND)),) 67 export CFLAGS += -I$(THIRD_PARTY)/build/portaudio -I$(THIRD_PARTY)/portaudio/include -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_PORTAUDIO_SOUND 68 export SOUND_OBJS = pasound.o 69 endif 70 71 # 72 # Win32 DirectSound 73 # 74 ifeq ($(AC_PJMEDIA_SND),ds) 75 export SOUND_OBJS = dsound.o 76 export CFLAGS += -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_WIN32_DIRECT_SOUND 77 endif 78 79 # 80 # Last resort, null sound device 81 # 82 ifeq ($(AC_PJMEDIA_SND),null) 83 export SOUND_OBJS = nullsound.o 84 export CFLAGS += -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_NULL_SOUND 85 endif 86 87 -
pjproject/branches/split-3rd-party/pjmedia/src/pjmedia/errno.c
r974 r1202 20 20 #include <pjmedia/types.h> 21 21 #include <pj/string.h> 22 #include <portaudio.h> 22 #if PJMEDIA_SOUND_IMPLEMENTATION == PJMEDIA_SOUND_PORTAUDIO_SOUND 23 # include <portaudio.h> 24 #endif 23 25 24 26 -
pjproject/branches/split-3rd-party/pjmedia/src/pjmedia/sound_port.c
r974 r1202 26 26 #include <pj/string.h> /* pj_memset() */ 27 27 28 #ifndef PJMEDIA_SOUND_HAS_AEC29 # define PJMEDIA_SOUND_HAS_AEC 130 #endif31 32 #if defined(PJMEDIA_SOUND_HAS_AEC) && PJMEDIA_SOUND_HAS_AEC!=033 # include <speex/speex_echo.h>34 #endif35 36 28 //#define SIMULATE_LOST_PCT 20 37 29 #define AEC_TAIL 128 /* default AEC length in ms */ -
pjproject/branches/split-3rd-party/pjsip/build/Makefile
r1201 r1202 90 90 tsx_uas_test.o txdata_test.o uri_test.o 91 91 export TEST_CFLAGS += $(_CFLAGS) 92 export TEST_LDFLAGS += $( APP_LDFLAGS) $(APP_LDLIBS)92 export TEST_LDFLAGS += $(PJ_LDFLAGS) $(PJ_LDLIBS) 93 93 export TEST_EXE := ../bin/pjsip-test-$(TARGET_NAME)$(HOST_EXE) 94 94 -
pjproject/branches/split-3rd-party/third_party/build
-
Property
svn:ignore
set to
os-auto.mak
-
Property
svn:ignore
set to
-
pjproject/branches/split-3rd-party/third_party/build/Makefile
r1201 r1202 1 include ../build.mak 2 include $(PJDIR)/build/host-$(HOST_NAME).mak 3 4 DIRS = build/resample 5 6 ifeq (@ac_no_gsm_codec@,1) 7 else 8 DIRS += build/gsm 9 endif 10 11 ifeq (@ac_no_ilbc_codec@,1) 12 else 13 DIRS += build/ilbc 14 endif 15 16 ifeq (@ac_no_speex_codec@,1) 17 else 18 DIRS += build/speex 19 endif 20 21 ifeq (@ac_pjmedia_snd@,pa_old_darwinos) 22 DIRS += build/portaudio 23 endif 24 25 ifeq (@ac_pjmedia_snd@,pa_darwinos) 26 DIRS += build/portaudio 27 endif 28 29 ifeq (@ac_pjmedia_snd@,pa_win32) 30 DIRS += build/portaudio 31 endif 32 33 ifeq (@ac_pjmedia_snd@,pa_unix) 34 DIRS += build/portaudio 35 endif 36 37 1 include ../../build.mak 2 include $(PJDIR)/build/common.mak 38 3 39 4 all clean dep depend distclean realclean: 40 5 for dir in $(DIRS); do \ 41 if [ -d $$dir ]; then \42 6 if $(MAKE) $(MAKE_FLAGS) -C $$dir $@; then \ 43 7 true; \ … … 45 9 exit 1; \ 46 10 fi; \ 47 fi; \48 11 done 49 12 -
pjproject/branches/split-3rd-party/third_party/build/portaudio
- Property svn:ignore
-
old new 1 1 *.user 2 2 .* 3 Makefile 3 os-auto.mak
-
- Property svn:ignore
-
pjproject/branches/split-3rd-party/third_party/build/portaudio/Makefile
r1200 r1202 9 9 export PORTAUDIO_LIB:=../../lib/libportaudio-$(TARGET_NAME)$(LIBEXT) 10 10 11 PORTAUDIO_OBJS := pa_allocation.o \11 PORTAUDIO_OBJS += pa_allocation.o \ 12 12 pa_converters.o \ 13 13 pa_cpuload.o \ 14 14 pa_dither.o \ 15 pa_debugprint.o \ 15 16 pa_front.o \ 16 17 pa_process.o \ … … 20 21 21 22 22 # Define the desired sound device backend23 # Valid values are:24 # - pa_unix: PortAudio on Unix (OSS or ALSA)25 # - pa_darwinos: PortAudio on MacOSX (CoreAudio)26 # - pa_old_darwinos: PortAudio on MacOSX (old CoreAudio, for OSX 10.2)27 # - pa_win32: PortAudio on Win32 (WMME)28 #29 # There are other values below, but these are handled by PJMEDIA's Makefile30 # - ds: Win32 DirectSound (dsound.c)31 # - null: Null sound device (nullsound.c)32 AC_PJMEDIA_SND=@ac_pjmedia_snd@33 34 # For Unix, specify if ALSA should be supported35 AC_PA_USE_ALSA=@ac_pa_use_alsa@36 37 # Additional PortAudio CFLAGS are in @ac_pa_cflags@38 39 40 #41 # PortAudio on Unix42 #43 ifeq ($(AC_PJMEDIA_SND),pa_unix)44 # Host APIs and utils45 export PORTAUDIO_OBJS += pa_unix_hostapis.o pa_unix_util.o46 47 # Include ALSA?48 ifeq ($(AC_PA_USE_ALSA),1)49 export CFLAGS += -DPA_USE_ALSA=150 export PORTAUDIO_OBJS += pa_linux_alsa.o51 endif52 53 export CFLAGS += -DPA_USE_OSS=154 export CFLAGS += @ac_pa_cflags@55 export PORTAUDIO_OBJS += pa_unix_oss.o56 endif57 58 59 #60 # PortAudio on MacOS X (using current PortAudio)61 #62 ifeq ($(AC_PJMEDIA_SND),pa_darwinos)63 export PORTAUDIO_OBJS +=pa_mac_hostapis.o \64 pa_unix_util.o \65 pa_mac_core.o \66 pa_mac_core_blocking.o \67 pa_mac_core_utilities.o \68 pa_ringbuffer.o69 export CFLAGS += -DPA_USE_COREAUDIO=170 export CFLAGS += @ac_pa_cflags@71 endif72 73 #74 # PortAudio on MacOS X (using old PortAudio, for MacOS X 10.2.x)75 #76 ifeq ($(AC_PJMEDIA_SND),pa_old_darwinos)77 export PORTAUDIO_OBJS +=pa_mac_hostapis.o \78 pa_unix_util.o \79 pa_mac_core_old.o80 export CFLAGS += -DPA_USE_COREAUDIO=181 export CFLAGS += @ac_pa_cflags@82 endif83 84 #85 #86 # PortAudio on Win32 (WMME)87 #88 ifeq ($(AC_PJMEDIA_SND),pa_win32)89 export PORTAUDIO_OBJS += pa_win_hostapis.o pa_win_util.o \90 pa_win_wmme.o91 export CFLAGS += -DPA_NO_ASIO -DPA_NO_DS92 endif93 94 95 23 ############################################################################### 96 24 # Gather all flags. 97 25 # 98 export _CFLAGS := $(CC_CFLAGS) $(OS_CFLAGS) $(HOST_CFLAGS) $(M_CFLAGS) \26 export _CFLAGS += $(CC_CFLAGS) $(OS_CFLAGS) $(HOST_CFLAGS) $(M_CFLAGS) \ 99 27 $(CFLAGS) $(CC_INC). $(CC_INC)src 100 export _CXXFLAGS := $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \28 export _CXXFLAGS+= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \ 101 29 $(HOST_CXXFLAGS) $(CXXFLAGS) 102 export _LDFLAGS := $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \30 export _LDFLAGS += $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \ 103 31 $(LDFLAGS) 104 32 -
pjproject/branches/split-3rd-party/third_party/build/portaudio/os-auto.mak.in
r1200 r1202 1 1 # @configure_input@ 2 include ../../../build.mak3 include $(PJDIR)/build/common.mak4 5 export LIBDIR := ../../lib6 7 RULES_MAK := $(PJDIR)/build/rules.mak8 9 export PORTAUDIO_LIB:=../../lib/libportaudio-$(TARGET_NAME)$(LIBEXT)10 11 PORTAUDIO_OBJS := pa_allocation.o \12 pa_converters.o \13 pa_cpuload.o \14 pa_dither.o \15 pa_front.o \16 pa_process.o \17 pa_skeleton.o \18 pa_stream.o \19 pa_trace.o20 21 2 22 3 # Define the desired sound device backend … … 91 72 export CFLAGS += -DPA_NO_ASIO -DPA_NO_DS 92 73 endif 93 94 95 ###############################################################################96 # Gather all flags.97 #98 export _CFLAGS := $(CC_CFLAGS) $(OS_CFLAGS) $(HOST_CFLAGS) $(M_CFLAGS) \99 $(CFLAGS) $(CC_INC). $(CC_INC)src100 export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \101 $(HOST_CXXFLAGS) $(CXXFLAGS)102 export _LDFLAGS := $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \103 $(LDFLAGS)104 105 ###############################################################################106 # Defines for building PORTAUDIO library107 #108 export PORTAUDIO_SRCDIR = src109 export PORTAUDIO_OBJS +=110 export PORTAUDIO_CFLAGS += $(_CFLAGS)111 112 export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT113 ###############################################################################114 # Main entry115 #116 # $(TARGET) is defined in os-$(OS_NAME).mak file in current directory.117 #118 TARGETS := libportaudio119 120 all: $(TARGETS)121 122 dep: depend123 distclean: realclean124 125 .PHONY: dep depend libportaudio clean realclean distclean126 127 libportaudio:128 $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $(PORTAUDIO_LIB)129 130 clean:131 $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $@132 133 realclean:134 $(subst @@,$(subst /,$(HOST_PSEP),.libportaudio-$(TARGET_NAME).depend),$(HOST_RMR))135 136 $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $@137 138 depend:139 $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $@140 echo '$(PORTAUDIO_LIB): .libportaudio-$(TARGET_NAME).depend' >> .libportaudio-$(TARGET_NAME).depend; \141
Note: See TracChangeset
for help on using the changeset viewer.