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