Файл Android.mk выглядит следующим образом:
LOCAL_PATH: = $ (call my-dir)
include $ (CLEAR_VARS)
LOCAL_MODULE: = libvlcjni
LOCAL_SRC_FILES: = libvlcjni.c aout.c thumbnailer.c condattr.c pthread-pthread-pthread-once.c rwlocks.c eventfd.c sem.c
LOCAL_SRC_FILES + = pipe2.c
LOCAL_SRC_FILES + = wchar / wcpcpy.c
LOCAL_SRC_FILES + = wchar / wcpncpy.c
LOCAL_SRC_FILES + = wchar / wcscasecmp.c
LOCAL_SRC_FILES + = wchar / wcscat.c
LOCAL_SRC_FILES + = wchar / wcschr.c
LOCAL_SRC_FILES + = wchar / wcscmp.c
LOCAL_SRC_FILES + = wchar / wcscoll.c
LOCAL_SRC_FILES + = wchar / wcscpy.c
LOCAL_SRC_FILES + = wchar / wcscspn.c
LOCAL_SRC_FILES + = wchar / wcsdup.c
LOCAL_SRC_FILES + = wchar / wcslcat.c
LOCAL_SRC_FILES + = wchar / wcslcpy.c
LOCAL_SRC_FILES + = wchar / wcslen.c
LOCAL_SRC_FILES + = wchar / wcsncasecmp.c
LOCAL_SRC_FILES + = wchar / wcsncat.c
LOCAL_SRC_FILES + = wchar / wcsncmp.c
LOCAL_SRC_FILES + = wchar / wcsncpy.c
LOCAL_SRC_FILES + = wchar / wcsnlen.c
LOCAL_SRC_FILES + = wchar / wcspbrk.c
LOCAL_SRC_FILES + = wchar / wcsrchr.c
LOCAL_SRC_FILES + = wchar / wcsspn.c
LOCAL_SRC_FILES + = wchar / wcsstr.c
LOCAL_SRC_FILES + = wchar / wcstok.c
LOCAL_SRC_FILES + = wchar / wcswidth.c
LOCAL_SRC_FILES + = wchar / wcsxfrm.c
LOCAL_SRC_FILES + = wchar / wmemchr.c
LOCAL_SRC_FILES + = wchar / wmemcmp.c
LOCAL_SRC_FILES + = wchar / wmemcpy.c
LOCAL_SRC_FILES + = wchar / wmemmove.c
LOCAL_SRC_FILES + = wchar / wmemset.c
LOCAL_C_INCLUDES: = $ (VLC_SRC_DIR) / include
ARCH = $ (ANDROID_ABI)
CPP_STATIC = $ (ANDROID_NDK) / sources / cxx-stl / gnu-libstdc + + $ (CXXSTL) / libs / $ (ARCH) / libgnustl_static.a
LOCAL_CFLAGS: =-std = gnu99
ifeq ($ (ARCH), armeabi)
+ =-DHAVE_ARMEABI LOCAL_CFLAGS
LOCAL_ARM_MODE: = arm
endif
ifeq ($ (ARCH), armeabi-v7a)
+ =-DHAVE_ARMEABI_V7A LOCAL_CFLAGS
endif
LOCAL_LDLIBS: =-L $ (VLC_CONTRIB) / lib \
$ (VLC_MODULES) \
$ (VLC_BUILD_DIR) / lib / .libs / libvlc.a \
$ (VLC_BUILD_DIR) / src / .libs / libvlccore.a \
$ (VLC_BUILD_DIR) / compat / .libs / libcompat.a \
-Ldl-lz-lm-LLOG \
-Ldvbpsi-lebml-lmatroska-LTAG \
-Logg-lFLAC-ltheora \
-Lmpeg2-ODF-la52 \
-Lavformat-lavcodec-lswscale-lavutil-lpostproc-LGSM-lopenjpeg \
-LliveMedia-lUsageEnvironment-lBasicUsageEnvironment-lgroupsock \
-Lspeex-lspeexdsp \
-Lxml2-lpng-lgnutls-lgcrypt lgpg-error-\
-Lfreetype-liconv-lass-lfribidi-Lopus \
$ (CPP_STATIC)
include $ (BUILD_SHARED_LIBRARY)
include $ (CLEAR_VARS)
LOCAL_MODULE: = libiomx-gingerbread
LOCAL_SRC_FILES: = .. / $ (VLC_SRC_DIR) / modules / codec / omxil / iomx.cpp
LOCAL_C_INCLUDES: = $ (VLC_SRC_DIR) / modules / codec / omxil $ (ANDROID_SYS_HEADERS_GINGERBREAD) / frameworks / base / include $ (ANDROID_SYS_HEADERS_GINGERBREAD) / system / core / include
LOCAL_CFLAGS: =-WNO-psabi
LOCAL_LDLIBS: =-L $ (ANDROID_LIBS)-lgcc-lstagefright-lmedia-lutils-lbinder
include $ (BUILD_SHARED_LIBRARY)
include $ (CLEAR_VARS)
LOCAL_MODULE: = libiomx-hc
LOCAL_SRC_FILES: = .. / $ (VLC_SRC_DIR) / modules / codec / omxil / iomx.cpp
LOCAL_C_INCLUDES: = $ (VLC_SRC_DIR) / modules / codec / omxil $ (ANDROID_SYS_HEADERS_HC) / frameworks / base / include $ (ANDROID_SYS_HEADERS_HC) / frameworks / base / native / include $ (ANDROID_SYS_HEADERS_HC) / system / core / include $ (ANDROID_SYS_HEADERS_HC) / hardware / libhardware / include
LOCAL_CFLAGS: =-WNO-psabi
LOCAL_LDLIBS: =-L $ (ANDROID_LIBS)-lgcc-lstagefright-lmedia-lutils-lbinder
include $ (BUILD_SHARED_LIBRARY)
include $ (CLEAR_VARS)
LOCAL_MODULE: = libiomx-ics
LOCAL_SRC_FILES: = .. / $ (VLC_SRC_DIR) / modules / codec / omxil / iomx.cpp
LOCAL_C_INCLUDES: = $ (VLC_SRC_DIR) / modules / codec / omxil $ (ANDROID_SYS_HEADERS_ICS) / frameworks / base / include $ (ANDROID_SYS_HEADERS_ICS) / frameworks / base / native / include $ (ANDROID_SYS_HEADERS_ICS) / system / core / include $ (ANDROID_SYS_HEADERS_ICS) / hardware / libhardware / include
LOCAL_CFLAGS: =-WNO-psabi
LOCAL_LDLIBS: =-L $ (ANDROID_LIBS)-lgcc-lstagefright-lmedia-lutils-lbinder
include $ (BUILD_SHARED_LIBRARY)