LoginSignup
1
1

More than 5 years have passed since last update.

[Android] Compile all cpp files in a folder with Android.mk

Posted at

Just use shell find command to list all the cpp files and add these files to the LOCAL_SRC_FILES.

SOURCE_FILES := $(shell find $(LOCAL_PATH)/Classes/* -type f -name *.cpp)
LOCAL_SRC_FILES += $(SOURCE_FILES:$(LOCAL_PATH)/%=%)

Also this is just a example, you also can append filters such as *.cc *.h and so on.

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1