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

3 4
include $(CLEAR_VARS)
LOCAL_MODULE := libvlc
5
ARCH=$(APP_ABI)
Thomas Guillem's avatar
Thomas Guillem committed
6 7 8
LOCAL_SRC_FILES += libvlcjni-modules.c libvlcjni-symbols.c dummy.cpp
LOCAL_LDLIBS := \
	-L$(VLC_CONTRIB)/lib \
Rafaël Carré's avatar
Rafaël Carré committed
9 10 11
	$(VLC_MODULES) \
	$(VLC_BUILD_DIR)/lib/.libs/libvlc.a \
	$(VLC_BUILD_DIR)/src/.libs/libvlccore.a \
12
	$(VLC_BUILD_DIR)/compat/.libs/libcompat.a \
13
	$(VLC_CONTRIB_LDFLAGS) \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
14
	-ldl -lz -lm -llog \
15
	-lliveMedia -lUsageEnvironment -lBasicUsageEnvironment -lgroupsock \
16 17
	-la52 -ljpeg \
	-lavcodec -lebml \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
18
	-llua \
Thomas Guillem's avatar
Thomas Guillem committed
19
	$(VLC_LDFLAGS)
Rafaël Carré's avatar
Rafaël Carré committed
20

21
ifeq ($(HAVE_LIBCOMPAT), 1)
22
LOCAL_SHARED_LIBRARIES:= libcompat.7
23
endif
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE    := libvlcjni

LOCAL_SRC_FILES := libvlcjni.c
LOCAL_SRC_FILES += libvlcjni-mediaplayer.c
LOCAL_SRC_FILES += libvlcjni-vlcobject.c
LOCAL_SRC_FILES += libvlcjni-media.c libvlcjni-medialist.c libvlcjni-mediadiscoverer.c
LOCAL_SRC_FILES += libvlcjni-dialog.c
LOCAL_SRC_FILES += native_crash_handler.c thumbnailer.c
LOCAL_SRC_FILES += std_logger.c

LOCAL_LDLIBS := -llog
LOCAL_C_INCLUDES := $(VLC_SRC_DIR)/include

ARCH=$(APP_ABI)

Thomas Guillem's avatar
Thomas Guillem committed
42
LOCAL_CFLAGS := -std=c11
43 44 45 46 47
ifeq ($(ARCH), armeabi-v7a)
	LOCAL_CFLAGS += -DHAVE_ARMEABI_V7A
endif

LOCAL_SHARED_LIBRARIES:= libvlc
48

49 50
include $(BUILD_SHARED_LIBRARY)

51 52 53 54
####################
# DUMMY COMPAT LIB #
####################

55
ifeq ($(HAVE_LIBCOMPAT), 1)
56 57 58
include $(CLEAR_VARS)
LOCAL_MODULE := libcompat.7
include $(BUILD_SHARED_LIBRARY)
59
endif