From cb8b7642b84f6d54c08e9ca57be21e61dfc22c50 Mon Sep 17 00:00:00 2001 From: The Judge Date: Mon, 2 Sep 2024 11:40:55 -0700 Subject: [PATCH] Fix actions --- src/main/jni/Android.mk | 18 --- src/main/jni/awt_xawt/xawt_fake.c | 215 ------------------------------ 2 files changed, 233 deletions(-) delete mode 100644 src/main/jni/awt_xawt/xawt_fake.c diff --git a/src/main/jni/Android.mk b/src/main/jni/Android.mk index 9d766fd0..3361bac7 100644 --- a/src/main/jni/Android.mk +++ b/src/main/jni/Android.mk @@ -97,21 +97,3 @@ include $(BUILD_SHARED_LIBRARY) # LOCAL_SRC_FILES := thread_helper.cpp # include $(BUILD_SHARED_LIBRARY) -# fake lib for linker -include $(CLEAR_VARS) -LOCAL_MODULE := awt_headless -include $(BUILD_SHARED_LIBRARY) - -# libawt_xawt without X11, used to get Caciocavallo working -LOCAL_PATH := $(HERE_PATH)/awt_xawt -include $(CLEAR_VARS) -LOCAL_MODULE := awt_xawt -# LOCAL_CFLAGS += -DHEADLESS -LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) -LOCAL_SHARED_LIBRARIES := awt_headless -LOCAL_SRC_FILES := xawt_fake.c -include $(BUILD_SHARED_LIBRARY) - -# delete fake libs after linked -$(info $(shell (rm $(HERE_PATH)/../jniLibs/*/libawt_headless.so))) - diff --git a/src/main/jni/awt_xawt/xawt_fake.c b/src/main/jni/awt_xawt/xawt_fake.c deleted file mode 100644 index c0a400ab..00000000 --- a/src/main/jni/awt_xawt/xawt_fake.c +++ /dev/null @@ -1,215 +0,0 @@ -#include - -// java.awt.* -JNIEXPORT void JNICALL -Java_java_awt_AWTEvent_initIDs(JNIEnv *env, jclass cls) -{ -} - -JNIEXPORT void JNICALL -Java_java_awt_Button_initIDs - (JNIEnv *env, jclass cls) -{ -} - -JNIEXPORT void JNICALL -Java_java_awt_Component_initIDs - (JNIEnv *env, jclass cls) -{ -} - -JNIEXPORT void JNICALL -Java_java_awt_Container_initIDs - (JNIEnv *env, jclass cls) -{ -} - -JNIEXPORT void JNICALL -Java_java_awt_Checkbox_initIDs - (JNIEnv *env, jclass cls) -{ -} - -JNIEXPORT void JNICALL -Java_java_awt_Cursor_initIDs - (JNIEnv *env, jclass cls) -{ - -} - -JNIEXPORT void JNICALL -Java_java_awt_Cursor_finalizeImpl(JNIEnv *env, jclass clazz, jlong pData) -{ - -} - -JNIEXPORT void JNICALL -Java_java_awt_Dialog_initIDs - (JNIEnv *env, jclass cls) -{ - -} - -JNIEXPORT void JNICALL -Java_java_awt_Event_initIDs(JNIEnv *env, jclass cls) -{ - -} - -JNIEXPORT void JNICALL -Java_java_awt_FileDialog_initIDs - (JNIEnv *env, jclass cls) -{ - -} - -JNIEXPORT void JNICALL -Java_java_awt_Frame_initIDs - (JNIEnv *env, jclass cls) -{ -} - -JNIEXPORT void JNICALL -Java_java_awt_Insets_initIDs - (JNIEnv *env, jclass cls) -{ -} - -JNIEXPORT void JNICALL -Java_java_awt_KeyboardFocusManager_initIDs - (JNIEnv *env, jclass cls) -{ - -} - -JNIEXPORT void JNICALL Java_java_awt_Menu_initIDs - (JNIEnv *env, jclass cls) -{ -} - -JNIEXPORT void JNICALL -Java_java_awt_MenuComponent_initIDs(JNIEnv *env, jclass cls) -{ - -} - -JNIEXPORT void JNICALL Java_java_awt_MenuItem_initIDs - (JNIEnv *env, jclass cls) -{ -} - -JNIEXPORT void JNICALL -Java_java_awt_Scrollbar_initIDs - (JNIEnv *env, jclass cls) -{ - -} - -JNIEXPORT void JNICALL Java_java_awt_ScrollPane_initIDs - (JNIEnv *env, jclass cls) -{ -} - -JNIEXPORT void JNICALL -Java_java_awt_TextArea_initIDs - (JNIEnv *env, jclass cls) -{ -} - -JNIEXPORT void JNICALL -Java_java_awt_TextField_initIDs - (JNIEnv *env, jclass cls) -{ -} - -JNIEXPORT void JNICALL Java_java_awt_TrayIcon_initIDs(JNIEnv *env , jclass clazz) -{ -} - -JNIEXPORT void JNICALL -Java_java_awt_Window_initIDs - (JNIEnv *env, jclass cls) -{ -} - -// java.awt.event.* -JNIEXPORT void JNICALL -Java_java_awt_event_InputEvent_initIDs(JNIEnv *env, jclass cls) -{ -} - -JNIEXPORT void JNICALL -Java_java_awt_event_KeyEvent_initIDs(JNIEnv *env, jclass cls) -{ -} - -JNIEXPORT void JNICALL -Java_java_awt_AWTEvent_nativeSetSource(JNIEnv *env, jobject self, - jobject newSource) -{ - // Maybe implement this? -} - -// sun.awt.SunToolkit -JNIEXPORT void JNICALL -Java_sun_awt_SunToolkit_closeSplashScreen - (JNIEnv *env, jclass cls) -{ - -} -// sun.awt.UNIXToolkit -JNIEXPORT jboolean JNICALL -Java_sun_awt_UNIXToolkit_check_1gtk(JNIEnv *env, jclass klass, jint version) { - return JNI_FALSE; -} - -JNIEXPORT jint JNICALL -Java_sun_awt_UNIXToolkit_get_1gtk_1version(JNIEnv *env, jclass klass) -{ - // return GTK_ANY; - return (jint) 1; -} - -JNIEXPORT jboolean JNICALL -Java_sun_awt_UNIXToolkit_gtkCheckVersionImpl(JNIEnv *env, jobject this, - jint major, jint minor, jint micro) -{ - return JNI_FALSE; -} - -JNIEXPORT jboolean JNICALL -Java_sun_awt_UNIXToolkit_load_1gtk(JNIEnv *env, jclass klass, jint version, - jboolean verbose) { - return JNI_FALSE; -} - -JNIEXPORT jboolean JNICALL -Java_sun_awt_UNIXToolkit_load_1gtk_1icon(JNIEnv *env, jobject this, - jstring filename) -{ - return JNI_FALSE; -} - -JNIEXPORT jboolean JNICALL -Java_sun_awt_UNIXToolkit_load_1stock_1icon(JNIEnv *env, jobject this, - jint widget_type, jstring stock_id, jint icon_size, - jint text_direction, jstring detail) -{ - return JNI_FALSE; -} - -JNIEXPORT void JNICALL -Java_sun_awt_UNIXToolkit_nativeSync(JNIEnv *env, jobject this) -{ - -} - -JNIEXPORT jboolean JNICALL -Java_sun_awt_UNIXToolkit_unload_1gtk(JNIEnv *env, jclass klass) -{ - return JNI_FALSE; -} - - - -