Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write Android.mk file with source files in sub directories?

Tags:

android-ndk

I have a structure like this:

folder1

      |--subfolder1

          |--.cpp files .h files

      |--other .cpp files

folder1 contains cpp files and 1 subfolder which also contains cpp files and head files

How will I write my Android.mk file so that all the source files, including those inside subfolder1 will be included during compilation?

i tried

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/\*/\*.*) $(wildcard *.*) 

but it does not work, it didnt include the source files which are inside the subdirectories

like image 348
Coola Avatar asked Apr 02 '12 05:04

Coola


1 Answers

try :

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*/*.cpp)
like image 52
medazzo Avatar answered Sep 19 '22 02:09

medazzo