Android.mk revision ce4df5e534eb86748fe80c84efb6b7fc0b6b5b46
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        DataConverter.cpp                 \
18        DataSource.cpp                    \
19        DataURISource.cpp                 \
20        DRMExtractor.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        ProcessInfo.cpp                   \
49        SampleIterator.cpp                \
50        SampleTable.cpp                   \
51        SimpleDecodingSource.cpp          \
52        SkipCutBuffer.cpp                 \
53        StagefrightMediaScanner.cpp       \
54        StagefrightMetadataRetriever.cpp  \
55        SurfaceMediaSource.cpp            \
56        SurfaceUtils.cpp                  \
57        ThrottledSource.cpp               \
58        Utils.cpp                         \
59        VBRISeeker.cpp                    \
60        VideoFrameScheduler.cpp           \
61        WAVExtractor.cpp                  \
62        WVMExtractor.cpp                  \
63        XINGSeeker.cpp                    \
64        avc_utils.cpp                     \
65
66LOCAL_C_INCLUDES:= \
67        $(TOP)/frameworks/av/include/media/ \
68        $(TOP)/frameworks/av/include/media/stagefright/timedtext \
69        $(TOP)/frameworks/native/include/media/hardware \
70        $(TOP)/frameworks/native/include/media/openmax \
71        $(TOP)/external/flac/include \
72        $(TOP)/external/tremolo \
73        $(TOP)/external/libvpx/libwebm \
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        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_EXPORT_SHARED_LIBRARY_HEADERS := libmedia
126
127LOCAL_CFLAGS += -Wno-multichar -Werror -Wno-error=deprecated-declarations -Wall
128
129# enable experiments only in userdebug and eng builds
130ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
131LOCAL_CFLAGS += -DENABLE_STAGEFRIGHT_EXPERIMENTS
132endif
133
134LOCAL_CLANG := true
135LOCAL_SANITIZE := unsigned-integer-overflow signed-integer-overflow
136
137LOCAL_MODULE:= libstagefright
138
139LOCAL_MODULE_TAGS := optional
140
141include $(BUILD_SHARED_LIBRARY)
142
143include $(call all-makefiles-under,$(LOCAL_PATH))
144