Ignore:
Timestamp:
Jan 3, 2014 3:44:05 AM (11 years ago)
Author:
nanang
Message:

Close #1720:

  • Added configure flags --with-external-srtp and --disable-resample.
  • Added macro setting PJMEDIA_LIBSRTP_AUTO_INIT_DEINIT to allow application to handle libsrtp init & deinit by itself.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/build.mak.in

    r4656 r4701  
    2727export APP_THIRD_PARTY_EXT := 
    2828export APP_THIRD_PARTY_LIBS := 
    29 export APP_THIRD_PARTY_LIB_FILES := $(PJ_DIR)/third_party/lib/libmilenage-$(LIB_SUFFIX) $(PJ_DIR)/third_party/lib/libsrtp-$(LIB_SUFFIX) 
    30 ifeq ($(PJ_SHARED_LIBRARIES),) 
    31 APP_THIRD_PARTY_LIBS += -lmilenage-$(TARGET_NAME) -lsrtp-$(TARGET_NAME) 
    32 else 
    33 APP_THIRD_PARTY_LIBS += -lmilenage -lsrtp 
    34 APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libmilenage.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/third_party/lib/libmilenage.$(SHLIB_SUFFIX) \ 
    35                              $(PJ_DIR)/third_party/lib/libsrtp.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/third_party/lib/libsrtp.$(SHLIB_SUFFIX) 
    36 endif 
    37  
     29export APP_THIRD_PARTY_LIB_FILES := $(PJ_DIR)/third_party/lib/libmilenage-$(LIB_SUFFIX) 
     30ifeq ($(PJ_SHARED_LIBRARIES),) 
     31APP_THIRD_PARTY_LIBS += -lmilenage-$(TARGET_NAME) 
     32else 
     33APP_THIRD_PARTY_LIBS += -lmilenage 
     34APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libmilenage.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/third_party/lib/libmilenage.$(SHLIB_SUFFIX) 
     35endif 
     36 
     37ifeq (@ac_external_srtp@,1) 
     38# External SRTP library 
     39APP_THIRD_PARTY_EXT += -lsrtp 
     40else 
     41APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libsrtp-$(LIB_SUFFIX) 
     42ifeq ($(PJ_SHARED_LIBRARIES),) 
     43APP_THIRD_PARTY_LIBS += -lsrtp-$(TARGET_NAME) 
     44else 
     45APP_THIRD_PARTY_LIBS += -lsrtp 
     46APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libsrtp.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/third_party/lib/libsrtp.$(SHLIB_SUFFIX) 
     47endif 
     48endif 
     49 
     50ifeq (@ac_pjmedia_resample@,libresample) 
    3851APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libresample-$(LIB_SUFFIX) 
    3952ifeq ($(PJ_SHARED_LIBRARIES),) 
     
    4861APP_THIRD_PARTY_LIBS += -lresample 
    4962APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libresample.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/third_party/lib/libresample.$(SHLIB_SUFFIX) 
     63endif 
    5064endif 
    5165 
Note: See TracChangeset for help on using the changeset viewer.