6ace129c100cb3d386f4ff914d434c03c039fa21
[platform/upstream/gstreamer.git] / android / pbutils.mk
1 LOCAL_PATH:= $(call my-dir)
2 include $(CLEAR_VARS)
3
4 GST_PBUTILS_DIR := gst-libs/gst/pbutils/
5
6 gst_pbutils_COPY_HEADERS_TO := gstreamer-1.0/gst/pbutils
7 gst_pbutils_COPY_HEADERS_BASE := \
8         gst-libs/gst/pbutils/descriptions.h \
9         gst-libs/gst/pbutils/install-plugins.h \
10         gst-libs/gst/pbutils/missing-plugins.h \
11         gst-libs/gst/pbutils/pbutils.h \
12         gst-libs/gst/pbutils/pbutils-enumtypes.h
13
14 gst_pbutils_COPY_HEADERS := $(addprefix ../,$(gst_pbutils_COPY_HEADERS_BASE))
15         
16
17
18
19 LOCAL_ARM_MODE := arm
20
21 BUILT_SOURCES = \
22         pbutils-enumtypes.c \
23         pbutils-enumtypes.h \
24         pbutils-marshal.c   \
25         pbutils-marshal.h
26
27 LOCAL_SRC_FILES := \
28         gstpluginsbaseversion.c \
29         pbutils.c               \
30         codec-utils.c           \
31         descriptions.c          \
32         encoding-profile.c      \
33         encoding-target.c       \
34         install-plugins.c       \
35         missing-plugins.c       \
36         gstdiscoverer.c         \
37         gstdiscoverer-types.c   \
38         pbutils-enumtypes.c     \
39         pbutils-marshal.c
40
41 LOCAL_SRC_FILES := $(addprefix ../$(GST_PBUTILS_DIR),$(LOCAL_SRC_FILES))
42
43 $(BUILT_SOURCES):
44         make -C $(GST_PLUGINS_BASE_TOP)/$(GST_PBUTILS_DIR) $@
45
46
47 LOCAL_SHARED_LIBRARIES := \
48     libgstvideo-1.0        \
49     libgstreamer-1.0       \
50     libgstbase-1.0         \
51     libglib-2.0             \
52     libgthread-2.0          \
53     libgmodule-2.0          \
54     libgobject-2.0                      
55
56 LOCAL_MODULE:= libgstpbutils-1.0
57 LOCAL_CFLAGS := -DGSTREAMER_BUILT_FOR_ANDROID \
58         $(GST_PLUGINS_BASE_CFLAGS)
59 #
60 # define LOCAL_PRELINK_MODULE to false to not use pre-link map
61 #
62 LOCAL_PRELINK_MODULE := false
63
64 LOCAL_COPY_HEADERS_TO := $(gst_pbutils_COPY_HEADERS_TO)
65 LOCAL_COPY_HEADERS := $(gst_pbutils_COPY_HEADERS)
66 LOCAL_MODULE_TAGS := optional
67
68 include $(BUILD_SHARED_LIBRARY)