api.sh 350 B

12345
  1. swig -c++ -java -package org.doubango.utils -outdir ./java -o ./utils_wrap.cxx ./api.i
  2. sed -i 's/dynamic_cast/static_cast/g' ./utils_wrap.cxx
  3. sed -i 's/AttachCurrentThread((void \*\*)/AttachCurrentThread((JNIEnv \*\*)/g' ./utils_wrap.cxx
  4. sed -i 's/AttachCurrentThreadAsDaemon((void \*\*)/AttachCurrentThreadAsDaemon((JNIEnv \*\*)/g' ./utils_wrap.cxx