Skip to content

Commit

Permalink
Add swig option to include doc for java and python wrapper (#4080)
Browse files Browse the repository at this point in the history
* Add swig option to include doc for java and python wrapper

* Fix : unmappable character (0x80) for encoding US-ASCII
  • Loading branch information
trengginas authored Sep 25, 2024
1 parent 9543a1b commit 6cb98ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions pjsip-apps/src/swig/java/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ SWIG_FLAGS=-I../../../../pjlib/include \
SRC_DIR=../../../../pjsip/include
SRCS=$(SRC_DIR)/pjsua2/endpoint.hpp $(SRC_DIR)/pjsua2/types.hpp

GEN_DOC = -doxygen
SWIG_FLAGS += $(GEN_DOC)

ifneq ($(findstring android,$(TARGET_NAME)),)
OS=android
ifeq ("$(JAVA_HOME)","")
Expand Down
3 changes: 2 additions & 1 deletion pjsip-apps/src/swig/python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ SWIG_FLAGS=-I../../../../pjlib/include \
SRC_DIR=../../../../pjsip/include
SRCS=$(SRC_DIR)/pjsua2/endpoint.hpp $(SRC_DIR)/pjsua2/types.hpp

GEN_DOC = -doxygen
USE_THREADS = -threads
# In SWIG 4.2 the build will fail if we use this flag
#-DSWIG_NO_EXPORT_ITERATOR_METHODS
SWIG_FLAGS += -w312 $(USE_THREADS)
SWIG_FLAGS += -w312 $(USE_THREADS) $(GEN_DOC)

.PHONY: all install uninstall

Expand Down
2 changes: 1 addition & 1 deletion pjsip/include/pjsua2/siptypes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ struct TransportConfig : public PersistentObject

/**
* This specifies TLS settings for TLS transport.
* Its only used when creating a SIP TLS transport.
* It's only used when creating a SIP TLS transport.
*/
TlsConfig tlsConfig;

Expand Down

0 comments on commit 6cb98ab

Please sign in to comment.