Android.mk revision f76ecd3cf14944647d767ba3dadfa12a451c28bb
1LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4
5LOCAL_SRC_FILES:=                         \
6        ACodec.cpp                        \
7        AACExtractor.cpp                  \
8        AACWriter.cpp                     \
9        AMRExtractor.cpp                  \
10        AMRWriter.cpp                     \
11        AudioPlayer.cpp                   \
12        AudioSource.cpp                   \
13        CallbackDataSource.cpp            \
14        CameraSource.cpp                  \
15        CameraSourceTimeLapse.cpp         \
16        CodecBase.cpp                     \
17        DataSource.cpp                    \
18        DataURISource.cpp                 \
19        DRMExtractor.cpp                  \
20        ESDS.cpp                          \
21        FileSource.cpp                    \
22        FLACExtractor.cpp                 \
23        FrameRenderTracker.cpp            \
24        HTTPBase.cpp                      \
25        HevcUtils.cpp                     \
26        JPEGSource.cpp                    \
27        MP3Extractor.cpp                  \
28        MPEG2TSWriter.cpp                 \
29        MPEG4Extractor.cpp                \
30        MPEG4Writer.cpp                   \
31        MediaAdapter.cpp                  \
32        MediaBufferGroup.cpp              \
33        MediaClock.cpp                    \
34        MediaCodec.cpp                    \
35        MediaCodecList.cpp                \
36        MediaCodecListOverrides.cpp       \
37        MediaCodecSource.cpp              \
38        MediaDefs.cpp                     \
39        MediaExtractor.cpp                \
40        MediaSync.cpp                     \
41        MidiExtractor.cpp                 \
42        http/MediaHTTP.cpp                \
43        MediaMuxer.cpp                    \
44        MediaSource.cpp                   \
45        NuCachedSource2.cpp               \
46        NuMediaExtractor.cpp              \
47        OMXClient.cpp                     \
48        OMXCodec.cpp                      \
49        OggExtractor.cpp                  \
50        ProcessInfo.cpp                   \
51        SampleIterator.cpp                \
52        SampleTable.cpp                   \
53        SimpleDecodingSource.cpp          \
54        SkipCutBuffer.cpp                 \
55        StagefrightMediaScanner.cpp       \
56        StagefrightMetadataRetriever.cpp  \
57        SurfaceMediaSource.cpp            \
58        SurfaceUtils.cpp                  \
59        ThrottledSource.cpp               \
60        Utils.cpp                         \
61        VBRISeeker.cpp                    \
62        VideoFrameScheduler.cpp           \
63        WAVExtractor.cpp                  \
64        WVMExtractor.cpp                  \
65        XINGSeeker.cpp                    \
66        avc_utils.cpp                     \
67
68LOCAL_C_INCLUDES:= \
69        $(TOP)/frameworks/av/include/media/ \
70        $(TOP)/frameworks/av/include/media/stagefright/timedtext \
71        $(TOP)/frameworks/native/include/media/hardware \
72        $(TOP)/frameworks/native/include/media/openmax \
73        $(TOP)/external/flac/include \
74        $(TOP)/external/tremolo \
75        $(TOP)/external/libvpx/libwebm \
76        $(TOP)/system/netd/include \
77
78LOCAL_SHARED_LIBRARIES := \
79        libbinder \
80        libcamera_client \
81        libcutils \
82        libdl \
83        libdrmframework \
84        libexpat \
85        libgui \
86        libicui18n \
87        libicuuc \
88        liblog \
89        libmedia \
90        libmediautils \
91        libnetd_client \
92        libopus \
93        libsonivox \
94        libssl \
95        libstagefright_omx \
96        libstagefright_yuv \
97        libsync \
98        libui \
99        libutils \
100        libvorbisidec \
101        libz \
102        libpowermanager
103
104LOCAL_STATIC_LIBRARIES := \
105        libstagefright_color_conversion \
106        libstagefright_aacenc \
107        libstagefright_matroska \
108        libstagefright_mediafilter \
109        libstagefright_webm \
110        libstagefright_timedtext \
111        libvpx \
112        libwebm \
113        libstagefright_mpeg2ts \
114        libstagefright_id3 \
115        libFLAC \
116        libmedia_helper \
117
118LOCAL_SHARED_LIBRARIES += \
119        libstagefright_enc_common \
120        libstagefright_avc_common \
121        libstagefright_foundation \
122        libdl \
123        libRScpp \
124
125LOCAL_CFLAGS += -Wno-multichar -Werror -Wno-error=deprecated-declarations -Wall
126
127# enable experiments only in userdebug and eng builds
128ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
129LOCAL_CFLAGS += -DENABLE_STAGEFRIGHT_EXPERIMENTS
130endif
131
132LOCAL_CLANG := true
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