Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Commit

Permalink
Attempting to fix Android build error
Browse files Browse the repository at this point in the history
  • Loading branch information
foxhatleo committed Mar 12, 2021
1 parent 348202b commit a724607
Show file tree
Hide file tree
Showing 8 changed files with 75 additions and 3 deletions.
3 changes: 3 additions & 0 deletions build-android/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build-android/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions build-android/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions build-android/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions build-android/.idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions build-android/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions build-android/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions build-android/app/jni/source/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ include $(CLEAR_VARS)

LOCAL_MODULE := main
LOCAL_C_INCLUDES := $(CUGL_PATH)/include
LOCAL_C_INCLUDES += $(PROJ_PATH)/source

# Add your application source files here...
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,, \
$(wildcard $(PROJ_PATH)/source/*.cpp))
define walk
$(wildcard $(1)) $(foreach e, $(wildcard $(1)/*), $(call walk, $(e)))
endef

ALL_FILES_IN_SOURCE = $(call walk, $(PROJ_PATH)/source)
CPP_SOURCE_FILES := $(filter %.cpp, $(ALL_FILES_IN_SOURCE))

LOCAL_SRC_FILES := $(CPP_SOURCE_FILES:$(LOCAL_PATH)/%=%)

# Line the libraries
LOCAL_SHARED_LIBRARIES := hidapi
Expand Down

0 comments on commit a724607

Please sign in to comment.