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