Android.mk revision 49c8340bd83cc5d64b1fcaed4afbda5fd4d74a3e
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 ThrottledSource.cpp \ 46 TimeSource.cpp \ 47 TimedEventQueue.cpp \ 48 Utils.cpp \ 49 VBRISeeker.cpp \ 50 WAVExtractor.cpp \ 51 WVMExtractor.cpp \ 52 XINGSeeker.cpp \ 53 avc_utils.cpp \ 54 55LOCAL_C_INCLUDES:= \ 56 $(JNI_H_INCLUDE) \ 57 $(TOP)/frameworks/base/include/media/stagefright/openmax \ 58 $(TOP)/external/flac/include \ 59 $(TOP)/external/tremolo \ 60 $(TOP)/frameworks/base/media/libstagefright/rtsp \ 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 78LOCAL_STATIC_LIBRARIES := \ 79 libstagefright_color_conversion \ 80 libstagefright_aacenc \ 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_rtsp \ 91 libstagefright_id3 \ 92 libFLAC \ 93 94################################################################################ 95 96# The following was shamelessly copied from external/webkit/Android.mk and 97# currently must follow the same logic to determine how webkit was built and 98# if it's safe to link against libchromium.net 99 100# V8 also requires an ARMv7 CPU, and since we must use jsc, we cannot 101# use the Chrome http stack either. 102ifneq ($(strip $(ARCH_ARM_HAVE_ARMV7A)),true) 103 USE_ALT_HTTP := true 104endif 105 106# See if the user has specified a stack they want to use 107HTTP_STACK = $(HTTP) 108# We default to the Chrome HTTP stack. 109DEFAULT_HTTP = chrome 110ALT_HTTP = android 111 112ifneq ($(HTTP_STACK),chrome) 113 ifneq ($(HTTP_STACK),android) 114 # No HTTP stack is specified, pickup the one we want as default. 115 ifeq ($(USE_ALT_HTTP),true) 116 HTTP_STACK = $(ALT_HTTP) 117 else 118 HTTP_STACK = $(DEFAULT_HTTP) 119 endif 120 endif 121endif 122 123ifeq ($(HTTP_STACK),chrome) 124 125LOCAL_SHARED_LIBRARIES += \ 126 liblog \ 127 libicuuc \ 128 libicui18n \ 129 libz \ 130 libdl \ 131 132LOCAL_STATIC_LIBRARIES += \ 133 libstagefright_chromium_http \ 134 libchromium_net \ 135 libwebcore \ 136 137LOCAL_SHARED_LIBRARIES += libstlport 138include external/stlport/libstlport.mk 139 140LOCAL_CPPFLAGS += -DCHROMIUM_AVAILABLE=1 141 142endif # ifeq ($(HTTP_STACK),chrome) 143 144################################################################################ 145 146LOCAL_SHARED_LIBRARIES += \ 147 libstagefright_amrnb_common \ 148 libstagefright_enc_common \ 149 libstagefright_avc_common \ 150 libstagefright_foundation \ 151 libdl 152 153LOCAL_CFLAGS += -Wno-multichar 154 155LOCAL_MODULE:= libstagefright 156 157include $(BUILD_SHARED_LIBRARY) 158 159include $(call all-makefiles-under,$(LOCAL_PATH)) 160