Compiling for Android, where to start?

Rachmansyah Budi Setiawan <[email protected]>
Newsgroups gmane.comp.security.virus.clamav.devel
Message-ID <CAMyKw-GW4gUB_SmtNgC7_qJOLuX_r7kiGJA4ihJx6cae_20M3w@mail.gmail.com>
Hello everyone,

I am trying to compile libclamav for Android. To my understanding, the best
way is to use compiler bundled in Android NDK tools. I am not that
proficient in C/C++ and reading config + Makefile, so I have almost no idea
on where to start. So far I am just dumping libclamav, libclamunrar,
libclamunrar_iface, and libltdl + target.h in a Java project and try to
build using ndk-build. This is how my Android.mk looks like:

-------------------------------------------------------------------------------------------------------------------------------
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := clamav
FILE_LIST := $(wildcard $(LOCAL_PATH)/libclamav/*.c) \
$(wildcard $(LOCAL_PATH)/libclamunrar/*.c) \
$(wildcard $(LOCAL_PATH)/libclamunrar_iface/*.c) \
$(wildcard $(LOCAL_PATH)/libltdl/*.c) \
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include \
$(LOCAL_PATH)/libclamav \
$(LOCAL_PATH)/libclamunrar \
$(LOCAL_PATH)/libclamunrar_iface \
$(LOCAL_PATH)/libltdl
include $(BUILD_STATIC_LIBRARY)
-------------------------------------------------------------------------------------------------------------------------------

Any help is appreciated. Thank you.
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.