Android.mk
changeset 12088 399cc39583cc
parent 12032 a1fde7f4230f
child 12130 24142c5073a4
equal deleted inserted replaced
12087:cb546477e34f 12088:399cc39583cc
    29 	$(wildcard $(LOCAL_PATH)/src/file/*.c) \
    29 	$(wildcard $(LOCAL_PATH)/src/file/*.c) \
    30 	$(wildcard $(LOCAL_PATH)/src/haptic/*.c) \
    30 	$(wildcard $(LOCAL_PATH)/src/haptic/*.c) \
    31 	$(wildcard $(LOCAL_PATH)/src/haptic/android/*.c) \
    31 	$(wildcard $(LOCAL_PATH)/src/haptic/android/*.c) \
    32 	$(wildcard $(LOCAL_PATH)/src/joystick/*.c) \
    32 	$(wildcard $(LOCAL_PATH)/src/joystick/*.c) \
    33 	$(wildcard $(LOCAL_PATH)/src/joystick/android/*.c) \
    33 	$(wildcard $(LOCAL_PATH)/src/joystick/android/*.c) \
    34 	$(LOCAL_PATH)/src/joystick/steam/SDL_steamcontroller.c \
    34 	$(wildcard $(LOCAL_PATH)/src/joystick/hidapi/*.c) \
    35 	$(wildcard $(LOCAL_PATH)/src/loadso/dlopen/*.c) \
    35 	$(wildcard $(LOCAL_PATH)/src/loadso/dlopen/*.c) \
    36 	$(wildcard $(LOCAL_PATH)/src/power/*.c) \
    36 	$(wildcard $(LOCAL_PATH)/src/power/*.c) \
    37 	$(wildcard $(LOCAL_PATH)/src/power/android/*.c) \
    37 	$(wildcard $(LOCAL_PATH)/src/power/android/*.c) \
    38 	$(wildcard $(LOCAL_PATH)/src/filesystem/android/*.c) \
    38 	$(wildcard $(LOCAL_PATH)/src/filesystem/android/*.c) \
    39 	$(wildcard $(LOCAL_PATH)/src/render/*.c) \
    39 	$(wildcard $(LOCAL_PATH)/src/render/*.c) \
    45 	$(wildcard $(LOCAL_PATH)/src/timer/unix/*.c) \
    45 	$(wildcard $(LOCAL_PATH)/src/timer/unix/*.c) \
    46 	$(wildcard $(LOCAL_PATH)/src/video/*.c) \
    46 	$(wildcard $(LOCAL_PATH)/src/video/*.c) \
    47 	$(wildcard $(LOCAL_PATH)/src/video/android/*.c) \
    47 	$(wildcard $(LOCAL_PATH)/src/video/android/*.c) \
    48 	$(wildcard $(LOCAL_PATH)/src/video/yuv2rgb/*.c) \
    48 	$(wildcard $(LOCAL_PATH)/src/video/yuv2rgb/*.c) \
    49 	$(wildcard $(LOCAL_PATH)/src/test/*.c))
    49 	$(wildcard $(LOCAL_PATH)/src/test/*.c))
       
    50 
       
    51 LOCAL_SHARED_LIBRARIES := hidapi
    50 
    52 
    51 LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES
    53 LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES
    52 LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -landroid
    54 LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -landroid
    53 
    55 
    54 ifeq ($(NDK_DEBUG),1)
    56 ifeq ($(NDK_DEBUG),1)
    86 
    88 
    87 LOCAL_MODULE_FILENAME := libSDL2main
    89 LOCAL_MODULE_FILENAME := libSDL2main
    88 
    90 
    89 include $(BUILD_STATIC_LIBRARY)
    91 include $(BUILD_STATIC_LIBRARY)
    90 
    92 
       
    93 ###########################
       
    94 #
       
    95 # hidapi library
       
    96 #
       
    97 ###########################
    91 
    98 
       
    99 include $(CLEAR_VARS)
       
   100 
       
   101 LOCAL_CPPFLAGS += -std=c++11
       
   102 
       
   103 LOCAL_SRC_FILES := $(LOCAL_PATH)/src/hidapi/android/hid.cpp
       
   104 
       
   105 LOCAL_MODULE := libhidapi
       
   106 LOCAL_LDLIBS := -llog
       
   107 
       
   108 include $(BUILD_SHARED_LIBRARY)