Changeset 5735


Ignore:
Timestamp:
Feb 12, 2018 6:50:00 AM (17 months ago)
Author:
ming
Message:

Fixed #2086: Add C# binding using SWIG, and support for Xamarin

Location:
pjproject/trunk
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure

    r5725 r5735  
    701701ac_linux_poll 
    702702ac_os_objs 
     703ac_target_arch 
    703704EGREP 
    704705GREP 
     
    50615062fi 
    50625063 
     5064 
    50635065case $target in 
    50645066    *android*) 
    50655067        $as_echo "#define PJ_ANDROID 1" >>confdefs.h 
    50665068 
     5069        ac_target_arch=$TARGET_ABI 
    50675070        ;; 
    50685071    *mingw* | *cygw* | *win32* | *w32* ) 
     
    50775080        $as_echo "#define PJ_DARWINOS 1" >>confdefs.h 
    50785081 
     5082        ac_target_arch=$ARCH_VAL 
    50795083        ;; 
    50805084    *linux*) 
  • pjproject/trunk/aconfigure.ac

    r5725 r5735  
    147147dnl Legacy macros 
    148148dnl 
     149AC_SUBST(ac_target_arch) 
    149150case $target in 
    150151    *android*) 
    151152        AC_DEFINE(PJ_ANDROID,1) 
     153        ac_target_arch=$TARGET_ABI 
    152154        ;; 
    153155    *mingw* | *cygw* | *win32* | *w32* ) 
     
    158160    *darwin*) 
    159161        AC_DEFINE(PJ_DARWINOS,1) 
     162        ac_target_arch=$ARCH_VAL 
    160163        ;; 
    161164    *linux*) 
  • pjproject/trunk/build.mak.in

    r5679 r5735  
    88export HOST_NAME := unix 
    99export CC_NAME := gcc 
     10export TARGET_ARCH := @ac_target_arch@ 
    1011export TARGET_NAME := @target@ 
    1112export CROSS_COMPILE := @ac_cross_compile@ 
  • pjproject/trunk/pjsip-apps/src/swig/Makefile

    r4746 r5735  
    22 
    33ifneq ($(findstring android,$(TARGET_NAME)),) 
    4   # no python for android 
    5   DIRS = java 
     4    # no python for android 
     5    DIRS = java csharp 
    66else 
    7   DIRS = python java 
     7    ifneq ($(findstring ios,$(TARGET_NAME)),) 
     8        DIRS = csharp 
     9    else 
     10        DIRS = python java 
     11    endif 
    812endif 
    913 
     
    2933        done 
    3034 
     35csharp: 
     36        $(MAKE) $(MAKE_FLAGS) -C csharp $@ 
     37 
    3138symbols.i: symbols.lst 
    3239        @echo ** Warning **: file symbols.i is out of date. Run 'make symbol'. 
  • pjproject/trunk/pjsip-apps/src/swig/symbols.i

    r5721 r5735  
    176176typedef enum pjsua_create_media_transport_flag {PJSUA_MED_TP_CLOSE_MEMBER = 1} pjsua_create_media_transport_flag; 
    177177 
    178 typedef enum pjsua_snd_dev_id {PJSUA_SND_DEFAULT_CAPTURE_DEV = PJMEDIA_AUD_DEFAULT_CAPTURE_DEV, PJSUA_SND_DEFAULT_PLAYBACK_DEV = PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV, PJSUA_SND_NO_DEV = PJMEDIA_AUD_INVALID_DEV, PJSUA_SND_NULL_DEV = -99} pjsua_snd_dev_id; 
     178typedef enum pjsua_snd_dev_id {PJSUA_SND_DEFAULT_CAPTURE_DEV = -1, PJSUA_SND_DEFAULT_PLAYBACK_DEV = -2, PJSUA_SND_NO_DEV = -3, PJSUA_SND_NULL_DEV = -99} pjsua_snd_dev_id; 
    179179 
    180180typedef enum pjsua_snd_dev_mode {PJSUA_SND_DEV_SPEAKER_ONLY = 1, PJSUA_SND_DEV_NO_IMMEDIATE_OPEN = 2} pjsua_snd_dev_mode; 
Note: See TracChangeset for help on using the changeset viewer.