summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/swig/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip-apps/src/swig/Makefile')
-rw-r--r--pjsip-apps/src/swig/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/pjsip-apps/src/swig/Makefile b/pjsip-apps/src/swig/Makefile
new file mode 100644
index 00000000..815e0e18
--- /dev/null
+++ b/pjsip-apps/src/swig/Makefile
@@ -0,0 +1,32 @@
+include ../../../build.mak
+
+ifneq ($(findstring android,$(TARGET_NAME)),)
+ # no python for android
+ DIRS = java
+else
+ DIRS = python java
+endif
+
+export SWIG_FLAGS=-I../../../../pjlib/include \
+ -I../../../../pjlib-util/include \
+ -I../../../../pjmedia/include \
+ -I../../../../pjsip/include \
+ -I../../../../pjnath/include -c++
+export SRC_DIR=../../../../pjsip/include
+export SRCS=$(SRC_DIR)/pjsua2/endpoint.hpp $(SRC_DIR)/pjsua2/types.hpp
+
+.PHONY: all clean dep depend distclean print realclean install uninstall
+
+all: symbols.i
+
+all clean dep depend distclean print realclean install uninstall:
+ for dir in $(DIRS); do \
+ if $(MAKE) $(MAKE_FLAGS) -C $$dir $@; then \
+ true; \
+ else \
+ exit 1; \
+ fi; \
+ done
+
+symbols.i: symbols.lst
+ python importsym.py