简体   繁体   中英

How to manage multiple C++ files when using Android NDK

I have a native part in my android application. I will use the android NDK framework for this purpose. But the most of tutorials (including android ndk samples and opencv samples) use only one C++ source file.

1) How can I manage multiple source files?

2) Should I have an Android.mk file for each file source?

Any tutorial about this problem is welcome.

The android-ndk-r9\\samples\\san-angeles\\ example has multiple source files. This should be a good enough example

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM