Android.mk revision 9dbe9a57bf0ae2494ec312d6c1b06feec20e9ec9
1LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4
5LOCAL_SRC_FILES:=                         \
6        ACodec.cpp                        \
7        ACodecBufferChannel.cpp           \
8        AACExtractor.cpp                  \
9        AACWriter.cpp                     \
10        AMRExtractor.cpp                  \
11        AMRWriter.cpp                     \
12        AudioPlayer.cpp                   \
13        AudioSource.cpp                   \
14        BufferImpl.cpp                    \
15        CallbackDataSource.cpp            \
16        CameraSource.cpp                  \
17        CameraSourceTimeLapse.cpp         \
18        DataConverter.cpp                 \
19        DataSource.cpp                    \
20        DataURISource.cpp                 \
21        ESDS.cpp                          \
22        FileSource.cpp                    \
23        FLACExtractor.cpp                 \
24        FrameRenderTracker.cpp            \
25        HTTPBase.cpp                      \
26        HevcUtils.cpp                     \
27        JPEGSource.cpp                    \
28        MP3Extractor.cpp                  \
29        MPEG2TSWriter.cpp                 \
30        MPEG4Extractor.cpp                \
31        MPEG4Writer.cpp                   \
32        MediaAdapter.cpp                  \
33        MediaClock.cpp                    \
34        MediaCodec.cpp                    \
35        MediaCodecList.cpp                \
36        MediaCodecListOverrides.cpp       \
37        MediaCodecSource.cpp              \
38        MediaExtractor.cpp                \
39        MediaSync.cpp                     \
40        MidiExtractor.cpp                 \
41        http/MediaHTTP.cpp                \
42        MediaMuxer.cpp                    \
43        MediaSource.cpp                   \
44        NuCachedSource2.cpp               \
45        NuMediaExtractor.cpp              \
46        OMXClient.cpp                     \
47        OggExtractor.cpp                  \
48        SampleIterator.cpp                \
49        SampleTable.cpp                   \
50        SimpleDecodingSource.cpp          \
51        SkipCutBuffer.cpp                 \
52        StagefrightMediaScanner.cpp       \
53        StagefrightMetadataRetriever.cpp  \
54        SurfaceMediaSource.cpp            \
55        SurfaceUtils.cpp                  \
56        ThrottledSource.cpp               \
57        Utils.cpp                         \
58        VBRISeeker.cpp                    \
59        VideoFrameScheduler.cpp           \
60        WAVExtractor.cpp                  \
61        XINGSeeker.cpp                    \
62        avc_utils.cpp                     \
63
64LOCAL_C_INCLUDES:= \
65        $(TOP)/frameworks/av/include/media/ \
66        $(TOP)/frameworks/av/include/media/stagefright/timedtext \
67        $(TOP)/frameworks/native/include/media/hardware \
68        $(TOP)/frameworks/native/include/media/openmax \
69        $(TOP)/external/flac/include \
70        $(TOP)/external/tremolo \
71        $(TOP)/external/libvpx/libwebm \
72        $(TOP)/external/icu/icu4c/source/common \
73        $(TOP)/external/icu/icu4c/source/i18n \
74        $(TOP)/system/netd/include \
75        $(call include-path-for, audio-utils)
76
77LOCAL_SHARED_LIBRARIES := \
78        libaudioutils \
79        libbinder \
80        libcamera_client \
81        libcutils \
82        libdl \
83        libdrmframework \
84        libexpat \
85        libgui \
86        liblog \
87        libmedia \
88        libaudioclient \
89        libmediautils \
90        libnetd_client \
91        libsonivox \
92        libstagefright_omx \
93        libui \
94        libutils \
95        libvorbisidec \
96        libmediadrm \
97
98LOCAL_STATIC_LIBRARIES := \
99        libstagefright_color_conversion \
100        libyuv_static \
101        libstagefright_aacenc \
102        libstagefright_matroska \
103        libstagefright_mediafilter \
104        libstagefright_webm \
105        libstagefright_timedtext \
106        libvpx \
107        libwebm \
108        libstagefright_mpeg2ts \
109        libstagefright_id3 \
110        libFLAC \
111
112LOCAL_SHARED_LIBRARIES += \
113        libmedia_helper \
114        libstagefright_foundation \
115        libdl \
116        libRScpp \
117        libhidlbase \
118        libhidlmemory \
119        android.hidl.allocator@1.0 \
120        android.hidl.memory@1.0 \
121        android.hardware.media.omx@1.0 \
122        android.hardware.media.omx@1.0-utils \
123
124LOCAL_EXPORT_SHARED_LIBRARY_HEADERS := libmedia
125
126LOCAL_CFLAGS += -Wno-multichar -Werror -Wno-error=deprecated-declarations -Wall
127
128# enable experiments only in userdebug and eng builds
129ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
130LOCAL_CFLAGS += -DENABLE_STAGEFRIGHT_EXPERIMENTS
131endif
132
133LOCAL_SANITIZE := unsigned-integer-overflow signed-integer-overflow
134
135LOCAL_MODULE:= libstagefright
136
137LOCAL_MODULE_TAGS := optional
138
139include $(BUILD_SHARED_LIBRARY)
140
141include $(call all-makefiles-under,$(LOCAL_PATH))
142