- Timestamp:
- Dec 28, 2016 3:40:07 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp
- Property svn:mergeinfo changed
/pjproject/trunk (added) merged: 5209,5212-5234,5237-5253,5255,5257-5292,5294-5297,5299-5332,5334-5394,5396-5438,5440-5469,5471-5496,5498-5510
- Property svn:mergeinfo changed
-
pjproject/branches/projects/uwp/pjsip-apps/src/swig/java/Makefile
r5029 r5513 22 22 else 23 23 ifeq ($(OS),android) 24 LIBPJSUA2_SO=android/ libs/armeabi/libpjsua2.so24 LIBPJSUA2_SO=android/app/src/main/jniLibs/armeabi/libpjsua2.so 25 25 else 26 26 LIBPJSUA2_SO=$(OUT_DIR)/libpjsua2.so … … 127 127 MY_JAVA := "$(JAVA_BIN)/java" 128 128 MY_JAVAC := "$(JAVA_BIN)/javac" 129 MY_JNI_CFLAGS := -I"$(JAVA_INC)" -I"$(JAVA_INC)/win32" \ 129 ifneq ($(OS),android) 130 MY_JNI_CFLAGS := -I"$(JAVA_INC)" -I"$(JAVA_INC)/win32" \ 130 131 -I"$(JAVA_INC)/linux" -I"$(JAVA_INC)/darwin" -I. 131 MY_JNI_LDFLAGS := -L"$(JAVA_LIB)" 132 MY_JNI_LDFLAGS := -L"$(JAVA_LIB)" 133 endif 132 134 133 135 # OS specific … … 138 140 ifeq ($(OS),android) 139 141 MY_JNI_CFLAGS+= -D__ANDROID__ 142 MY_JNI_LDFLAGS+= -Wl,-soname,libpjsua2.so 140 143 SWIG_FLAGS+= -D__ANDROID__ 141 144 endif … … 147 150 MY_PACKAGE_NAME := org.pjsip.pjsua2 148 151 ifeq ($(OS),android) 149 MY_PACKAGE_PATH := android/ src/$(subst .,/,$(MY_PACKAGE_NAME))152 MY_PACKAGE_PATH := android/app/src/main/java/$(subst .,/,$(MY_PACKAGE_NAME)) 150 153 else 151 154 MY_PACKAGE_PATH := $(OUT_DIR)/$(subst .,/,$(MY_PACKAGE_NAME)) 152 155 endif 153 156 154 MY_APP_JAVA := android/ src/$(subst .,/,$(MY_PACKAGE_NAME))/app/MyApp.java157 MY_APP_JAVA := android/app/src/main/java/$(subst .,/,$(MY_PACKAGE_NAME))/app/MyApp.java 155 158 156 159 .PHONY: all java install uninstall … … 159 162 160 163 $(LIBPJSUA2_SO): $(OUT_DIR)/pjsua2_wrap.o 164 ifeq ($(OS),android) 165 mkdir -p android/app/src/main/jniLibs/armeabi 166 endif 161 167 $(PJ_CXX) -shared -o $(LIBPJSUA2_SO) $(OUT_DIR)/pjsua2_wrap.o \ 162 168 $(MY_CFLAGS) $(MY_LDFLAGS) … … 168 174 $(OUT_DIR)/pjsua2_wrap.cpp: ../pjsua2.i ../symbols.i $(SRCS) 169 175 mkdir -p $(MY_PACKAGE_PATH) 176 mkdir -p $(OUT_DIR) 170 177 swig $(SWIG_FLAGS) -java -package $(MY_PACKAGE_NAME) \ 171 178 -outdir $(MY_PACKAGE_PATH) \ … … 190 197 $(MY_PACKAGE_PATH)/sample.class: sample.java 191 198 $(MY_JAVAC) -d $(OUT_DIR) -classpath "$(OUT_DIR)" sample.java 199 @# Build javafx sample app 200 @# $(MY_JAVAC) -d $(OUT_DIR) -classpath "$(OUT_DIR)" sample2.java 192 201 193 202 test: … … 201 210 $(MY_JAVA) -cp "$(OUT_DIR)" -Djava.library.path="$(OUT_DIR)" \ 202 211 org.pjsip.pjsua2.app.sample 212 @# This is for sample2 app 213 @# $(MY_JAVA) -cp "$(OUT_DIR)" -Djava.library.path="$(OUT_DIR)" \ 214 @# org.pjsip.pjsua2.app.sample2 203 215 204 216 install:
Note: See TracChangeset
for help on using the changeset viewer.