Android.mk revision e6cf962d41cb05b57e55ef80f75a24c62671dcfe
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)/frameworks/base/media/libstagefright/rtsp \ 62 $(TOP)/external/openssl/include \ 63 64LOCAL_SHARED_LIBRARIES := \ 65 libbinder \ 66 libmedia \ 67 libutils \ 68 libcutils \ 69 libui \ 70 libsonivox \ 71 libvorbisidec \ 72 libstagefright_yuv \ 73 libcamera_client \ 74 libdrmframework \ 75 libcrypto \ 76 libssl \ 77 libgui \ 78 79LOCAL_STATIC_LIBRARIES := \ 80 libstagefright_color_conversion \ 81 libstagefright_aacenc \ 82 libstagefright_amrnbenc \ 83 libstagefright_amrwbenc \ 84 libstagefright_avcenc \ 85 libstagefright_m4vh263enc \ 86 libstagefright_matroska \ 87 libstagefright_timedtext \ 88 libvpx \ 89 libstagefright_mpeg2ts \ 90 libstagefright_httplive \ 91 libstagefright_rtsp \ 92 libstagefright_id3 \ 93 libFLAC \ 94 95################################################################################ 96 97# The following was shamelessly copied from external/webkit/Android.mk and 98# currently must follow the same logic to determine how webkit was built and 99# if it's safe to link against libchromium.net 100 101# V8 also requires an ARMv7 CPU, and since we must use jsc, we cannot 102# use the Chrome http stack either. 103ifneq ($(strip $(ARCH_ARM_HAVE_ARMV7A)),true) 104 USE_ALT_HTTP := true 105endif 106 107# See if the user has specified a stack they want to use 108HTTP_STACK = $(HTTP) 109# We default to the Chrome HTTP stack. 110DEFAULT_HTTP = chrome 111ALT_HTTP = android 112 113ifneq ($(HTTP_STACK),chrome) 114 ifneq ($(HTTP_STACK),android) 115 # No HTTP stack is specified, pickup the one we want as default. 116 ifeq ($(USE_ALT_HTTP),true) 117 HTTP_STACK = $(ALT_HTTP) 118 else 119 HTTP_STACK = $(DEFAULT_HTTP) 120 endif 121 endif 122endif 123 124ifeq ($(HTTP_STACK),chrome) 125 126LOCAL_SHARED_LIBRARIES += \ 127 liblog \ 128 libicuuc \ 129 libicui18n \ 130 libz \ 131 libdl \ 132 133LOCAL_STATIC_LIBRARIES += \ 134 libstagefright_chromium_http \ 135 libwebcore \ 136 137LOCAL_SHARED_LIBRARIES += libstlport libchromium_net 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