Ignore:
Timestamp:
Apr 18, 2007 9:24:31 AM (13 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-win32.mak

    r452 r1202  
    1 # 
    2 # OS specific configuration for Win32 OS target.  
    3 # 
     1# PJMEDIA features exclusion 
     2export 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) 
     12AC_PJMEDIA_SND=pa_win32 
    413 
    514# 
    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 
    916# 
    10 export PJMEDIA_OBJS += $(PA_DIR)/pa_win_hostapis.o $(PA_DIR)/pa_win_util.o \ 
    11                        $(PA_DIR)/pa_win_wmme.o 
     17AC_NO_G711_CODEC=0 
     18AC_NO_L16_CODEC=0 
     19AC_NO_GSM_CODEC=0 
     20AC_NO_SPEEX_CODEC=0 
     21AC_NO_ILBC_CODEC=0 
    1222 
    13 export OS_CFLAGS += -DPA_NO_ASIO -DPA_NO_DS \ 
    14                     -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_PORTAUDIO_SOUND 
     23export CODEC_OBJS= 
    1524 
    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 
     25ifeq ($(AC_NO_G711_CODEC),1) 
     26export CFLAGS += -DPJMEDIA_HAS_G711_CODEC=0 
     27else 
     28export CODEC_OBJS += 
     29endif 
    2030 
    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) 
     31ifeq ($(AC_NO_L16_CODEC),1) 
     32export CFLAGS += -DPJMEDIA_HAS_L16_CODEC=0 
     33else 
     34export CODEC_OBJS += l16.o 
     35endif 
    2636 
     37ifeq ($(AC_NO_GSM_CODEC),1) 
     38export CFLAGS += -DPJMEDIA_HAS_GSM_CODEC=0 
     39else 
     40export CODEC_OBJS += gsm.o 
     41endif 
     42 
     43ifeq ($(AC_NO_SPEEX_CODEC),1) 
     44export CFLAGS += -DPJMEDIA_HAS_SPEEX_CODEC=0 
     45else 
     46export CFLAGS += -I$(THIRD_PARTY)/build/speex -I$(THIRD_PARTY)/speex/include 
     47export CODEC_OBJS += speex_codec.o 
     48 
     49#ifeq (@ac_no_speex_aec@,1) 
     50ifeq (0,1) 
     51export PJMEDIA_OBJS += echo_speex.o 
     52endif 
     53 
     54endif 
     55 
     56ifeq ($(AC_NO_ILBC_CODEC),1) 
     57export CFLAGS += -DPJMEDIA_HAS_ILBC_CODEC=0 
     58else 
     59export CODEC_OBJS += ilbc.o 
     60endif 
     61 
     62 
     63# 
     64# PortAudio 
     65# 
     66ifneq ($(findstring pa,$(AC_PJMEDIA_SND)),) 
     67export CFLAGS += -I$(THIRD_PARTY)/build/portaudio -I$(THIRD_PARTY)/portaudio/include -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_PORTAUDIO_SOUND 
     68export SOUND_OBJS = pasound.o 
     69endif 
     70 
     71# 
     72# Win32 DirectSound 
     73# 
     74ifeq ($(AC_PJMEDIA_SND),ds) 
     75export SOUND_OBJS = dsound.o 
     76export CFLAGS += -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_WIN32_DIRECT_SOUND 
     77endif 
     78 
     79# 
     80# Last resort, null sound device 
     81# 
     82ifeq ($(AC_PJMEDIA_SND),null) 
     83export SOUND_OBJS = nullsound.o 
     84export CFLAGS += -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_NULL_SOUND 
     85endif 
     86 
     87 
Note: See TracChangeset for help on using the changeset viewer.