Merge pull request #1088 from mfleisz/jniscript

Android: Fixed JNI regenerate script
This commit is contained in:
Marc-André Moreau 2013-03-13 06:39:42 -07:00
commit 30df2fecf7
3 changed files with 7 additions and 6 deletions

View File

@ -210,6 +210,7 @@ if(ANDROID)
endif()
set(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH} ${FREERDP_ANDROID_EXTERNAL_SSL_PATH})
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/client/Android/FreeRDPCore/libs/${ANDROID_ABI})
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/scripts/regenerate_jni_headers.sh.cmake ${CMAKE_CURRENT_SOURCE_DIR}/scripts/regenerate_jni_headers.sh @ONLY)
endif()
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)

View File

@ -1,6 +0,0 @@
#!/bin/bash
cd client/Android/jni/generated/
javah -classpath ../../bin/classes/ -jni com.freerdp.afreerdp.services.LibFreeRDP
rm com_freerdp_afreerdp_services_LibFreeRDP_EventListener.h \
com_freerdp_afreerdp_services_LibFreeRDP_UIEventListener.h

View File

@ -0,0 +1,6 @@
#!/bin/bash
cd client/Android/FreeRDPCore/jni/generated/
javah -classpath ../../bin/classes:@ANDROID_SDK@/platforms/android-8/android.jar -jni com.freerdp.freerdpcore.services.LibFreeRDP
rm com_freerdp_freerdpcore_services_LibFreeRDP_EventListener.h \
com_freerdp_freerdpcore_services_LibFreeRDP_UIEventListener.h