Merge pull request #1088 from mfleisz/jniscript
Android: Fixed JNI regenerate script
This commit is contained in:
commit
30df2fecf7
@ -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)
|
||||
|
@ -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
|
6
scripts/regenerate_jni_headers.sh.cmake
Executable file
6
scripts/regenerate_jni_headers.sh.cmake
Executable 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
|
Loading…
Reference in New Issue
Block a user