Android.mk revision e9c52da6fdb755ed832325c2fe4fe5b3bc4c9eed
1LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4include frameworks/base/media/libstagefright/codecs/common/Config.mk
5
6LOCAL_SRC_FILES:=                         \
7        ACodec.cpp                        \
8        AACExtractor.cpp                  \
9        AACWriter.cpp                     \
10        AMRExtractor.cpp                  \
11        AMRWriter.cpp                     \
12        AVIExtractor.cpp                  \
13        AudioPlayer.cpp                   \
14        AudioSource.cpp                   \
15        AwesomePlayer.cpp                 \
16        CameraSource.cpp                  \
17        CameraSourceTimeLapse.cpp         \
18        VideoSourceDownSampler.cpp        \
19        DataSource.cpp                    \
20        DRMExtractor.cpp                  \
21        ESDS.cpp                          \
22        FileSource.cpp                    \
23        FLACExtractor.cpp                 \
24        HTTPBase.cpp                      \
25        JPEGSource.cpp                    \
26        MP3Extractor.cpp                  \
27        MPEG2TSWriter.cpp                 \
28        MPEG4Extractor.cpp                \
29        MPEG4Writer.cpp                   \
30        MediaBuffer.cpp                   \
31        MediaBufferGroup.cpp              \
32        MediaDefs.cpp                     \
33        MediaExtractor.cpp                \
34        MediaSource.cpp                   \
35        MediaSourceSplitter.cpp           \
36        MetaData.cpp                      \
37        NuCachedSource2.cpp               \
38        OMXClient.cpp                     \
39        OMXCodec.cpp                      \
40        OggExtractor.cpp                  \
41        SampleIterator.cpp                \
42        SampleTable.cpp                   \
43        StagefrightMediaScanner.cpp       \
44        StagefrightMetadataRetriever.cpp  \
45        SurfaceMediaSource.cpp            \
46        ThrottledSource.cpp               \
47        TimeSource.cpp                    \
48        TimedEventQueue.cpp               \
49        Utils.cpp                         \
50        VBRISeeker.cpp                    \
51        WAVExtractor.cpp                  \
52        WVMExtractor.cpp                  \
53        XINGSeeker.cpp                    \
54        avc_utils.cpp                     \
55
56LOCAL_C_INCLUDES:= \
57	$(JNI_H_INCLUDE) \
58        $(TOP)/frameworks/base/include/media/stagefright/openmax \
59        $(TOP)/external/flac/include \
60        $(TOP)/external/tremolo \
61        $(TOP)/external/openssl/include \
62
63LOCAL_SHARED_LIBRARIES := \
64        libbinder         \
65        libmedia          \
66        libutils          \
67        libcutils         \
68        libui             \
69        libsonivox        \
70        libvorbisidec     \
71        libstagefright_yuv \
72        libcamera_client \
73        libdrmframework  \
74        libcrypto        \
75        libssl           \
76        libgui           \
77        libstagefright_omx \
78
79LOCAL_STATIC_LIBRARIES := \
80        libstagefright_color_conversion \
81        libstagefright_amrnbenc \
82        libstagefright_amrwbenc \
83        libstagefright_avcenc \
84        libstagefright_m4vh263enc \
85        libstagefright_matroska \
86        libstagefright_timedtext \
87        libvpx \
88        libstagefright_mpeg2ts \
89        libstagefright_httplive \
90        libstagefright_id3 \
91        libFLAC \
92
93################################################################################
94
95# The following was shamelessly copied from external/webkit/Android.mk and
96# currently must follow the same logic to determine how webkit was built and
97# if it's safe to link against libchromium.net
98
99# V8 also requires an ARMv7 CPU, and since we must use jsc, we cannot
100# use the Chrome http stack either.
101ifneq ($(strip $(ARCH_ARM_HAVE_ARMV7A)),true)
102  USE_ALT_HTTP := true
103endif
104
105# See if the user has specified a stack they want to use
106HTTP_STACK = $(HTTP)
107# We default to the Chrome HTTP stack.
108DEFAULT_HTTP = chrome
109ALT_HTTP = android
110
111ifneq ($(HTTP_STACK),chrome)
112  ifneq ($(HTTP_STACK),android)
113    # No HTTP stack is specified, pickup the one we want as default.
114    ifeq ($(USE_ALT_HTTP),true)
115      HTTP_STACK = $(ALT_HTTP)
116    else
117      HTTP_STACK = $(DEFAULT_HTTP)
118    endif
119  endif
120endif
121
122ifeq ($(HTTP_STACK),chrome)
123
124LOCAL_SHARED_LIBRARIES += \
125        liblog           \
126        libicuuc         \
127        libicui18n       \
128        libz             \
129        libdl            \
130
131LOCAL_STATIC_LIBRARIES += \
132        libstagefright_chromium_http
133
134LOCAL_SHARED_LIBRARIES += libstlport libchromium_net
135include external/stlport/libstlport.mk
136
137LOCAL_CPPFLAGS += -DCHROMIUM_AVAILABLE=1
138
139endif  # ifeq ($(HTTP_STACK),chrome)
140
141################################################################################
142
143LOCAL_SHARED_LIBRARIES += \
144        libstagefright_amrnb_common \
145        libstagefright_enc_common \
146        libstagefright_avc_common \
147        libstagefright_foundation \
148        libdl
149
150LOCAL_CFLAGS += -Wno-multichar
151
152LOCAL_MODULE:= libstagefright
153
154include $(BUILD_SHARED_LIBRARY)
155
156include $(call all-makefiles-under,$(LOCAL_PATH))
157