Ignore:
Timestamp:
Apr 18, 2007 9:24:31 AM (17 years ago)
Author:
bennylp
Message:

Fixed the legacy build system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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) 
     11AC_PJMEDIA_SND=pa_unix 
    412 
    513# 
    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 
    915# 
    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 
     16AC_NO_G711_CODEC=0 
     17AC_NO_L16_CODEC=0 
     18AC_NO_GSM_CODEC=0 
     19AC_NO_SPEEX_CODEC=0 
     20AC_NO_ILBC_CODEC=0 
    1321 
    14 export OS_CFLAGS +=  $(CC_DEF)PA_USE_OSS=1 
     22export CODEC_OBJS= 
     23 
     24ifeq ($(AC_NO_G711_CODEC),1) 
     25export CFLAGS += -DPJMEDIA_HAS_G711_CODEC=0 
     26else 
     27export CODEC_OBJS += 
     28endif 
     29 
     30ifeq ($(AC_NO_L16_CODEC),1) 
     31export CFLAGS += -DPJMEDIA_HAS_L16_CODEC=0 
     32else 
     33export CODEC_OBJS += l16.o 
     34endif 
     35 
     36ifeq ($(AC_NO_GSM_CODEC),1) 
     37export CFLAGS += -DPJMEDIA_HAS_GSM_CODEC=0 
     38else 
     39export CODEC_OBJS += gsm.o 
     40endif 
     41 
     42ifeq ($(AC_NO_SPEEX_CODEC),1) 
     43export CFLAGS += -DPJMEDIA_HAS_SPEEX_CODEC=0 
     44else 
     45export CFLAGS += -I$(THIRD_PARTY)/build/speex -I$(THIRD_PARTY)/speex/include 
     46export CODEC_OBJS += speex_codec.o 
     47 
     48ifeq (1,1) 
     49export PJMEDIA_OBJS += echo_speex.o 
     50endif 
     51 
     52endif 
     53 
     54ifeq ($(AC_NO_ILBC_CODEC),1) 
     55export CFLAGS += -DPJMEDIA_HAS_ILBC_CODEC=0 
     56else 
     57export CODEC_OBJS += ilbc.o 
     58endif 
     59 
     60 
     61# 
     62# PortAudio 
     63# 
     64ifneq ($(findstring pa,$(AC_PJMEDIA_SND)),) 
     65export CFLAGS += -I$(THIRD_PARTY)/build/portaudio -I$(THIRD_PARTY)/portaudio/include -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_PORTAUDIO_SOUND 
     66export SOUND_OBJS = pasound.o 
     67endif 
     68 
     69# 
     70# Win32 DirectSound 
     71# 
     72ifeq ($(AC_PJMEDIA_SND),ds) 
     73export SOUND_OBJS = dsound.o 
     74export CFLAGS += -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_WIN32_DIRECT_SOUND 
     75endif 
     76 
     77# 
     78# Last resort, null sound device 
     79# 
     80ifeq ($(AC_PJMEDIA_SND),null) 
     81export SOUND_OBJS = nullsound.o 
     82export CFLAGS += -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_NULL_SOUND 
     83endif 
     84 
     85 
Note: See TracChangeset for help on using the changeset viewer.