Android.mk revision 83f70f4472e9b0cacc5d372eddfcef4b02662d10
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_avcenc \ 82 libstagefright_m4vh263enc \ 83 libstagefright_matroska \ 84 libstagefright_timedtext \ 85 libvpx \ 86 libstagefright_mpeg2ts \ 87 libstagefright_httplive \ 88 libstagefright_id3 \ 89 libFLAC \ 90 91################################################################################ 92 93# The following was shamelessly copied from external/webkit/Android.mk and 94# currently must follow the same logic to determine how webkit was built and 95# if it's safe to link against libchromium.net 96 97# V8 also requires an ARMv7 CPU, and since we must use jsc, we cannot 98# use the Chrome http stack either. 99ifneq ($(strip $(ARCH_ARM_HAVE_ARMV7A)),true) 100 USE_ALT_HTTP := true 101endif 102 103# See if the user has specified a stack they want to use 104HTTP_STACK = $(HTTP) 105# We default to the Chrome HTTP stack. 106DEFAULT_HTTP = chrome 107ALT_HTTP = android 108 109ifneq ($(HTTP_STACK),chrome) 110 ifneq ($(HTTP_STACK),android) 111 # No HTTP stack is specified, pickup the one we want as default. 112 ifeq ($(USE_ALT_HTTP),true) 113 HTTP_STACK = $(ALT_HTTP) 114 else 115 HTTP_STACK = $(DEFAULT_HTTP) 116 endif 117 endif 118endif 119 120ifeq ($(HTTP_STACK),chrome) 121 122LOCAL_SHARED_LIBRARIES += \ 123 liblog \ 124 libicuuc \ 125 libicui18n \ 126 libz \ 127 libdl \ 128 129LOCAL_STATIC_LIBRARIES += \ 130 libstagefright_chromium_http 131 132LOCAL_SHARED_LIBRARIES += libstlport libchromium_net 133include external/stlport/libstlport.mk 134 135LOCAL_CPPFLAGS += -DCHROMIUM_AVAILABLE=1 136 137endif # ifeq ($(HTTP_STACK),chrome) 138 139################################################################################ 140 141LOCAL_SHARED_LIBRARIES += \ 142 libstagefright_enc_common \ 143 libstagefright_avc_common \ 144 libstagefright_foundation \ 145 libdl 146 147LOCAL_CFLAGS += -Wno-multichar 148 149LOCAL_MODULE:= libstagefright 150 151include $(BUILD_SHARED_LIBRARY) 152 153include $(call all-makefiles-under,$(LOCAL_PATH)) 154