autogen.sh 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. ##### CSharp
  2. echo "--->CSharp...<---"
  3. swig -c++ -csharp -namespace org.doubango.tinyWRAP -outdir csharp -o csharp/tinyWRAP_wrap.cxx csharp/csharp.i
  4. ##### Objective-C
  5. #echo "--->Objective-C...<---"
  6. #swig -c++ -objc -outdir objc -o -objc/tinyWRAP_wrap.cxx -objc/-objc.i
  7. ##### Java
  8. echo "--->Java...<---"
  9. swig -c++ -java -package org.doubango.tinyWRAP -outdir java -o java/tinyWRAP_wrap.cxx java/java.i
  10. echo "Java(Google Dalvik)..."
  11. echo "Google Android special tasks"
  12. swig -noexcept -c++ -java -package org.doubango.tinyWRAP -outdir java/android -o java/android/tinyWRAP_wrap.cxx java/java.i
  13. sed -i 's/dynamic_cast/static_cast/g' java/android/tinyWRAP_wrap.cxx
  14. #sed -i 's/AttachCurrentThread((void \*\*)/AttachCurrentThread((JNIEnv \*\*)/g' java/android/tinyWRAP_wrap.cxx
  15. #sed -i 's/AttachCurrentThreadAsDaemon((void \*\*)/AttachCurrentThreadAsDaemon((JNIEnv \*\*)/g' java/android/tinyWRAP_wrap.cxx
  16. #for f in SipCallback DDebugCallback ProxyPluginMgrCallback ProxyAudioConsumerCallback ProxyAudioProducerCallback ProxyVideoProducerCallback ProxyVideoConsumerCallback XcapCallback MsrpCallback T140Callback
  17. #do
  18. # sed -i 's/_director_connect(this, swigCPtr, swigCMemOwn, true)/_director_connect(this, swigCPtr, swigCMemOwn, false)/g' java/android/$f.java
  19. #done
  20. ##### Python
  21. echo "--->Python...<---"
  22. swig -c++ -python -outdir python -o python/tinyWRAP_wrap.cxx python/python.i
  23. ##### Perl
  24. echo "--->Perl...<---"
  25. swig -c++ -perl -outdir perl -o Perl/tinyWRAP_wrap.cxx perl/perl.i
  26. ##### Ruby
  27. echo "--->Ruby...<---"
  28. #swig -c++ -ruby -outdir Ruby -o Ruby/tinyWRAP_wrap.cxx ruby/ruby.i