summaryrefslogtreecommitdiff
path: root/android/pbutils.mk
blob: 6ace129c100cb3d386f4ff914d434c03c039fa21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

GST_PBUTILS_DIR := gst-libs/gst/pbutils/

gst_pbutils_COPY_HEADERS_TO := gstreamer-1.0/gst/pbutils
gst_pbutils_COPY_HEADERS_BASE := \
	gst-libs/gst/pbutils/descriptions.h \
	gst-libs/gst/pbutils/install-plugins.h \
	gst-libs/gst/pbutils/missing-plugins.h \
	gst-libs/gst/pbutils/pbutils.h \
	gst-libs/gst/pbutils/pbutils-enumtypes.h

gst_pbutils_COPY_HEADERS := $(addprefix ../,$(gst_pbutils_COPY_HEADERS_BASE))
	



LOCAL_ARM_MODE := arm

BUILT_SOURCES = \
	pbutils-enumtypes.c \
	pbutils-enumtypes.h \
	pbutils-marshal.c   \
	pbutils-marshal.h

LOCAL_SRC_FILES := \
	gstpluginsbaseversion.c \
	pbutils.c         	\
	codec-utils.c     	\
	descriptions.c    	\
	encoding-profile.c	\
	encoding-target.c	\
	install-plugins.c 	\
	missing-plugins.c 	\
	gstdiscoverer.c   	\
	gstdiscoverer-types.c 	\
	pbutils-enumtypes.c	\
	pbutils-marshal.c

LOCAL_SRC_FILES := $(addprefix ../$(GST_PBUTILS_DIR),$(LOCAL_SRC_FILES))

$(BUILT_SOURCES):
	make -C $(GST_PLUGINS_BASE_TOP)/$(GST_PBUTILS_DIR) $@


LOCAL_SHARED_LIBRARIES := \
    libgstvideo-1.0        \
    libgstreamer-1.0       \
    libgstbase-1.0         \
    libglib-2.0             \
    libgthread-2.0          \
    libgmodule-2.0          \
    libgobject-2.0 			

LOCAL_MODULE:= libgstpbutils-1.0
LOCAL_CFLAGS := -DGSTREAMER_BUILT_FOR_ANDROID \
	$(GST_PLUGINS_BASE_CFLAGS)
#
# define LOCAL_PRELINK_MODULE to false to not use pre-link map
#
LOCAL_PRELINK_MODULE := false

LOCAL_COPY_HEADERS_TO := $(gst_pbutils_COPY_HEADERS_TO)
LOCAL_COPY_HEADERS := $(gst_pbutils_COPY_HEADERS)
LOCAL_MODULE_TAGS := optional

include $(BUILD_SHARED_LIBRARY)