Skip to content

Instantly share code, notes, and snippets.

@Ghostbird
Created November 24, 2021 20:25
Show Gist options
  • Save Ghostbird/2485d23afc39fbdac3bda136a46e6577 to your computer and use it in GitHub Desktop.
Save Ghostbird/2485d23afc39fbdac3bda136a46e6577 to your computer and use it in GitHub Desktop.
Patchfile to build libusb/hidapi
From 81c90e35566e959fbb0abfb3532847d4a11ac897 Mon Sep 17 00:00:00 2001
From: Ghostbird <[email protected]>
Date: Wed, 24 Nov 2021 21:23:20 +0100
Subject: [PATCH] temp
---
android/jni/Android.mk | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/android/jni/Android.mk b/android/jni/Android.mk
index 527b43f..7ffcf5a 100644
--- a/android/jni/Android.mk
+++ b/android/jni/Android.mk
@@ -1,8 +1,15 @@
-LOCAL_PATH:= $(call my-dir)
+MY_LOCAL_PATH:= $(call my-dir)
+LOCAL_PATH:= $(MY_LOCAL_PATH)
HIDAPI_ROOT_REL:= ../..
HIDAPI_ROOT_ABS:= $(LOCAL_PATH)/../..
+include ../../../libusb/android/jni/libusb.mk
+
+# hidapi
+
+LOCAL_PATH := $(MY_LOCAL_PATH)
+
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
--
2.30.2
@Ghostbird
Copy link
Author

I adapted libusb/hidapi#24 to build hidapi for github.com/Looking-Glass/JoyconLib/issues/21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment