Android NDK: BUILD_SHARED_LIBRARY and BUILD_STATIC_LIBRARY

1,998 views
Skip to first unread message

gacon

unread,
Jul 13, 2010, 5:52:39 AM7/13/10
to android-ndk
Hi all,

I'm trying to port my projects to Android.

I tried to put include $(BUILD_SHARED_LIBRARY) in the Android.mk,
everything is ok, I got lib.so. But if I change to include $
(BUILD_STATIC_LIBRARY), I got a message:

gacon@gacon-laptop:~/workspace/faad2/jni$ ndk-build
Android NDK: WARNING: Unsupported source file extensions in /home/
gacon/workspace/faad2/jni/Android.mk for module faad2
Android NDK: libfaad/analysis.h libfaad/
bits.h .......................

What does this mean?

Thanks,

David Turner

unread,
Jul 13, 2010, 12:04:51 PM7/13/10
to andro...@googlegroups.com
It means you don't have to put header files (.h files) in your LOCAL_SRC_FILES


--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.


David Turner

unread,
Jul 13, 2010, 12:05:47 PM7/13/10
to andro...@googlegroups.com
On Tue, Jul 13, 2010 at 9:04 AM, David Turner <di...@android.com> wrote:
It means you don't have to put header files (.h files) in your LOCAL_SRC_FILES

And for the record, the warning means these files are going to be ignored. I added it because other developers were complaining that bad source files were silently ignored and this could make debugging Android.mk files a bit harder than necessary.

Hope this helps. 
Reply all
Reply to author
Forward
0 new messages