Android.mk 1.31 KB
Newer Older
Rafaël Carré's avatar
Rafaël Carré committed
1
2
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
Tanguy Pruvot's avatar
Tanguy Pruvot committed
3

Rafaël Carré's avatar
Rafaël Carré committed
4
LOCAL_MODULE    := libvlcjni
Tanguy Pruvot's avatar
Tanguy Pruvot committed
5

Rafaël Carré's avatar
Rafaël Carré committed
6
LOCAL_SRC_FILES := libvlcjni.c aout.c thumbnailer.c
Tanguy Pruvot's avatar
Tanguy Pruvot committed
7

Rafaël Carré's avatar
Rafaël Carré committed
8
9
LOCAL_C_INCLUDES := $(VLC_SRC_DIR)/include

10
11
HAS_NDK_V7 = 1

Rafaël Carré's avatar
Rafaël Carré committed
12
13
14
15
16
17
ifeq ($(NO_NEON),)
ARCH=armeabi-v7a
else
ARCH=armeabi
endif

18
19
20
21
22
23
ifeq ($(HAS_NDK_V7),1)
CPP_STATIC=$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/libs/$(ARCH)/libgnustl_static.a
else
CPP_STATIC=$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/libs/$(ARCH)/libstdc++.a
endif

Rafaël Carré's avatar
Rafaël Carré committed
24
25
26
27
28
LOCAL_LDLIBS := -L$(VLC_CONTRIB)/lib \
	$(VLC_MODULES) \
	$(VLC_BUILD_DIR)/compat/.libs/libcompat.a \
	$(VLC_BUILD_DIR)/lib/.libs/libvlc.a \
	$(VLC_BUILD_DIR)/src/.libs/libvlccore.a \
Rafaël Carré's avatar
Rafaël Carré committed
29
	-ldl -lz -lm -logg -lvorbisenc -lvorbis -lFLAC -lspeex -lspeexdsp -ltheora \
Tanguy Pruvot's avatar
Tanguy Pruvot committed
30
	-lavformat -lavcodec -lswscale -lavutil -lpostproc \
Rafaël Carré's avatar
Rafaël Carré committed
31
32
33
34
	-lmpeg2 -lpng -ldvbpsi -llog -la52 \
	-lebml -lmatroska -ltag -lgsm -lopenjpeg -lgme -lupnp -lixml -lthreadutil -lxml2 \
	-lsamplerate \
	$(CPP_STATIC)
Rafaël Carré's avatar
Rafaël Carré committed
35
36

include $(BUILD_SHARED_LIBRARY)
37
38
39
40
41
42
43
44
45
46


include $(CLEAR_VARS)

LOCAL_MODULE     := libiomx
LOCAL_SRC_FILES  := ../$(VLC_SRC_DIR)/modules/codec/omxil/iomx.cpp
LOCAL_C_INCLUDES := $(VLC_SRC_DIR)/modules/codec/omxil $(ANDROID_SYS_HEADERS)/frameworks/base/include $(ANDROID_SYS_HEADERS)/system/core/include
LOCAL_LDLIBS     := -L$(ANDROID_LIBS) -lgcc -lstagefright -lmedia -lutils -lbinder

include $(BUILD_SHARED_LIBRARY)