- Timestamp:
- Dec 18, 2013 7:14:54 AM (11 years ago)
- Location:
- pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/java
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/java/Makefile
r4691 r4696 80 80 endif 81 81 82 MY_APP_JAVA = android/src/$(subst .,/,$(MY_PACKAGE_NAME))/app/MyApp.java 83 82 84 .PHONY: all java install uninstall 83 85 … … 97 99 rm -rf $(LIBPJSUA2_SO) $(OUT_DIR)/* $(MY_PACKAGE_PATH)/*.java $(MY_PACKAGE_PATH)/*.class 98 100 99 java: $(MY_PACKAGE_PATH)/Error.class $(MY_PACKAGE_PATH)/test.class 101 java: $(MY_PACKAGE_PATH)/Error.class $(MY_PACKAGE_PATH)/test.class $(MY_PACKAGE_PATH)/sample.class 100 102 101 103 $(MY_PACKAGE_PATH)/Error.class: $(MY_PACKAGE_PATH)/Error.java 102 $(MY_JAVAC) -d $(OUT_DIR) $(MY_PACKAGE_PATH)/*.java 104 $(MY_JAVAC) -d $(OUT_DIR) $(MY_PACKAGE_PATH)/*.java $(MY_APP_JAVA) 103 105 104 106 $(MY_PACKAGE_PATH)/test.class: test.java 105 107 $(MY_JAVAC) -d $(OUT_DIR) -classpath "$(OUT_DIR)" test.java 108 109 $(MY_PACKAGE_PATH)/sample.class: sample.java 110 $(MY_JAVAC) -d $(OUT_DIR) -classpath "$(OUT_DIR)" sample.java 106 111 107 112 test: 108 113 @# Need to specify classpath and library path, alternatively, they can be set via 109 114 @# CLASSPATH and java.library.path env settings 110 $(MY_JAVA) -cp "$(OUT_DIR);$(MY_PACKAGE_PATH)" -Djava.library.path="$(OUT_DIR)" test 115 $(MY_JAVA) -cp "$(OUT_DIR)" -Djava.library.path="$(OUT_DIR)" test 116 117 sample: 118 @# Need to specify classpath and library path, alternatively, they can be set via 119 @# CLASSPATH and java.library.path env settings 120 $(MY_JAVA) -cp "$(OUT_DIR)" -Djava.library.path="$(OUT_DIR)" org.pjsip.pjsua2.app.sample 111 121 112 122 install: -
pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/java/android/src/org/pjsip/pjsua2/app/MyApp.java
r4691 r4696 239 239 240 240 public void init(MyAppObserver obs, String app_dir) { 241 init(obs, app_dir, false); 242 } 243 244 public void init(MyAppObserver obs, String app_dir, boolean own_worker_thread) { 241 245 observer = obs; 242 246 appDir = app_dir; … … 274 278 UaConfig ua_cfg = epConfig.getUaConfig(); 275 279 ua_cfg.setUserAgent("Pjsua2And" + ep.libVersion().getFull()); 280 if (own_worker_thread) { 281 ua_cfg.setThreadCnt(0); 282 ua_cfg.setMainThreadOnly(true); 283 } 276 284 277 285 /* Init endpoint */
Note: See TracChangeset
for help on using the changeset viewer.