Changeset 4563
- Timestamp:
- Jul 15, 2013 5:34:14 AM (11 years ago)
- Location:
- pjproject/branches/projects/jni/pjsip-apps/src/jni
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/jni/pjsip-apps/src/jni/Makefile
r4557 r4563 5 5 include $(PJDIR)/build/common.mak 6 6 7 # Get JDK location 8 ifeq ("$(JAVA_HOME)","") 9 # Get javac location to determine JDK location 10 JAVAC_PATH = $(shell which javac) 11 ifeq ("$(JAVAC_PATH)","") 12 $(error Cannot determine JDK location using 'which' command. Please define JAVA_HOME envvar) 13 endif 14 15 JAVAC_PATH := $(realpath $(JAVAC_PATH)) 16 JAVA_BIN := $(dir $(JAVAC_PATH)) 17 JAVA_HOME := $(patsubst %/bin/,%,$(JAVA_BIN)) 18 endif 19 20 # OS specific 21 ifeq ($(OS),Windows_NT) 22 MY_JNI_LDFLAGS = -L$(MY_JDK)/lib -Wl,--kill-at 23 MY_JNI_LIB = $(MY_PACKAGE_BIN)/pjsua.dll 24 else 25 MY_JNI_LDFLAGS = -L$(MY_JDK)/lib -Wl,-soname,pjsua.so 26 MY_JNI_LIB = $(MY_PACKAGE_BIN)/libpjsua.so 27 MY_JNI_CFLAGS := -fPIC 28 endif 29 7 30 # Env settings, e.g: path to SWIG, JDK, java(.exe), javac(.exe) 8 31 MY_SWIG = swig 9 MY_JDK = /c/Program\ Files\ \(x86\)/Java/jdk1.7.0_2110 MY_JAVA = $(MY_JDK)/bin/java .exe11 MY_JAVAC = $(MY_JDK)/bin/javac .exe12 MY_JNI_CFLAGS = -I$(MY_JDK)/include -I$(MY_JDK)/include/win32 -I.13 MY_JNI_LDFLAGS = -L$(MY_JDK)/lib -Wl,--kill-at 32 MY_JDK = $(JAVA_HOME) 33 MY_JAVA = $(MY_JDK)/bin/java 34 MY_JAVAC = $(MY_JDK)/bin/javac 35 MY_JNI_CFLAGS := $(MY_JNI_CFLAGS) -I$(MY_JDK)/include -I$(MY_JDK)/include/win32 \ 36 -I$(MY_JDK)/include/linux -I. 14 37 15 38 # Build settings … … 25 48 MY_PACKAGE_SRC = $(MY_OUT_DIR)/src/$(subst .,/,$(MY_PACKAGE)) 26 49 MY_PACKAGE_BIN = $(MY_OUT_DIR)/bin 27 MY_JNI_LIB = $(MY_PACKAGE_BIN)/pjsua.dll28 50 29 51 all: $(MY_JNI_LIB) java -
pjproject/branches/projects/jni/pjsip-apps/src/jni/swig_gen.py
r4557 r4563 14 14 #SOURCE_PATH = PJ_ROOT_PATH + "pjlib/include/pj/types.h" 15 15 16 # CPP (C preprocessor) settings, CPP is needed by pycparser. 17 CPP_PATH = 'C:/devs/bin/cpp.exe' if sys.platform == 'win32' else 'cpp' 16 # CPP is needed by pycparser. 17 if sys.platform == 'win32': 18 PYCPARSER_DIR="C:/devs/tools/pycparser" 19 CPP_PATH='C:/devs/bin/cpp.exe' 20 else: 21 PYCPARSER_DIR="/home/bennylp/Desktop/opt/src/pycparser-master" 22 CPP_PATH='cpp' 23 24 # CPP (C preprocessor) settings 18 25 CPP_CFLAGS = [ 19 r'-DPJ_AUTOCONF', 20 r'-DCC_DUMMY', 21 r'-Djmp_buf=int', 22 r'-IC:/devs/tools/pycparser/utils/fake_libc_include', 26 '-DPJ_AUTOCONF', 27 '-DCC_DUMMY', 28 '-U__GNUC__', 29 '-Djmp_buf=int', 30 '-I' + PYCPARSER_DIR + '/utils/fake_libc_include', 23 31 "-I" + PJ_ROOT_PATH + "pjlib/include", 24 32 "-I" + PJ_ROOT_PATH + "pjlib-util/include",
Note: See TracChangeset
for help on using the changeset viewer.