1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := media_player_android_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,third_party_widevine_cdm_widevine_cdm_version_h_gyp,,,$(GYP_VAR_PREFIX))/widevine_cdm_version_h.stamp \ 15 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp,,,$(GYP_VAR_PREFIX))/ui_gl_gl_gyp.a \ 16 $(call intermediates-dir-for,GYP,media_media_android_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/media_android_jni_headers.stamp 17 18GYP_GENERATED_OUTPUTS := 19 20# Make sure our deps and generated files are built first. 21LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 22 23LOCAL_CPP_EXTENSION := .cc 24LOCAL_GENERATED_SOURCES := 25 26GYP_COPIED_SOURCE_ORIGIN_DIRS := 27 28LOCAL_SRC_FILES := \ 29 media/base/android/audio_decoder_job.cc \ 30 media/base/android/browser_cdm_factory_android.cc \ 31 media/base/android/media_codec_bridge.cc \ 32 media/base/android/media_decoder_job.cc \ 33 media/base/android/media_drm_bridge.cc \ 34 media/base/android/media_jni_registrar.cc \ 35 media/base/android/media_player_android.cc \ 36 media/base/android/media_player_bridge.cc \ 37 media/base/android/media_player_listener.cc \ 38 media/base/android/media_source_player.cc \ 39 media/base/android/video_decoder_job.cc \ 40 media/base/android/webaudio_media_codec_bridge.cc 41 42 43# Flags passed to both C and C++ files. 44MY_CFLAGS_Debug := \ 45 --param=ssp-buffer-size=4 \ 46 -Werror \ 47 -fno-strict-aliasing \ 48 -Wall \ 49 -Wno-unused-parameter \ 50 -Wno-missing-field-initializers \ 51 -fvisibility=hidden \ 52 -pipe \ 53 -fPIC \ 54 -Wno-unused-local-typedefs \ 55 -msse2 \ 56 -mfpmath=sse \ 57 -mmmx \ 58 -m32 \ 59 -ffunction-sections \ 60 -funwind-tables \ 61 -g \ 62 -fno-short-enums \ 63 -finline-limit=64 \ 64 -Wa,--noexecstack \ 65 -U_FORTIFY_SOURCE \ 66 -Wno-extra \ 67 -Wno-ignored-qualifiers \ 68 -Wno-type-limits \ 69 -Wno-unused-but-set-variable \ 70 -fno-stack-protector \ 71 -Os \ 72 -g \ 73 -gdwarf-4 \ 74 -fdata-sections \ 75 -ffunction-sections \ 76 -fomit-frame-pointer \ 77 -funwind-tables 78 79MY_DEFS_Debug := \ 80 '-DV8_DEPRECATION_WARNINGS' \ 81 '-D_FILE_OFFSET_BITS=64' \ 82 '-DNO_TCMALLOC' \ 83 '-DDISABLE_NACL' \ 84 '-DCHROMIUM_BUILD' \ 85 '-DUSE_LIBJPEG_TURBO=1' \ 86 '-DENABLE_WEBRTC=1' \ 87 '-DUSE_PROPRIETARY_CODECS' \ 88 '-DENABLE_BROWSER_CDMS' \ 89 '-DENABLE_CONFIGURATION_POLICY' \ 90 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 91 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 92 '-DENABLE_EGLIMAGE=1' \ 93 '-DCLD_VERSION=1' \ 94 '-DENABLE_PRINTING=1' \ 95 '-DENABLE_MANAGED_USERS=1' \ 96 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 97 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 98 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 99 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 100 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 101 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 102 '-DVIDEO_HOLE=1' \ 103 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 104 '-DMEDIA_IMPLEMENTATION' \ 105 '-DMESA_EGL_NO_X11_HEADERS' \ 106 '-DUSE_OPENSSL=1' \ 107 '-DUSE_OPENSSL_CERTS=1' \ 108 '-D__STDC_CONSTANT_MACROS' \ 109 '-D__STDC_FORMAT_MACROS' \ 110 '-DANDROID' \ 111 '-D__GNU_SOURCE=1' \ 112 '-DUSE_STLPORT=1' \ 113 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 114 '-DCHROME_BUILD_ID=""' \ 115 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 116 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 117 '-D_DEBUG' 118 119 120# Include paths placed before CFLAGS/CPPFLAGS 121LOCAL_C_INCLUDES_Debug := \ 122 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 123 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 124 $(gyp_shared_intermediate_dir) \ 125 $(LOCAL_PATH)/third_party/khronos \ 126 $(LOCAL_PATH)/gpu \ 127 $(LOCAL_PATH) \ 128 $(LOCAL_PATH)/skia/config \ 129 $(gyp_shared_intermediate_dir)/ui/gl \ 130 $(LOCAL_PATH)/third_party/mesa/src/include \ 131 $(gyp_shared_intermediate_dir)/media \ 132 $(PWD)/frameworks/wilhelm/include \ 133 $(PWD)/bionic \ 134 $(PWD)/external/stlport/stlport 135 136 137# Flags passed to only C++ (and not C) files. 138LOCAL_CPPFLAGS_Debug := \ 139 -fno-exceptions \ 140 -fno-rtti \ 141 -fno-threadsafe-statics \ 142 -fvisibility-inlines-hidden \ 143 -Wsign-compare \ 144 -std=gnu++11 \ 145 -Wno-narrowing \ 146 -Wno-literal-suffix \ 147 -Wno-non-virtual-dtor \ 148 -Wno-sign-promo 149 150 151# Flags passed to both C and C++ files. 152MY_CFLAGS_Release := \ 153 --param=ssp-buffer-size=4 \ 154 -Werror \ 155 -fno-strict-aliasing \ 156 -Wall \ 157 -Wno-unused-parameter \ 158 -Wno-missing-field-initializers \ 159 -fvisibility=hidden \ 160 -pipe \ 161 -fPIC \ 162 -Wno-unused-local-typedefs \ 163 -msse2 \ 164 -mfpmath=sse \ 165 -mmmx \ 166 -m32 \ 167 -ffunction-sections \ 168 -funwind-tables \ 169 -g \ 170 -fno-short-enums \ 171 -finline-limit=64 \ 172 -Wa,--noexecstack \ 173 -U_FORTIFY_SOURCE \ 174 -Wno-extra \ 175 -Wno-ignored-qualifiers \ 176 -Wno-type-limits \ 177 -Wno-unused-but-set-variable \ 178 -fno-stack-protector \ 179 -Os \ 180 -fno-ident \ 181 -fdata-sections \ 182 -ffunction-sections \ 183 -fomit-frame-pointer \ 184 -funwind-tables 185 186MY_DEFS_Release := \ 187 '-DV8_DEPRECATION_WARNINGS' \ 188 '-D_FILE_OFFSET_BITS=64' \ 189 '-DNO_TCMALLOC' \ 190 '-DDISABLE_NACL' \ 191 '-DCHROMIUM_BUILD' \ 192 '-DUSE_LIBJPEG_TURBO=1' \ 193 '-DENABLE_WEBRTC=1' \ 194 '-DUSE_PROPRIETARY_CODECS' \ 195 '-DENABLE_BROWSER_CDMS' \ 196 '-DENABLE_CONFIGURATION_POLICY' \ 197 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 198 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 199 '-DENABLE_EGLIMAGE=1' \ 200 '-DCLD_VERSION=1' \ 201 '-DENABLE_PRINTING=1' \ 202 '-DENABLE_MANAGED_USERS=1' \ 203 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 204 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 205 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 206 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 207 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 208 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 209 '-DVIDEO_HOLE=1' \ 210 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 211 '-DMEDIA_IMPLEMENTATION' \ 212 '-DMESA_EGL_NO_X11_HEADERS' \ 213 '-DUSE_OPENSSL=1' \ 214 '-DUSE_OPENSSL_CERTS=1' \ 215 '-D__STDC_CONSTANT_MACROS' \ 216 '-D__STDC_FORMAT_MACROS' \ 217 '-DANDROID' \ 218 '-D__GNU_SOURCE=1' \ 219 '-DUSE_STLPORT=1' \ 220 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 221 '-DCHROME_BUILD_ID=""' \ 222 '-DNDEBUG' \ 223 '-DNVALGRIND' \ 224 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 225 '-D_FORTIFY_SOURCE=2' 226 227 228# Include paths placed before CFLAGS/CPPFLAGS 229LOCAL_C_INCLUDES_Release := \ 230 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 231 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 232 $(gyp_shared_intermediate_dir) \ 233 $(LOCAL_PATH)/third_party/khronos \ 234 $(LOCAL_PATH)/gpu \ 235 $(LOCAL_PATH) \ 236 $(LOCAL_PATH)/skia/config \ 237 $(gyp_shared_intermediate_dir)/ui/gl \ 238 $(LOCAL_PATH)/third_party/mesa/src/include \ 239 $(gyp_shared_intermediate_dir)/media \ 240 $(PWD)/frameworks/wilhelm/include \ 241 $(PWD)/bionic \ 242 $(PWD)/external/stlport/stlport 243 244 245# Flags passed to only C++ (and not C) files. 246LOCAL_CPPFLAGS_Release := \ 247 -fno-exceptions \ 248 -fno-rtti \ 249 -fno-threadsafe-statics \ 250 -fvisibility-inlines-hidden \ 251 -Wsign-compare \ 252 -std=gnu++11 \ 253 -Wno-narrowing \ 254 -Wno-literal-suffix \ 255 -Wno-non-virtual-dtor \ 256 -Wno-sign-promo 257 258 259LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 260LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 261LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 262LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 263### Rules for final target. 264 265LOCAL_SHARED_LIBRARIES := \ 266 libstlport \ 267 libdl 268 269# Add target alias to "gyp_all_modules" target. 270.PHONY: gyp_all_modules 271gyp_all_modules: media_player_android_gyp 272 273# Alias gyp target name. 274.PHONY: player_android 275player_android: media_player_android_gyp 276 277include $(BUILD_STATIC_LIBRARY) 278