Android.mk
changeset 12088 399cc39583cc
parent 12032 a1fde7f4230f
child 12130 24142c5073a4
     1.1 --- a/Android.mk	Wed Aug 08 15:39:20 2018 -0400
     1.2 +++ b/Android.mk	Thu Aug 09 16:00:17 2018 -0700
     1.3 @@ -31,7 +31,7 @@
     1.4  	$(wildcard $(LOCAL_PATH)/src/haptic/android/*.c) \
     1.5  	$(wildcard $(LOCAL_PATH)/src/joystick/*.c) \
     1.6  	$(wildcard $(LOCAL_PATH)/src/joystick/android/*.c) \
     1.7 -	$(LOCAL_PATH)/src/joystick/steam/SDL_steamcontroller.c \
     1.8 +	$(wildcard $(LOCAL_PATH)/src/joystick/hidapi/*.c) \
     1.9  	$(wildcard $(LOCAL_PATH)/src/loadso/dlopen/*.c) \
    1.10  	$(wildcard $(LOCAL_PATH)/src/power/*.c) \
    1.11  	$(wildcard $(LOCAL_PATH)/src/power/android/*.c) \
    1.12 @@ -48,6 +48,8 @@
    1.13  	$(wildcard $(LOCAL_PATH)/src/video/yuv2rgb/*.c) \
    1.14  	$(wildcard $(LOCAL_PATH)/src/test/*.c))
    1.15  
    1.16 +LOCAL_SHARED_LIBRARIES := hidapi
    1.17 +
    1.18  LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES
    1.19  LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -landroid
    1.20  
    1.21 @@ -88,4 +90,19 @@
    1.22  
    1.23  include $(BUILD_STATIC_LIBRARY)
    1.24  
    1.25 +###########################
    1.26 +#
    1.27 +# hidapi library
    1.28 +#
    1.29 +###########################
    1.30  
    1.31 +include $(CLEAR_VARS)
    1.32 +
    1.33 +LOCAL_CPPFLAGS += -std=c++11
    1.34 +
    1.35 +LOCAL_SRC_FILES := $(LOCAL_PATH)/src/hidapi/android/hid.cpp
    1.36 +
    1.37 +LOCAL_MODULE := libhidapi
    1.38 +LOCAL_LDLIBS := -llog
    1.39 +
    1.40 +include $(BUILD_SHARED_LIBRARY)